Skip to content

Commit b4dc07d

Browse files
committed
Auto-generated commit
1 parent 9dd6a20 commit b4dc07d

File tree

6 files changed

+11
-9
lines changed

6 files changed

+11
-9
lines changed

.github/.keepalive

Lines changed: 0 additions & 1 deletion
This file was deleted.

NOTICE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Copyright (c) 2016-2023 The Stdlib Authors.
1+
Copyright (c) 2016-2024 The Stdlib Authors.

dist/index.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@
2323
var Complex128 = require( '@stdlib/complex-float64' );
2424
var Complex64 = require( '@stdlib/complex-float32' );
2525
var full = require( '@stdlib/array-full' );
26+
var defaults = require( '@stdlib/array-defaults' );
2627

2728

2829
// VARIABLES //
2930

3031
var Z128 = new Complex128( 1.0, 0.0 );
3132
var Z64 = new Complex64( 1.0, 0.0 );
33+
var DEFAULT_DTYPE = defaults.get( 'dtypes.default' );
3234

3335

3436
// MAIN //
@@ -57,7 +59,7 @@ function ones( length ) {
5759
if ( arguments.length > 1 ) {
5860
dtype = arguments[ 1 ];
5961
} else {
60-
dtype = 'float64';
62+
dtype = DEFAULT_DTYPE;
6163
}
6264
if ( dtype === 'complex128' ) {
6365
value = Z128;

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"url": "https://github.com/stdlib-js/stdlib/issues"
3838
},
3939
"dependencies": {
40+
"@stdlib/array-defaults": "^0.1.0",
4041
"@stdlib/array-full": "^0.1.0",
4142
"@stdlib/complex-float32": "^0.1.1",
4243
"@stdlib/complex-float64": "^0.1.1",

0 commit comments

Comments
 (0)