@stdlib/assert-is-complex64matrix-like 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +1 -1
- package/README.md +5 -5
- package/dist/index.js +3 -3
- package/dist/index.js.map +3 -3
- package/lib/main.js +2 -1
- package/package.json +3 -2
package/NOTICE
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Copyright (c) 2016-
|
|
1
|
+
Copyright (c) 2016-2026 The Stdlib Authors.
|
package/README.md
CHANGED
|
@@ -144,7 +144,7 @@ See [LICENSE][stdlib-license].
|
|
|
144
144
|
|
|
145
145
|
## Copyright
|
|
146
146
|
|
|
147
|
-
Copyright © 2016-
|
|
147
|
+
Copyright © 2016-2026. The Stdlib [Authors][stdlib-authors].
|
|
148
148
|
|
|
149
149
|
</section>
|
|
150
150
|
|
|
@@ -157,8 +157,8 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
|
157
157
|
[npm-image]: http://img.shields.io/npm/v/@stdlib/assert-is-complex64matrix-like.svg
|
|
158
158
|
[npm-url]: https://npmjs.org/package/@stdlib/assert-is-complex64matrix-like
|
|
159
159
|
|
|
160
|
-
[test-image]: https://github.com/stdlib-js/assert-is-complex64matrix-like/actions/workflows/test.yml/badge.svg?branch=v0.2.
|
|
161
|
-
[test-url]: https://github.com/stdlib-js/assert-is-complex64matrix-like/actions/workflows/test.yml?query=branch:v0.2.
|
|
160
|
+
[test-image]: https://github.com/stdlib-js/assert-is-complex64matrix-like/actions/workflows/test.yml/badge.svg?branch=v0.2.3
|
|
161
|
+
[test-url]: https://github.com/stdlib-js/assert-is-complex64matrix-like/actions/workflows/test.yml?query=branch:v0.2.3
|
|
162
162
|
|
|
163
163
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/assert-is-complex64matrix-like/main.svg
|
|
164
164
|
[coverage-url]: https://codecov.io/github/stdlib-js/assert-is-complex64matrix-like?branch=main
|
|
@@ -170,8 +170,8 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
|
170
170
|
|
|
171
171
|
-->
|
|
172
172
|
|
|
173
|
-
[chat-image]: https://img.shields.io/
|
|
174
|
-
[chat-url]: https://
|
|
173
|
+
[chat-image]: https://img.shields.io/badge/zulip-join_chat-brightgreen.svg
|
|
174
|
+
[chat-url]: https://stdlib.zulipchat.com
|
|
175
175
|
|
|
176
176
|
[stdlib]: https://github.com/stdlib-js/stdlib
|
|
177
177
|
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";var s=function(e,r){return function(){return r||e((r={exports:{}}).exports,r),r.exports}};var t=s(function(
|
|
2
|
-
var u=require('@stdlib/assert-is-matrix-like/dist');function x(e){return u(e)&&e
|
|
3
|
-
});var
|
|
1
|
+
"use strict";var s=function(e,r){return function(){return r||e((r={exports:{}}).exports,r),r.exports}};var t=s(function(c,i){
|
|
2
|
+
var u=require('@stdlib/assert-is-matrix-like/dist'),a=require('@stdlib/ndarray-base-dtype/dist');function x(e){return u(e)&&a(e)==="complex64"}i.exports=x
|
|
3
|
+
});var o=t();module.exports=o;
|
|
4
4
|
/** @license Apache-2.0 */
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../lib/main.js", "../lib/index.js"],
|
|
4
|
-
"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\nvar isMatrixLike = require( '@stdlib/assert-is-matrix-like' );\n\n\n// MAIN //\n\n/**\n* Tests if a value is a 2-dimensional ndarray-like object whose underlying data type is `complex64`.\n*\n* @param {*} v - value to test\n* @returns {boolean} boolean indicating if a value is a 2-dimensional ndarray-like object whose underlying data type is `complex64`\n*\n* @example\n* var Complex64Array = require( '@stdlib/array-complex64' );\n* var ndarray = require( '@stdlib/ndarray-ctor' );\n*\n* var buffer = new Complex64Array( [ 0, 0, 0, 0, 0, 0, 0, 0 ] );\n* var arr = ndarray( 'complex64', buffer, [ 2, 2 ], [ 2, 1 ], 0, 'row-major' );\n*\n* var bool = isComplex64MatrixLike( arr );\n* // returns true\n*\n* bool = isComplex64MatrixLike( [] );\n* // returns false\n*/\nfunction isComplex64MatrixLike( v ) {\n\treturn ( isMatrixLike( v ) && v
|
|
5
|
-
"mappings": "uGAAA,IAAAA,EAAAC,EAAA,SAAAC,EAAAC,EAAA,cAsBA,IAAIC,EAAe,QAAS,+BAAgC,
|
|
6
|
-
"names": ["require_main", "__commonJSMin", "exports", "module", "isMatrixLike", "isComplex64MatrixLike", "v", "main"]
|
|
4
|
+
"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\nvar isMatrixLike = require( '@stdlib/assert-is-matrix-like' );\nvar getDType = require( '@stdlib/ndarray-base-dtype' );\n\n\n// MAIN //\n\n/**\n* Tests if a value is a 2-dimensional ndarray-like object whose underlying data type is `complex64`.\n*\n* @param {*} v - value to test\n* @returns {boolean} boolean indicating if a value is a 2-dimensional ndarray-like object whose underlying data type is `complex64`\n*\n* @example\n* var Complex64Array = require( '@stdlib/array-complex64' );\n* var ndarray = require( '@stdlib/ndarray-ctor' );\n*\n* var buffer = new Complex64Array( [ 0, 0, 0, 0, 0, 0, 0, 0 ] );\n* var arr = ndarray( 'complex64', buffer, [ 2, 2 ], [ 2, 1 ], 0, 'row-major' );\n*\n* var bool = isComplex64MatrixLike( arr );\n* // returns true\n*\n* bool = isComplex64MatrixLike( [] );\n* // returns false\n*/\nfunction isComplex64MatrixLike( v ) {\n\treturn ( isMatrixLike( v ) && getDType( v ) === 'complex64' );\n}\n\n\n// EXPORTS //\n\nmodule.exports = isComplex64MatrixLike;\n", "/**\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/**\n* Test if a value is a 2-dimensional ndarray-like object whose underlying data type is `complex64`.\n*\n* @module @stdlib/assert-is-complex64matrix-like\n*\n* @example\n* var ndarray = require( '@stdlib/ndarray-ctor' );\n* var Complex64Array = require( '@stdlib/array-complex64' );\n* var isComplex64MatrixLike = require( '@stdlib/assert-is-complex64matrix-like' );\n*\n* var buffer = new Complex64Array( [ 0, 0, 0, 0, 0, 0, 0, 0 ] );\n*\n* var arr = ndarray( 'complex64', buffer, [ 2, 2 ], [ 2, 1 ], 0, 'row-major' );\n*\n* var bool = isComplex64MatrixLike( arr );\n* // returns true\n*\n* bool = isComplex64MatrixLike( [] );\n* // returns false\n*/\n\n// MODULES //\n\nvar main = require( './main.js' );\n\n\n// EXPORTS //\n\nmodule.exports = main;\n"],
|
|
5
|
+
"mappings": "uGAAA,IAAAA,EAAAC,EAAA,SAAAC,EAAAC,EAAA,cAsBA,IAAIC,EAAe,QAAS,+BAAgC,EACxDC,EAAW,QAAS,4BAA6B,EAwBrD,SAASC,EAAuBC,EAAI,CACnC,OAASH,EAAcG,CAAE,GAAKF,EAAUE,CAAE,IAAM,WACjD,CAKAJ,EAAO,QAAUG,ICXjB,IAAIE,EAAO,IAKX,OAAO,QAAUA",
|
|
6
|
+
"names": ["require_main", "__commonJSMin", "exports", "module", "isMatrixLike", "getDType", "isComplex64MatrixLike", "v", "main"]
|
|
7
7
|
}
|
package/lib/main.js
CHANGED
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
// MODULES //
|
|
22
22
|
|
|
23
23
|
var isMatrixLike = require( '@stdlib/assert-is-matrix-like' );
|
|
24
|
+
var getDType = require( '@stdlib/ndarray-base-dtype' );
|
|
24
25
|
|
|
25
26
|
|
|
26
27
|
// MAIN //
|
|
@@ -45,7 +46,7 @@ var isMatrixLike = require( '@stdlib/assert-is-matrix-like' );
|
|
|
45
46
|
* // returns false
|
|
46
47
|
*/
|
|
47
48
|
function isComplex64MatrixLike( v ) {
|
|
48
|
-
return ( isMatrixLike( v ) && v
|
|
49
|
+
return ( isMatrixLike( v ) && getDType( v ) === 'complex64' );
|
|
49
50
|
}
|
|
50
51
|
|
|
51
52
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdlib/assert-is-complex64matrix-like",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Test if a value is a 2-dimensional ndarray-like object containing single-precision complex floating-point numbers.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -30,7 +30,8 @@
|
|
|
30
30
|
"url": "https://github.com/stdlib-js/stdlib/issues"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@stdlib/assert-is-matrix-like": "^0.2.
|
|
33
|
+
"@stdlib/assert-is-matrix-like": "^0.2.2",
|
|
34
|
+
"@stdlib/ndarray-base-dtype": "^0.2.3"
|
|
34
35
|
},
|
|
35
36
|
"devDependencies": {},
|
|
36
37
|
"engines": {
|