diff --git a/lib/node_modules/@stdlib/ndarray/base/char2dtype/README.md b/lib/node_modules/@stdlib/ndarray/base/char2dtype/README.md index 4c9a59c8108d..5a90102c2a27 100644 --- a/lib/node_modules/@stdlib/ndarray/base/char2dtype/README.md +++ b/lib/node_modules/@stdlib/ndarray/base/char2dtype/README.md @@ -90,11 +90,7 @@ var out = char2dtype(); var dtypeChar = require( '@stdlib/ndarray/base/dtype-char' ); var char2dtype = require( '@stdlib/ndarray/base/char2dtype' ); -var chars; -var out; -var i; - -chars = [ +var chars = [ dtypeChar( 'float64' ), dtypeChar( 'float32' ), dtypeChar( 'int8' ), @@ -109,9 +105,9 @@ chars = [ '(' ]; +var i; for ( i = 0; i < chars.length; i++ ) { - out = char2dtype( chars[ i ] ); - console.log( '%s => %s', chars[ i ], out ); + console.log( '%s => %s', chars[ i ], char2dtype( chars[ i ] ) ); } ``` diff --git a/lib/node_modules/@stdlib/ndarray/base/char2dtype/examples/index.js b/lib/node_modules/@stdlib/ndarray/base/char2dtype/examples/index.js index 17ab46b21514..56605dcaad53 100644 --- a/lib/node_modules/@stdlib/ndarray/base/char2dtype/examples/index.js +++ b/lib/node_modules/@stdlib/ndarray/base/char2dtype/examples/index.js @@ -21,11 +21,7 @@ var dtypeChar = require( '@stdlib/ndarray/base/dtype-char' ); var char2dtype = require( './../lib' ); -var chars; -var out; -var i; - -chars = [ +var chars = [ dtypeChar( 'float64' ), dtypeChar( 'float32' ), dtypeChar( 'int8' ), @@ -40,7 +36,7 @@ chars = [ '(' ]; +var i; for ( i = 0; i < chars.length; i++ ) { - out = char2dtype( chars[ i ] ); - console.log( '%s => %s', chars[ i ], out ); + console.log( '%s => %s', chars[ i ], char2dtype( chars[ i ] ) ); } diff --git a/lib/node_modules/@stdlib/ndarray/base/char2dtype/test/test.js b/lib/node_modules/@stdlib/ndarray/base/char2dtype/test/test.js index 718ed3a98790..31854ff657ed 100644 --- a/lib/node_modules/@stdlib/ndarray/base/char2dtype/test/test.js +++ b/lib/node_modules/@stdlib/ndarray/base/char2dtype/test/test.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2021 The Stdlib Authors. +* Copyright (c) 2024 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -61,7 +61,8 @@ tape( 'the function returns the data type string associated with a provided sing 'binary', 'generic', 'complex64', - 'complex128' + 'complex128', + 'bool' ]; for ( i = 0; i < expected.length; i++ ) { ch = dtypeChar( expected[ i ] ); diff --git a/lib/node_modules/@stdlib/ndarray/base/dtype-char/README.md b/lib/node_modules/@stdlib/ndarray/base/dtype-char/README.md index 432282061d26..e92e05767ac0 100644 --- a/lib/node_modules/@stdlib/ndarray/base/dtype-char/README.md +++ b/lib/node_modules/@stdlib/ndarray/base/dtype-char/README.md @@ -89,11 +89,7 @@ var obj = dtypeChar(); ```javascript var dtypeChar = require( '@stdlib/ndarray/base/dtype-char' ); -var dtypes; -var ch; -var i; - -dtypes = [ +var dtypes = [ 'float64', 'float32', 'int8', @@ -108,9 +104,9 @@ dtypes = [ 'foobar' ]; +var i; for ( i = 0; i < dtypes.length; i++ ) { - ch = dtypeChar( dtypes[ i ] ); - console.log( '%s => %s', dtypes[ i ], ch ); + console.log( '%s => %s', dtypes[ i ], dtypeChar( dtypes[ i ] ) ); } ``` diff --git a/lib/node_modules/@stdlib/ndarray/base/dtype-char/examples/index.js b/lib/node_modules/@stdlib/ndarray/base/dtype-char/examples/index.js index f2d05303c20f..3bff7f7a00d1 100644 --- a/lib/node_modules/@stdlib/ndarray/base/dtype-char/examples/index.js +++ b/lib/node_modules/@stdlib/ndarray/base/dtype-char/examples/index.js @@ -20,11 +20,7 @@ var dtypeChar = require( './../lib' ); -var dtypes; -var ch; -var i; - -dtypes = [ +var dtypes = [ 'float64', 'float32', 'int8', @@ -39,7 +35,7 @@ dtypes = [ 'foobar' ]; +var i; for ( i = 0; i < dtypes.length; i++ ) { - ch = dtypeChar( dtypes[ i ] ); - console.log( '%s => %s', dtypes[ i ], ch ); + console.log( '%s => %s', dtypes[ i ], dtypeChar( dtypes[ i ] ) ); } diff --git a/lib/node_modules/@stdlib/ndarray/base/dtype-char/test/test.js b/lib/node_modules/@stdlib/ndarray/base/dtype-char/test/test.js index b8dcaa7e1e1c..9f2135658c37 100644 --- a/lib/node_modules/@stdlib/ndarray/base/dtype-char/test/test.js +++ b/lib/node_modules/@stdlib/ndarray/base/dtype-char/test/test.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2018 The Stdlib Authors. +* Copyright (c) 2024 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,7 +41,8 @@ var DTYPES = [ 'binary', 'generic', 'complex64', - 'complex128' + 'complex128', + 'bool' ]; @@ -74,7 +75,8 @@ tape( 'the function returns an object mapping data type strings to single letter 'r', 'o', 'c', - 'z' + 'z', + 'x' ]; obj = dtypeChar(); @@ -105,7 +107,8 @@ tape( 'the function returns the single letter character abbreviation for an unde 'r', 'o', 'c', - 'z' + 'z', + 'x' ]; for ( i = 0; i < DTYPES.length; i++ ) { ch = dtypeChar( DTYPES[ i ] ); diff --git a/lib/node_modules/@stdlib/ndarray/base/dtype-desc/README.md b/lib/node_modules/@stdlib/ndarray/base/dtype-desc/README.md index 572d4a083a6b..7fd2bf6b50b7 100644 --- a/lib/node_modules/@stdlib/ndarray/base/dtype-desc/README.md +++ b/lib/node_modules/@stdlib/ndarray/base/dtype-desc/README.md @@ -89,11 +89,7 @@ var obj = dtypeDesc(); ```javascript var dtypeDesc = require( '@stdlib/ndarray/base/dtype-desc' ); -var dtypes; -var desc; -var i; - -dtypes = [ +var dtypes = [ 'float64', 'float32', 'int8', @@ -108,9 +104,9 @@ dtypes = [ 'foobar' ]; +var i; for ( i = 0; i < dtypes.length; i++ ) { - desc = dtypeDesc( dtypes[ i ] ); - console.log( '%s: %s', dtypes[ i ], desc ); + console.log( '%s: %s', dtypes[ i ], dtypeDesc( dtypes[ i ] ) ); } ``` diff --git a/lib/node_modules/@stdlib/ndarray/base/dtype-desc/examples/index.js b/lib/node_modules/@stdlib/ndarray/base/dtype-desc/examples/index.js index 0a603f941282..3bbc3f71a53a 100644 --- a/lib/node_modules/@stdlib/ndarray/base/dtype-desc/examples/index.js +++ b/lib/node_modules/@stdlib/ndarray/base/dtype-desc/examples/index.js @@ -20,11 +20,7 @@ var dtypeDesc = require( './../lib' ); -var dtypes; -var desc; -var i; - -dtypes = [ +var dtypes = [ 'float64', 'float32', 'int8', @@ -39,7 +35,7 @@ dtypes = [ 'foobar' ]; +var i; for ( i = 0; i < dtypes.length; i++ ) { - desc = dtypeDesc( dtypes[ i ] ); - console.log( '%s: %s', dtypes[ i ], desc ); + console.log( '%s: %s', dtypes[ i ], dtypeDesc( dtypes[ i ] ) ); } diff --git a/lib/node_modules/@stdlib/ndarray/base/dtype-desc/test/test.js b/lib/node_modules/@stdlib/ndarray/base/dtype-desc/test/test.js index 0450a4091f6e..62f79638fba2 100644 --- a/lib/node_modules/@stdlib/ndarray/base/dtype-desc/test/test.js +++ b/lib/node_modules/@stdlib/ndarray/base/dtype-desc/test/test.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2021 The Stdlib Authors. +* Copyright (c) 2024 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -42,7 +42,8 @@ var DTYPES = [ 'binary', 'generic', 'complex64', - 'complex128' + 'complex128', + 'bool' ]; var DESC = table(); diff --git a/lib/node_modules/@stdlib/ndarray/base/dtype2c/README.md b/lib/node_modules/@stdlib/ndarray/base/dtype2c/README.md index 4776d2593ebb..2dd27773992b 100644 --- a/lib/node_modules/@stdlib/ndarray/base/dtype2c/README.md +++ b/lib/node_modules/@stdlib/ndarray/base/dtype2c/README.md @@ -82,11 +82,7 @@ var out = dtype2c( 'foobar' ); ```javascript var dtype2c = require( '@stdlib/ndarray/base/dtype2c' ); -var dtypes; -var out; -var i; - -dtypes = [ +var dtypes = [ 'float64', 'float32', 'int8', @@ -101,9 +97,9 @@ dtypes = [ 'foobar' ]; +var i; for ( i = 0; i < dtypes.length; i++ ) { - out = dtype2c( dtypes[ i ] ); - console.log( '%s => %s', dtypes[ i ], out ); + console.log( '%s => %s', dtypes[ i ], dtype2c( dtypes[ i ] ) ); } ``` diff --git a/lib/node_modules/@stdlib/ndarray/base/dtype2c/examples/index.js b/lib/node_modules/@stdlib/ndarray/base/dtype2c/examples/index.js index b368db54fa60..af03b3c9e3eb 100644 --- a/lib/node_modules/@stdlib/ndarray/base/dtype2c/examples/index.js +++ b/lib/node_modules/@stdlib/ndarray/base/dtype2c/examples/index.js @@ -20,11 +20,7 @@ var dtype2c = require( './../lib' ); -var dtypes; -var out; -var i; - -dtypes = [ +var dtypes = [ 'float64', 'float32', 'int8', @@ -39,7 +35,7 @@ dtypes = [ 'foobar' ]; +var i; for ( i = 0; i < dtypes.length; i++ ) { - out = dtype2c( dtypes[ i ] ); - console.log( '%s => %s', dtypes[ i ], out ); + console.log( '%s => %s', dtypes[ i ], dtype2c( dtypes[ i ] ) ); } diff --git a/lib/node_modules/@stdlib/ndarray/base/dtype2c/test/test.js b/lib/node_modules/@stdlib/ndarray/base/dtype2c/test/test.js index b2a30e0119c2..0410c84a0fea 100644 --- a/lib/node_modules/@stdlib/ndarray/base/dtype2c/test/test.js +++ b/lib/node_modules/@stdlib/ndarray/base/dtype2c/test/test.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2021 The Stdlib Authors. +* Copyright (c) 2024 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -53,7 +53,8 @@ tape( 'the function returns the C data type associated with a provided data type 'binary', 'generic', 'complex64', - 'complex128' + 'complex128', + 'bool' ]; expected = [ @@ -71,7 +72,8 @@ tape( 'the function returns the C data type associated with a provided data type null, null, 'stdlib_complex64_t', - 'stdlib_complex128_t' + 'stdlib_complex128_t', + 'bool' ]; for ( i = 0; i < values.length; i++ ) { out = dtype2c( values[ i ] );