Skip to content

Commit 67801ff

Browse files
committed
Add support for complex number arrays
1 parent d8eaf42 commit 67801ff

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

lib/node_modules/@stdlib/array/dtype/lib/ctor2dtype.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ var ctor2dtypes = {
3131
'Uint16Array': 'uint16',
3232
'Uint32Array': 'uint32',
3333
'Uint8Array': 'uint8',
34-
'Uint8ClampedArray': 'uint8c'
34+
'Uint8ClampedArray': 'uint8c',
35+
'Complex64Array': 'complex64',
36+
'Complex128Array': 'complex128'
3537
};
3638

3739

lib/node_modules/@stdlib/array/dtype/lib/ctors.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ var Int16Array = require( '@stdlib/array/int16' );
2929
var Uint8Array = require( '@stdlib/array/uint8' );
3030
var Uint8ClampedArray = require( '@stdlib/array/uint8c' );
3131
var Int8Array = require( '@stdlib/array/int8' );
32+
var Complex64Array = require( '@stdlib/array/complex64' );
33+
var Complex128Array = require( '@stdlib/array/complex128' );
3234

3335

3436
// MAIN //
@@ -43,7 +45,9 @@ var CTORS = [
4345
Uint16Array,
4446
Int8Array,
4547
Uint8Array,
46-
Uint8ClampedArray
48+
Uint8ClampedArray,
49+
Complex64Array,
50+
Complex128Array
4751
];
4852

4953

lib/node_modules/@stdlib/array/dtype/lib/dtypes.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ var DTYPES = [
3030
'uint16',
3131
'int8',
3232
'uint8',
33-
'uint8c'
33+
'uint8c',
34+
'complex64',
35+
'complex128'
3436
];
3537

3638

0 commit comments

Comments
 (0)