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
-**depth**: a non-negative integer specifying the number of input [`ndarray`][@stdlib/ndarray/ctor] dimensions to flatten.
61
+
-**options**: function options (_optional_).
62
+
63
+
The function accepts the following options:
64
+
65
+
-**depth**: a nonnegative integer specifying the number of input [`ndarray`][@stdlib/ndarray/ctor] dimensions to flatten.
66
+
67
+
-**order**: order of the output [`ndarray`][@stdlib/ndarray/ctor]. The option may be one of the following values:
68
+
69
+
-`'row-major'`: the input [`ndarray`][@stdlib/ndarray/ctor] is flattened in lexicographic [order][@stdlib/ndarray/orders].
70
+
-`'column-major'`: the input [`ndarray`][@stdlib/ndarray/ctor] is flattened in colexicographic [order][@stdlib/ndarray/orders].
71
+
-`'any'`: the input [`ndarray`][@stdlib/ndarray/ctor] is flattened in colexicographic [order][@stdlib/ndarray/orders] if the input [`ndarray`][@stdlib/ndarray/ctor] is column-major; otherwise, it is flattened in lexicographic [order][@stdlib/ndarray/orders].
72
+
-`'same'`: the input [`ndarray`][@stdlib/ndarray/ctor] is flattened in the [order][@stdlib/ndarray/orders] of the input [`ndarray`][@stdlib/ndarray/ctor].
73
+
74
+
By default, all the dimensinos of the input [ndarray][@stdlib/ndarray/ctor] are flattened. To flatten upto to a specific `depth`, specify the `depth` option.
75
+
76
+
```javascript
77
+
var array =require( '@stdlib/ndarray/array' );
78
+
var ndarray2array =require( '@stdlib/ndarray/to-array' );
By default, the input [ndarray][@stdlib/ndarray/ctor] is flattened in lexicographic order. To flatten in a different [order][@stdlib/ndarray/orders], specify the `order` option.
94
+
95
+
```javascript
96
+
var array =require( '@stdlib/ndarray/array' );
97
+
var ndarray2array =require( '@stdlib/ndarray/to-array' );
0 commit comments