File tree 1 file changed +3
-1
lines changed
lib/node_modules/@stdlib/array/typed/lib
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,13 @@ var isString = require( '@stdlib/assert/is-string' ).isPrimitive;
24
24
var ctors = require ( '@stdlib/array/typed-ctors' ) ;
25
25
var reinterpret128 = require ( '@stdlib/strided/base/reinterpret-complex128' ) ;
26
26
var reinterpret64 = require ( '@stdlib/strided/base/reinterpret-complex64' ) ;
27
+ var defaults = require ( '@stdlib/array/defaults' ) ;
27
28
var format = require ( '@stdlib/string/format' ) ;
28
29
29
30
30
31
// VARIABLES //
31
32
33
+ var DEFAULT_DTYPE = defaults . get ( 'dtypes.default' ) ;
32
34
var Complex64Array = ctors ( 'complex64' ) ;
33
35
var Complex128Array = ctors ( 'complex128' ) ;
34
36
@@ -128,7 +130,7 @@ function typedarray() {
128
130
nargs -= 1 ;
129
131
dtype = arguments [ nargs ] ;
130
132
} else {
131
- dtype = 'float64' ;
133
+ dtype = DEFAULT_DTYPE ;
132
134
}
133
135
ctor = ctors ( dtype ) ;
134
136
if ( ctor === null ) {
You can’t perform that action at this time.
0 commit comments