File tree Expand file tree Collapse file tree 5 files changed +22
-24
lines changed
lib/node_modules/@stdlib/ndarray/base/buffer-dtype Expand file tree Collapse file tree 5 files changed +22
-24
lines changed Original file line number Diff line number Diff line change @@ -85,20 +85,17 @@ var bufferCtors = require( '@stdlib/ndarray/base/buffer-ctors' );
85
85
var isFunction = require ( ' @stdlib/assert/is-function' );
86
86
var dtype = require ( ' @stdlib/ndarray/base/buffer-dtype' );
87
87
88
- var DTYPES ;
89
- var ctor;
90
- var buf;
91
- var len;
92
- var dt;
93
- var i;
94
-
95
88
// Get a list of supported ndarray buffer data types:
96
- DTYPES = dtypes ();
89
+ var DTYPES = dtypes ();
97
90
98
91
// Buffer length:
99
- len = 10 ;
92
+ var len = 10 ;
100
93
101
94
// For each supported data type, create a buffer and confirm its data type...
95
+ var ctor;
96
+ var buf;
97
+ var dt;
98
+ var i;
102
99
for ( i = 0 ; i < DTYPES .length ; i++ ) {
103
100
ctor = bufferCtors ( DTYPES [ i ] );
104
101
if ( DTYPES [ i ] === ' binary' && isFunction ( ctor .alloc ) ) {
Original file line number Diff line number Diff line change @@ -23,20 +23,17 @@ var bufferCtors = require( '@stdlib/ndarray/base/buffer-ctors' );
23
23
var isFunction = require ( '@stdlib/assert/is-function' ) ;
24
24
var dtype = require ( './../lib' ) ;
25
25
26
- var DTYPES ;
27
- var ctor ;
28
- var buf ;
29
- var len ;
30
- var dt ;
31
- var i ;
32
-
33
26
// Get a list of supported ndarray buffer data types:
34
- DTYPES = dtypes ( ) ;
27
+ var DTYPES = dtypes ( ) ;
35
28
36
29
// Buffer length:
37
- len = 10 ;
30
+ var len = 10 ;
38
31
39
32
// For each supported data type, create a buffer and confirm its data type...
33
+ var ctor ;
34
+ var buf ;
35
+ var dt ;
36
+ var i ;
40
37
for ( i = 0 ; i < DTYPES . length ; i ++ ) {
41
38
ctor = bufferCtors ( DTYPES [ i ] ) ;
42
39
if ( DTYPES [ i ] === 'binary' && isFunction ( ctor . alloc ) ) {
Original file line number Diff line number Diff line change 1
1
/**
2
2
* @license Apache-2.0
3
3
*
4
- * Copyright (c) 2018 The Stdlib Authors.
4
+ * Copyright (c) 2024 The Stdlib Authors.
5
5
*
6
6
* Licensed under the Apache License, Version 2.0 (the "License");
7
7
* you may not use this file except in compliance with the License.
@@ -35,7 +35,8 @@ var dtypes = {
35
35
'Uint8Array' : 'uint8' ,
36
36
'Uint8ClampedArray' : 'uint8c' ,
37
37
'Complex64Array' : 'complex64' ,
38
- 'Complex128Array' : 'complex128'
38
+ 'Complex128Array' : 'complex128' ,
39
+ 'BooleanArray' : 'bool'
39
40
} ;
40
41
41
42
Original file line number Diff line number Diff line change 1
1
/**
2
2
* @license Apache-2.0
3
3
*
4
- * Copyright (c) 2018 The Stdlib Authors.
4
+ * Copyright (c) 2024 The Stdlib Authors.
5
5
*
6
6
* Licensed under the Apache License, Version 2.0 (the "License");
7
7
* you may not use this file except in compliance with the License.
@@ -31,6 +31,7 @@ var Uint8ClampedArray = require( '@stdlib/array/uint8c' );
31
31
var Int8Array = require ( '@stdlib/array/int8' ) ;
32
32
var Complex64Array = require ( '@stdlib/array/complex64' ) ;
33
33
var Complex128Array = require ( '@stdlib/array/complex128' ) ;
34
+ var BooleanArray = require ( '@stdlib/array/bool' ) ;
34
35
35
36
36
37
// MAIN //
@@ -47,7 +48,8 @@ var CTORS = [
47
48
Uint8Array ,
48
49
Uint8ClampedArray ,
49
50
Complex64Array ,
50
- Complex128Array
51
+ Complex128Array ,
52
+ BooleanArray
51
53
] ;
52
54
53
55
Original file line number Diff line number Diff line change 1
1
/**
2
2
* @license Apache-2.0
3
3
*
4
- * Copyright (c) 2018 The Stdlib Authors.
4
+ * Copyright (c) 2024 The Stdlib Authors.
5
5
*
6
6
* Licensed under the Apache License, Version 2.0 (the "License");
7
7
* you may not use this file except in compliance with the License.
@@ -32,7 +32,8 @@ var DTYPES = [
32
32
'uint8' ,
33
33
'uint8c' ,
34
34
'complex64' ,
35
- 'complex128'
35
+ 'complex128' ,
36
+ 'bool'
36
37
] ;
37
38
38
39
You can’t perform that action at this time.
0 commit comments