-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.mjs.map
More file actions
1 lines (1 loc) · 1.8 KB
/
Copy pathindex.mjs.map
File metadata and controls
1 lines (1 loc) · 1.8 KB
1
{"version":3,"file":"index.mjs","sources":["../lib/main.js"],"sourcesContent":["/**\n* @license Apache-2.0\n*\n* Copyright (c) 2023 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n// MODULES //\n\nimport isEqualDataType from '@stdlib/ndarray-base-assert-is-equal-data-type';\nimport isndarrayLike from '@stdlib/assert-is-ndarray-like';\nimport getDType from '@stdlib/ndarray-base-dtype';\n\n\n// MAIN //\n\n/**\n* Tests if a value is an ndarray-like object whose underlying data type is `complex128`.\n*\n* @param {*} v - value to test\n* @returns {boolean} boolean indicating if a value is an ndarray-like object whose underlying data type is `complex128`\n*\n* @example\n* import zeros from '@stdlib/ndarray-zeros';\n*\n* var arr = zeros( [ 2, 2 ], {\n* 'dtype': 'complex128'\n* });\n*\n* var bool = isComplex128ndarrayLike( arr );\n* // returns true\n*\n* bool = isComplex128ndarrayLike( [] );\n* // returns false\n*/\nfunction isComplex128ndarrayLike( v ) {\n\treturn ( isndarrayLike( v ) && isEqualDataType( getDType( v ), 'complex128' ) );\n}\n\n\n// EXPORTS //\n\nexport default isComplex128ndarrayLike;\n"],"names":["isComplex128ndarrayLike","v","isndarrayLike","isEqualDataType","getDType"],"mappings":";;+SAgDA,SAASA,EAAyBC,GACjC,OAASC,EAAeD,IAAOE,EAAiBC,EAAUH,GAAK,aAChE"}