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
@@ -69,62 +65,50 @@ The function accepts the following options:
69
65
By default, the function returns an [ndarray][@stdlib/ndarray/ctor] having a [data type][@stdlib/ndarray/dtypes] determined by the function's output data type [policy][@stdlib/ndarray/output-dtype-policies]. To override the default behavior, set the `dtype` option.
70
66
71
67
```javascript
72
-
var ndarray2array =require( '@stdlib/ndarray/to-array' );
73
68
var array =require( '@stdlib/ndarray/array' );
74
69
var getDType =require( '@stdlib/ndarray/dtype' );
75
70
76
71
var x =array( [ [ -1.0, -2.0 ], [ -3.0, -4.0 ] ] );
By default, the function returns an [ndarray][@stdlib/ndarray/ctor] having the same [order][@stdlib/ndarray/orders] as the input [ndarray][@stdlib/ndarray/ctor]. To return an [ndarray][@stdlib/ndarray/ctor] having a specific memory layout irrespective of the memory layout of the input [ndarray][@stdlib/ndarray/ctor], set the `order` option.
90
82
91
83
```javascript
92
-
var ndarray2array =require( '@stdlib/ndarray/to-array' );
93
84
var array =require( '@stdlib/ndarray/array' );
94
85
var getOrder =require( '@stdlib/ndarray/order' );
95
86
96
87
var x =array( [ [ -1.0, -2.0 ], [ -3.0, -4.0 ] ] );
Computes the [absolute value][@stdlib/math/base/special/abs] for each element in an [ndarray][@stdlib/ndarray/ctor] and assigns results to a provided output [ndarray][@stdlib/ndarray/ctor].
112
100
113
101
```javascript
114
-
var ndarray2array =require( '@stdlib/ndarray/to-array' );
115
102
var array =require( '@stdlib/ndarray/array' );
116
103
117
104
var x =array( [ [ -1.0, -2.0 ], [ -3.0, -4.0 ] ] );
@@ -135,7 +119,6 @@ The function accepts the following arguments:
135
119
The function supports broadcasting an input [ndarray][@stdlib/ndarray/ctor] to the shape of the output [ndarray][@stdlib/ndarray/ctor] without performing a physical copy of the input [ndarray][@stdlib/ndarray/ctor]'s underlying data.
136
120
137
121
```javascript
138
-
var ndarray2array =require( '@stdlib/ndarray/to-array' );
139
122
var zeros =require( '@stdlib/ndarray/zeros' );
140
123
var array =require( '@stdlib/ndarray/array' );
141
124
@@ -146,10 +129,7 @@ var x = array( [ [ -1.0, -2.0 ], [ -3.0, -4.0 ] ] );
(x: InputArray,options?: Options): typedndarray<number>;// FIXME: we lose type specificity here, as the output ndarray data type is determined according to the output data type policy in conjunction with the `dtype` option
79
75
@@ -85,20 +81,16 @@ interface UnaryFunction {
85
81
* @returns output ndarray
86
82
*
87
83
* @example
88
-
* var ndarray2array = require( '@stdlib/ndarray/to-array' );
89
84
* var array = require( '@stdlib/ndarray/array' );
90
85
*
91
86
* var x = array( [ [ -1.0, -2.0 ], [ -3.0, -4.0 ] ] );
92
87
* var y = array( [ [ 0.0, 0.0 ], [ 0.0, 0.0 ] ] );
0 commit comments