@stdlib/assert-is-float64matrix-like 0.1.0 → 0.2.1

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 CHANGED
@@ -1 +1 @@
1
- Copyright (c) 2016-2023 The Stdlib Authors.
1
+ Copyright (c) 2016-2024 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-2023. The Stdlib [Authors][stdlib-authors].
147
+ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
148
148
 
149
149
  </section>
150
150
 
@@ -157,8 +157,8 @@ Copyright &copy; 2016-2023. The Stdlib [Authors][stdlib-authors].
157
157
  [npm-image]: http://img.shields.io/npm/v/@stdlib/assert-is-float64matrix-like.svg
158
158
  [npm-url]: https://npmjs.org/package/@stdlib/assert-is-float64matrix-like
159
159
 
160
- [test-image]: https://github.com/stdlib-js/assert-is-float64matrix-like/actions/workflows/test.yml/badge.svg?branch=v0.1.0
161
- [test-url]: https://github.com/stdlib-js/assert-is-float64matrix-like/actions/workflows/test.yml?query=branch:v0.1.0
160
+ [test-image]: https://github.com/stdlib-js/assert-is-float64matrix-like/actions/workflows/test.yml/badge.svg?branch=v0.2.1
161
+ [test-url]: https://github.com/stdlib-js/assert-is-float64matrix-like/actions/workflows/test.yml?query=branch:v0.2.1
162
162
 
163
163
  [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/assert-is-float64matrix-like/main.svg
164
164
  [coverage-url]: https://codecov.io/github/stdlib-js/assert-is-float64matrix-like?branch=main
@@ -181,8 +181,11 @@ Copyright &copy; 2016-2023. The Stdlib [Authors][stdlib-authors].
181
181
  [es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
182
182
 
183
183
  [deno-url]: https://github.com/stdlib-js/assert-is-float64matrix-like/tree/deno
184
+ [deno-readme]: https://github.com/stdlib-js/assert-is-float64matrix-like/blob/deno/README.md
184
185
  [umd-url]: https://github.com/stdlib-js/assert-is-float64matrix-like/tree/umd
186
+ [umd-readme]: https://github.com/stdlib-js/assert-is-float64matrix-like/blob/umd/README.md
185
187
  [esm-url]: https://github.com/stdlib-js/assert-is-float64matrix-like/tree/esm
188
+ [esm-readme]: https://github.com/stdlib-js/assert-is-float64matrix-like/blob/esm/README.md
186
189
  [branches-url]: https://github.com/stdlib-js/assert-is-float64matrix-like/blob/main/branches.md
187
190
 
188
191
  [stdlib-license]: https://raw.githubusercontent.com/stdlib-js/assert-is-float64matrix-like/main/LICENSE
package/SECURITY.md ADDED
@@ -0,0 +1,5 @@
1
+ # Security
2
+
3
+ > Policy for reporting security vulnerabilities.
4
+
5
+ See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security).
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- "use strict";var a=function(r,i){return function(){return i||r((i={exports:{}}).exports,i),i.exports}};var e=a(function(k,t){
2
- var s=require('@stdlib/assert-is-matrix-like/dist'),u=require('@stdlib/assert-is-float64array/dist');function o(r){return s(r)&&u(r.data)}t.exports=o
3
- });var x=e();module.exports=x;
1
+ "use strict";var s=function(r,t){return function(){return t||r((t={exports:{}}).exports,t),t.exports}};var e=s(function(c,i){
2
+ var a=require('@stdlib/assert-is-matrix-like/dist');function o(r){return a(r)&&r.dtype==="float64"}i.exports=o
3
+ });var u=e();module.exports=u;
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) 2020 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 isFloat64Array = require( '@stdlib/assert-is-float64array' );\n\n\n// MAIN //\n\n/**\n* Tests if a value is a 2-dimensional ndarray-like object whose underlying data type is `float64`.\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 `float64`\n*\n* @example\n* var Float64Array = require( '@stdlib/array-float64' );\n* var ndarray = require( '@stdlib/ndarray-ctor' );\n*\n* var buffer = new Float64Array( [ 0, 0, 0, 0 ] );\n* var arr = ndarray( 'float64', buffer, [ 2, 2 ], [ 2, 1 ], 0, 'row-major' );\n*\n* var bool = isFloat64MatrixLike( arr );\n* // returns true\n*\n* bool = isFloat64MatrixLike( [] );\n* // returns false\n*/\nfunction isFloat64MatrixLike( v ) {\n\treturn ( isMatrixLike( v ) && isFloat64Array( v.data ) );\n}\n\n\n// EXPORTS //\n\nmodule.exports = isFloat64MatrixLike;\n", "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2020 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 `float64`.\n*\n* @module @stdlib/assert-is-float64matrix-like\n*\n* @example\n* var ndarray = require( '@stdlib/ndarray-ctor' );\n* var Float64Array = require( '@stdlib/array-float64' );\n* var isFloat64MatrixLike = require( '@stdlib/assert-is-float64matrix-like' );\n*\n* var buffer = new Float64Array( [ 0, 0, 0, 0 ] );\n*\n* var arr = ndarray( 'float64', buffer, [ 2, 2 ], [ 2, 1 ], 0, 'row-major' );\n*\n* var bool = isFloat64MatrixLike( arr );\n* // returns true\n*\n* bool = isFloat64MatrixLike( [] );\n* // returns false\n*/\n\n// MODULES //\n\nvar isFloat64MatrixLike = require( './main.js' );\n\n\n// EXPORTS //\n\nmodule.exports = isFloat64MatrixLike;\n"],
5
- "mappings": "uGAAA,IAAAA,EAAAC,EAAA,SAAAC,EAAAC,EAAA,cAsBA,IAAIC,EAAe,QAAS,+BAAgC,EACxDC,EAAiB,QAAS,gCAAiC,EAwB/D,SAASC,EAAqBC,EAAI,CACjC,OAASH,EAAcG,CAAE,GAAKF,EAAgBE,EAAE,IAAK,CACtD,CAKAJ,EAAO,QAAUG,ICXjB,IAAIE,EAAsB,IAK1B,OAAO,QAAUA",
6
- "names": ["require_main", "__commonJSMin", "exports", "module", "isMatrixLike", "isFloat64Array", "isFloat64MatrixLike", "v", "isFloat64MatrixLike"]
4
+ "sourcesContent": ["/**\n* @license Apache-2.0\n*\n* Copyright (c) 2020 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 `float64`.\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 `float64`\n*\n* @example\n* var Float64Array = require( '@stdlib/array-float64' );\n* var ndarray = require( '@stdlib/ndarray-ctor' );\n*\n* var buffer = new Float64Array( [ 0, 0, 0, 0 ] );\n* var arr = ndarray( 'float64', buffer, [ 2, 2 ], [ 2, 1 ], 0, 'row-major' );\n*\n* var bool = isFloat64MatrixLike( arr );\n* // returns true\n*\n* bool = isFloat64MatrixLike( [] );\n* // returns false\n*/\nfunction isFloat64MatrixLike( v ) {\n\treturn ( isMatrixLike( v ) && v.dtype === 'float64' );\n}\n\n\n// EXPORTS //\n\nmodule.exports = isFloat64MatrixLike;\n", "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2020 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 `float64`.\n*\n* @module @stdlib/assert-is-float64matrix-like\n*\n* @example\n* var ndarray = require( '@stdlib/ndarray-ctor' );\n* var Float64Array = require( '@stdlib/array-float64' );\n* var isFloat64MatrixLike = require( '@stdlib/assert-is-float64matrix-like' );\n*\n* var buffer = new Float64Array( [ 0, 0, 0, 0 ] );\n*\n* var arr = ndarray( 'float64', buffer, [ 2, 2 ], [ 2, 1 ], 0, 'row-major' );\n*\n* var bool = isFloat64MatrixLike( arr );\n* // returns true\n*\n* bool = isFloat64MatrixLike( [] );\n* // returns false\n*/\n\n// MODULES //\n\nvar isFloat64MatrixLike = require( './main.js' );\n\n\n// EXPORTS //\n\nmodule.exports = isFloat64MatrixLike;\n"],
5
+ "mappings": "uGAAA,IAAAA,EAAAC,EAAA,SAAAC,EAAAC,EAAA,cAsBA,IAAIC,EAAe,QAAS,+BAAgC,EAwB5D,SAASC,EAAqBC,EAAI,CACjC,OAASF,EAAcE,CAAE,GAAKA,EAAE,QAAU,SAC3C,CAKAH,EAAO,QAAUE,ICVjB,IAAIE,EAAsB,IAK1B,OAAO,QAAUA",
6
+ "names": ["require_main", "__commonJSMin", "exports", "module", "isMatrixLike", "isFloat64MatrixLike", "v", "isFloat64MatrixLike"]
7
7
  }
@@ -25,8 +25,8 @@
25
25
  * @returns boolean indicating if a value is a 2-dimensional ndarray-like object whose underlying data type is `float64`
26
26
  *
27
27
  * @example
28
- * var Float64Array = require( `@stdlib/array/float64` );
29
- * var ndarray = require( `@stdlib/ndarray/ctor` );
28
+ * var Float64Array = require( '@stdlib/array-float64' );
29
+ * var ndarray = require( '@stdlib/ndarray-ctor' );
30
30
  *
31
31
  * var arr = ndarray( 'float64', new Float64Array( [ 0, 0, 0, 0 ] ), [ 2, 2 ], [ 2, 1 ], 0, 'row-major' );
32
32
  *
package/lib/main.js CHANGED
@@ -21,7 +21,6 @@
21
21
  // MODULES //
22
22
 
23
23
  var isMatrixLike = require( '@stdlib/assert-is-matrix-like' );
24
- var isFloat64Array = require( '@stdlib/assert-is-float64array' );
25
24
 
26
25
 
27
26
  // MAIN //
@@ -46,7 +45,7 @@ var isFloat64Array = require( '@stdlib/assert-is-float64array' );
46
45
  * // returns false
47
46
  */
48
47
  function isFloat64MatrixLike( v ) {
49
- return ( isMatrixLike( v ) && isFloat64Array( v.data ) );
48
+ return ( isMatrixLike( v ) && v.dtype === 'float64' );
50
49
  }
51
50
 
52
51
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stdlib/assert-is-float64matrix-like",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "description": "Test if a value is a 2-dimensional ndarray-like object containing double-precision floating-point numbers.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -15,19 +15,12 @@
15
15
  ],
16
16
  "main": "./lib",
17
17
  "directories": {
18
- "benchmark": "./benchmark",
19
18
  "doc": "./docs",
20
- "example": "./examples",
21
19
  "lib": "./lib",
22
- "test": "./test"
20
+ "dist": "./dist"
23
21
  },
24
22
  "types": "./docs/types",
25
- "scripts": {
26
- "test": "make test",
27
- "test-cov": "make test-cov",
28
- "examples": "make examples",
29
- "benchmark": "make benchmark"
30
- },
23
+ "scripts": {},
31
24
  "homepage": "https://stdlib.io",
32
25
  "repository": {
33
26
  "type": "git",
@@ -37,19 +30,9 @@
37
30
  "url": "https://github.com/stdlib-js/stdlib/issues"
38
31
  },
39
32
  "dependencies": {
40
- "@stdlib/assert-is-float64array": "^0.1.0",
41
- "@stdlib/assert-is-matrix-like": "^0.1.0"
42
- },
43
- "devDependencies": {
44
- "@stdlib/array-float64": "^0.1.0",
45
- "@stdlib/assert-is-boolean": "^0.1.0",
46
- "@stdlib/bench": "^0.1.0",
47
- "@stdlib/ndarray-ctor": "^0.0.10",
48
- "@stdlib/utils-noop": "^0.1.0",
49
- "tape": "git+https://github.com/kgryte/tape.git#fix/globby",
50
- "istanbul": "^0.4.1",
51
- "tap-min": "git+https://github.com/Planeshifter/tap-min.git"
33
+ "@stdlib/assert-is-matrix-like": "^0.2.1"
52
34
  },
35
+ "devDependencies": {},
53
36
  "engines": {
54
37
  "node": ">=0.10.0",
55
38
  "npm": ">2.7.0"
package/CITATION.cff DELETED
@@ -1,30 +0,0 @@
1
- cff-version: 1.2.0
2
- title: stdlib
3
- message: >-
4
- If you use this software, please cite it using the
5
- metadata from this file.
6
-
7
- type: software
8
-
9
- authors:
10
- - name: The Stdlib Authors
11
- url: https://github.com/stdlib-js/stdlib/graphs/contributors
12
-
13
- repository-code: https://github.com/stdlib-js/stdlib
14
- url: https://stdlib.io
15
-
16
- abstract: |
17
- Standard library for JavaScript and Node.js.
18
-
19
- keywords:
20
- - JavaScript
21
- - Node.js
22
- - TypeScript
23
- - standard library
24
- - scientific computing
25
- - numerical computing
26
- - statistical computing
27
-
28
- license: Apache-2.0 AND BSL-1.0
29
-
30
- date-released: 2016