Skip to content

Commit 4662f0c

Browse files
fix: updated import statements
1 parent ac8d081 commit 4662f0c

File tree

18 files changed

+51
-51
lines changed

18 files changed

+51
-51
lines changed

lib/node_modules/@stdlib/blas/ext/base/wasm/snansumkbn2/README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ var snansumkbn2 = require( '@stdlib/blas/ext/base/wasm/snansumkbn2' );
3535
Computes the sum of single-precision floating-point strided array elements, ignoring `NaN` values and using a second-order iterative Kahan–Babuška algorithm.
3636

3737
```javascript
38-
var Float32Array = require( '@stdlib/array/float64' );
38+
var Float32Array = require( '@stdlib/array/float32' );
3939

4040
var x = new Float32Array( [ 1.0, -2.0, NaN, 2.0 ] );
4141

@@ -46,13 +46,13 @@ var v = snansumkbn2.main( x.length, x, 1 );
4646
The function has the following parameters:
4747

4848
- **N**: number of indexed elements.
49-
- **x**: input [`Float32Array`][@stdlib/array/float64].
49+
- **x**: input [`Float32Array`][@stdlib/array/float32].
5050
- **strideX**: stride length for `x`.
5151

5252
The `N` and stride parameters determine which elements in the strided arrays are accessed at runtime. For example, to compute the sum of every other element in `x`,
5353

5454
```javascript
55-
var Float32Array = require( '@stdlib/array/float64' );
55+
var Float32Array = require( '@stdlib/array/float32' );
5656

5757
var x = new Float32Array( [ 1.0, 2.0, NaN, -7.0, NaN, 3.0, 4.0, 2.0 ] );
5858

@@ -65,7 +65,7 @@ Note that indexing is relative to the first index. To introduce an offset, use [
6565
<!-- eslint-disable stdlib/capitalized-comments -->
6666

6767
```javascript
68-
var Float32Array = require( '@stdlib/array/float64' );
68+
var Float32Array = require( '@stdlib/array/float32' );
6969

7070
var x0 = new Float32Array( [ 2.0, 1.0, NaN, -2.0, -2.0, 2.0, 3.0, 4.0 ] );
7171
var x1 = new Float32Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); // start at 2nd element
@@ -79,7 +79,7 @@ var v = snansumkbn2.main( 4, x1, 2 );
7979
Computes the sum of single-precision floating-point strided array elements, ignoring `NaN` values and using a second-order iterative Kahan–Babuška algorithm indexing semantics.
8080

8181
```javascript
82-
var Float32Array = require( '@stdlib/array/float64' );
82+
var Float32Array = require( '@stdlib/array/float32' );
8383

8484
var x = new Float32Array( [ 1.0, -2.0, NaN, 2.0 ] );
8585

@@ -94,7 +94,7 @@ The function has the following additional parameters:
9494
While [`typed array`][mdn-typed-array] views mandate a view offset based on the underlying buffer, the offset parameter supports indexing semantics based on a starting index. For example, to calculate the sum of every other element starting from the second element:
9595

9696
```javascript
97-
var Float32Array = require( '@stdlib/array/float64' );
97+
var Float32Array = require( '@stdlib/array/float32' );
9898

9999
var x = new Float32Array( [ 2.0, 1.0, NaN, -2.0, -2.0, 2.0, 3.0, 4.0 ] );
100100

@@ -154,7 +154,7 @@ var mod = new snansumkbn2.Module( mem );
154154
mod.initializeSync();
155155

156156
// Define a vector data type:
157-
var dtype = 'float64';
157+
var dtype = 'float32';
158158

159159
// Specify a vector length:
160160
var N = 3;
@@ -173,7 +173,7 @@ var v = mod.main( N, xptr, 1 );
173173
The function has the following parameters:
174174

175175
- **N**: number of indexed elements.
176-
- **xp**: input [`Float32Array`][@stdlib/array/float64] pointer (i.e., byte offset).
176+
- **xp**: input [`Float32Array`][@stdlib/array/float32] pointer (i.e., byte offset).
177177
- **sx**: stride length for `x`.
178178

179179
#### snansumkbn2.Module.prototype.ndarray( N, xp, sx, ox )
@@ -201,7 +201,7 @@ var mod = new snansumkbn2.Module( mem );
201201
mod.initializeSync();
202202

203203
// Define a vector data type:
204-
var dtype = 'float64';
204+
var dtype = 'float32';
205205

206206
// Specify a vector length:
207207
var N = 3;
@@ -251,7 +251,7 @@ var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
251251
var snansumkbn2 = require( '@stdlib/blas/ext/base/wasm/snansumkbn2' );
252252

253253
var opts = {
254-
'dtype': 'float64'
254+
'dtype': 'float32'
255255
};
256256
var x = discreteUniform( 10, 0, 100, opts );
257257
console.log( x );
@@ -278,7 +278,7 @@ console.log( v );
278278

279279
[mdn-typed-array]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray
280280

281-
[@stdlib/array/float64]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/array/float64
281+
[@stdlib/array/float32]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/array/float32
282282

283283
[@stdlib/wasm/memory]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/wasm/memory
284284

lib/node_modules/@stdlib/blas/ext/base/wasm/snansumkbn2/benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ var opts = {
3535
'skip': !hasWebAssemblySupport()
3636
};
3737
var options = {
38-
'dtype': 'float64'
38+
'dtype': 'float32'
3939
};
4040

4141

lib/node_modules/@stdlib/blas/ext/base/wasm/snansumkbn2/benchmark/benchmark.module.main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ var opts = {
3737
'skip': !hasWebAssemblySupport()
3838
};
3939
var options = {
40-
'dtype': 'float64'
40+
'dtype': 'float32'
4141
};
4242

4343

lib/node_modules/@stdlib/blas/ext/base/wasm/snansumkbn2/benchmark/benchmark.module.ndarray.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ var opts = {
3737
'skip': !hasWebAssemblySupport()
3838
};
3939
var options = {
40-
'dtype': 'float64'
40+
'dtype': 'float32'
4141
};
4242

4343

lib/node_modules/@stdlib/blas/ext/base/wasm/snansumkbn2/benchmark/benchmark.ndarray.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ var opts = {
3535
'skip': !hasWebAssemblySupport()
3636
};
3737
var options = {
38-
'dtype': 'float64'
38+
'dtype': 'float32'
3939
};
4040

4141

lib/node_modules/@stdlib/blas/ext/base/wasm/snansumkbn2/docs/repl.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,18 @@
3131
Examples
3232
--------
3333
// Standard Usage:
34-
> var x = new {{alias:@stdlib/array/float64}}( [ 1.0, -2.0, NaN, 2.0 ] );
34+
> var x = new {{alias:@stdlib/array/float32}}( [ 1.0, -2.0, NaN, 2.0 ] );
3535
> {{alias}}.main( x.length, x, 1 )
3636
1.0
3737

3838
// Using `N` and stride parameters:
39-
> x = new {{alias:@stdlib/array/float64}}( [ -2.0, 1.0, 1.0, -5.0, 2.0, -1.0, NaN, NaN ] );
39+
> x = new {{alias:@stdlib/array/float32}}( [ -2.0, 1.0, 1.0, -5.0, 2.0, -1.0, NaN, NaN ] );
4040
> {{alias}}.main( 4, x, 2 )
4141
1.0
4242

4343
// Using view offsets:
44-
> var x0 = new {{alias:@stdlib/array/float64}}( [ 1.0, -2.0, 3.0, 2.0, 5.0, -1.0, NaN, NaN ] );
45-
> var x1 = new {{alias:@stdlib/array/float64}}( x0.buffer, x0.BYTES_PER_ELEMENT*1 );
44+
> var x0 = new {{alias:@stdlib/array/float32}}( [ 1.0, -2.0, 3.0, 2.0, 5.0, -1.0, NaN, NaN ] );
45+
> var x1 = new {{alias:@stdlib/array/float32}}( x0.buffer, x0.BYTES_PER_ELEMENT*1 );
4646
> {{alias}}.main( 4, x1, 2 )
4747
-1.0
4848

@@ -78,12 +78,12 @@
7878
Examples
7979
--------
8080
// Standard Usage:
81-
> var x = new {{alias:@stdlib/array/float64}}( [ 1.0, -2.0, NaN, 2.0 ] );
81+
> var x = new {{alias:@stdlib/array/float32}}( [ 1.0, -2.0, NaN, 2.0 ] );
8282
> {{alias}}.ndarray( x.length, x, 1, 0 )
8383
1.0
8484

8585
// Using offset parameter:
86-
> var x = new {{alias:@stdlib/array/float64}}( [ 1.0, -2.0, 3.0, 2.0, 5.0, -1.0, NaN, NaN ] );
86+
> var x = new {{alias:@stdlib/array/float32}}( [ 1.0, -2.0, 3.0, 2.0, 5.0, -1.0, NaN, NaN ] );
8787
> {{alias}}.ndarray( 4, x, 2, 1 )
8888
-1.0
8989

@@ -450,7 +450,7 @@
450450
> var xptr = 0;
451451

452452
// Write data to module memory:
453-
> mod.write( xptr, {{alias:@stdlib/array/one-to}}( 3, 'float64' ) );
453+
> mod.write( xptr, {{alias:@stdlib/array/one-to}}( 3, 'float32' ) );
454454

455455
// Perform computation:
456456
> var s = mod.main( 3, xptr, 1 )
@@ -491,7 +491,7 @@
491491
> var xptr = 0;
492492

493493
// Write data to module memory:
494-
> mod.write( xptr, {{alias:@stdlib/array/one-to}}( 3, 'float64' ) );
494+
> mod.write( xptr, {{alias:@stdlib/array/one-to}}( 3, 'float32' ) );
495495

496496
// Perform computation:
497497
> var s = mod.ndarray( 3, xptr, 1, 0 )

lib/node_modules/@stdlib/blas/ext/base/wasm/snansumkbn2/docs/types/index.d.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ interface ModuleConstructor {
5050
* mod.initializeSync();
5151
*
5252
* // Define a vector data type:
53-
* var dtype = 'float64';
53+
* var dtype = 'float32';
5454
*
5555
* // Specify a vector length:
5656
* var N = 3;
@@ -91,7 +91,7 @@ interface ModuleConstructor {
9191
* mod.initializeSync();
9292
*
9393
* // Define a vector data type:
94-
* var dtype = 'float64';
94+
* var dtype = 'float32';
9595
*
9696
* // Specify a vector length:
9797
* var N = 3;
@@ -139,7 +139,7 @@ interface Module extends ModuleWrapper {
139139
* mod.initializeSync();
140140
*
141141
* // Define a vector data type:
142-
* var dtype = 'float64';
142+
* var dtype = 'float32';
143143
*
144144
* // Specify a vector length:
145145
* var N = 3;
@@ -183,7 +183,7 @@ interface Module extends ModuleWrapper {
183183
* mod.initializeSync();
184184
*
185185
* // Define a vector data type:
186-
* var dtype = 'float64';
186+
* var dtype = 'float32';
187187
*
188188
* // Specify a vector length:
189189
* var N = 3;
@@ -214,7 +214,7 @@ interface Routine extends ModuleWrapper {
214214
* @returns sum
215215
*
216216
* @example
217-
* var Float32Array = require( '@stdlib/array/float64' );
217+
* var Float32Array = require( '@stdlib/array/float32' );
218218
*
219219
* var x = new Float32Array( [ 1.0, -2.0, NaN 2.0 ] );
220220
*
@@ -233,7 +233,7 @@ interface Routine extends ModuleWrapper {
233233
* @returns sum
234234
*
235235
* @example
236-
* var Float32Array = require( '@stdlib/array/float64' );
236+
* var Float32Array = require( '@stdlib/array/float32' );
237237
*
238238
* var x = new Float32Array( [ 2.0, 1.0, NaN, -2.0, -2.0, 2.0, 3.0, 4.0 ] );
239239
*
@@ -266,7 +266,7 @@ interface Routine extends ModuleWrapper {
266266
* mod.initializeSync();
267267
*
268268
* // Define a vector data type:
269-
* var dtype = 'float64';
269+
* var dtype = 'float32';
270270
*
271271
* // Specify a vector length:
272272
* var N = 3;
@@ -293,15 +293,15 @@ interface Routine extends ModuleWrapper {
293293
* @returns sum
294294
*
295295
* @example
296-
* var Float32Array = require( '@stdlib/array/float64' );
296+
* var Float32Array = require( '@stdlib/array/float32' );
297297
*
298298
* var x = new Float32Array( [ 1.0, -2.0, NaN, 2.0 ] );
299299
*
300300
* var out = snansumkbn2.main( 4, x, 1 );
301301
* // returns 1.0
302302
*
303303
* @example
304-
* var Float32Array = require( '@stdlib/array/float64' );
304+
* var Float32Array = require( '@stdlib/array/float32' );
305305
*
306306
* var x = new Float32Array( [ 2.0, 1.0, NaN, -2.0, -2.0, 2.0, 3.0, 4.0 ] );
307307
*

lib/node_modules/@stdlib/blas/ext/base/wasm/snansumkbn2/examples/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function main() {
3131
var N = 3;
3232

3333
// Create an input array:
34-
var x = oneTo( N, 'float64' );
34+
var x = oneTo( N, 'float32' );
3535

3636
// Perform computation:
3737
var v = snansumkbn2.ndarray( N, x, 1, 0 );

lib/node_modules/@stdlib/blas/ext/base/wasm/snansumkbn2/examples/little_endian_arrays.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' );
2222
var Memory = require( '@stdlib/wasm/memory' );
2323
var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory;
2424
var gfillBy = require( '@stdlib/blas/ext/base/gfill-by' );
25-
var Float32ArrayLE = require( '@stdlib/array/little-endian-float64' );
25+
var Float32ArrayLE = require( '@stdlib/array/little-endian-float32' );
2626
var snansumkbn2 = require( './../lib' );
2727

2828
function main() {

lib/node_modules/@stdlib/blas/ext/base/wasm/snansumkbn2/examples/module.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function main() {
4242
mod.initializeSync(); // eslint-disable-line node/no-sync
4343

4444
// Define a vector data type:
45-
var dtype = 'float64';
45+
var dtype = 'float32';
4646

4747
// Specify a vector length:
4848
var N = 3;

0 commit comments

Comments
 (0)