You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/blas/ext/zero-to/README.md
+7-26Lines changed: 7 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,13 +35,8 @@ var zeroTo = require( '@stdlib/blas/ext/zero-to' );
35
35
Returns a new [ndarray][@stdlib/ndarray/ctor] filled with linearly spaced numeric elements which increment by `1` starting from zero along one or more [ndarray][@stdlib/ndarray/ctor] dimensions.
36
36
37
37
```javascript
38
-
var ndarray2array =require( '@stdlib/ndarray/to-array' );
@@ -60,50 +55,36 @@ The function accepts the following options:
60
55
By default, the function generates values along the last dimension of an output [ndarray][@stdlib/ndarray/ctor]. To perform the operation over specific dimensions, provide a `dims` option.
61
56
62
57
```javascript
63
-
var ndarray2array =require( '@stdlib/ndarray/to-array' );
To specify the output [ndarray][@stdlib/ndarray/ctor][data type][@stdlib/ndarray/dtypes], provide a `dtype` option.
75
65
76
66
```javascript
77
-
var ndarray2array =require( '@stdlib/ndarray/to-array' );
78
-
79
67
var x =zeroTo( [ 3 ], {
80
68
'dtype':'float32'
81
69
});
82
-
// returns <ndarray>
83
-
84
-
var arr =ndarray2array( x );
85
-
// returns [ 0.0, 1.0, 2.0 ]
70
+
// returns <ndarray>[ 0.0, 1.0, 2.0 ]
86
71
```
87
72
88
73
#### zeroTo.assign( x\[, options] )
89
74
90
75
Fills an [ndarray][@stdlib/ndarray/ctor] with linearly spaced numeric elements which increment by `1` starting from zero along one or more [ndarray][@stdlib/ndarray/ctor] dimensions.
91
76
92
77
```javascript
93
-
var ndarray2array =require( '@stdlib/ndarray/to-array' );
0 commit comments