File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
lib/node_modules/@stdlib/array/typed/lib Expand file tree Collapse file tree 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;
2424var ctors = require ( '@stdlib/array/typed-ctors' ) ;
2525var reinterpret128 = require ( '@stdlib/strided/base/reinterpret-complex128' ) ;
2626var reinterpret64 = require ( '@stdlib/strided/base/reinterpret-complex64' ) ;
27+ var defaults = require ( '@stdlib/array/defaults' ) ;
2728var format = require ( '@stdlib/string/format' ) ;
2829
2930
3031// VARIABLES //
3132
33+ var DEFAULT_DTYPE = defaults . get ( 'dtypes.default' ) ;
3234var Complex64Array = ctors ( 'complex64' ) ;
3335var Complex128Array = ctors ( 'complex128' ) ;
3436
@@ -128,7 +130,7 @@ function typedarray() {
128130 nargs -= 1 ;
129131 dtype = arguments [ nargs ] ;
130132 } else {
131- dtype = 'float64' ;
133+ dtype = DEFAULT_DTYPE ;
132134 }
133135 ctor = ctors ( dtype ) ;
134136 if ( ctor === null ) {
You can’t perform that action at this time.
0 commit comments