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/ndarray/README.md
+33Lines changed: 33 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,10 +71,14 @@ In addition, the namespace contains the following multidimensional array utility
71
71
72
72
<divclass="namespace-toc">
73
73
74
+
- <spanclass="signature">[`anyBy( x[, options], predicate[, thisArg] )`][@stdlib/ndarray/any-by]</span><spanclass="delimiter">: </span><spanclass="description">test whether at least one element along one or more `ndarray` dimensions passes a test implemented by a predicate function.</span>
75
+
- <spanclass="signature">[`any( x[, options] )`][@stdlib/ndarray/any]</span><spanclass="delimiter">: </span><spanclass="description">test whether at least one element along one or more `ndarray` dimensions is truthy.</span>
74
76
- <spanclass="signature">[`at( x[, ...indices] )`][@stdlib/ndarray/at]</span><spanclass="delimiter">: </span><spanclass="description">return an `ndarray` element.</span>
75
77
- <spanclass="signature">[`broadcastArray( x, shape )`][@stdlib/ndarray/broadcast-array]</span><spanclass="delimiter">: </span><spanclass="description">broadcast an ndarray to a specified shape.</span>
76
78
- <spanclass="signature">[`broadcastArrays( ...arrays )`][@stdlib/ndarray/broadcast-arrays]</span><spanclass="delimiter">: </span><spanclass="description">broadcast ndarrays to a common shape.</span>
77
79
- <spanclass="signature">[`castingModes()`][@stdlib/ndarray/casting-modes]</span><spanclass="delimiter">: </span><spanclass="description">list of ndarray casting modes.</span>
80
+
- <spanclass="signature">[`concat( arrays[, dim] )`][@stdlib/ndarray/concat]</span><spanclass="delimiter">: </span><spanclass="description">concatenate a list of ndarrays along a specified ndarray dimension.</span>
81
+
- <spanclass="signature">[`copy( x[, options] )`][@stdlib/ndarray/copy]</span><spanclass="delimiter">: </span><spanclass="description">copy an input ndarray to a new ndarray having the same shape and data type.</span>
78
82
- <spanclass="signature">[`countFalsy( x[, options] )`][@stdlib/ndarray/count-falsy]</span><spanclass="delimiter">: </span><spanclass="description">count the number of falsy elements along one or more `ndarray` dimensions.</span>
79
83
- <spanclass="signature">[`countIf( x[, options], predicate[, thisArg] )`][@stdlib/ndarray/count-if]</span><spanclass="delimiter">: </span><spanclass="description">count the number of truthy elements along one or more `ndarray` dimensions.</span>
80
84
- <spanclass="signature">[`countTruthy( x[, options] )`][@stdlib/ndarray/count-truthy]</span><spanclass="delimiter">: </span><spanclass="description">count the number of truthy elements along one or more `ndarray` dimensions.</span>
@@ -93,9 +97,11 @@ In addition, the namespace contains the following multidimensional array utility
93
97
- <spanclass="signature">[`fill( x, value )`][@stdlib/ndarray/fill]</span><spanclass="delimiter">: </span><spanclass="description">fill an input `ndarray` with a specified value.</span>
94
98
- <spanclass="signature">[`filterMap( x[, options], fcn[, thisArg] )`][@stdlib/ndarray/filter-map]</span><spanclass="delimiter">: </span><spanclass="description">filter and map elements in an input ndarray to elements in a new output ndarray according to a callback function.</span>
95
99
- <spanclass="signature">[`filter( x[, options], predicate[, thisArg] )`][@stdlib/ndarray/filter]</span><spanclass="delimiter">: </span><spanclass="description">return a shallow copy of an ndarray containing only those elements which pass a test implemented by a predicate function.</span>
100
+
- <spanclass="signature">[`find( x[, options], predicate[, thisArg] )`][@stdlib/ndarray/find]</span><spanclass="delimiter">: </span><spanclass="description">return a new ndarray containing the first elements which pass a test implemented by a predicate function along one or more ndarray dimensions.</span>
96
101
- <spanclass="signature">[`flag( x, name )`][@stdlib/ndarray/flag]</span><spanclass="delimiter">: </span><spanclass="description">return a specified flag for a provided ndarray.</span>
97
102
- <spanclass="signature">[`flags( x )`][@stdlib/ndarray/flags]</span><spanclass="delimiter">: </span><spanclass="description">return the flags of a provided ndarray.</span>
98
103
- <spanclass="signature">[`flattenBy( x[, options], fcn[, thisArg] )`][@stdlib/ndarray/flatten-by]</span><spanclass="delimiter">: </span><spanclass="description">flatten an ndarray according to a callback function.</span>
104
+
- <spanclass="signature">[`flattenFrom( x, dim[, options] )`][@stdlib/ndarray/flatten-from]</span><spanclass="delimiter">: </span><spanclass="description">return a copy of an input ndarray where all dimensions of the input ndarray are flattened starting from a specified dimension.</span>
99
105
- <spanclass="signature">[`flatten( x[, options] )`][@stdlib/ndarray/flatten]</span><spanclass="delimiter">: </span><spanclass="description">return a flattened copy of an input ndarray.</span>
100
106
- <spanclass="signature">[`forEach( x, fcn[, thisArg] )`][@stdlib/ndarray/for-each]</span><spanclass="delimiter">: </span><spanclass="description">invoke a callback function once for each ndarray element.</span>
101
107
- <spanclass="signature">[`scalar2ndarray( value[, options] )`][@stdlib/ndarray/from-scalar]</span><spanclass="delimiter">: </span><spanclass="description">convert a scalar value to a zero-dimensional ndarray.</span>
@@ -118,11 +124,15 @@ In addition, the namespace contains the following multidimensional array utility
118
124
- <spanclass="signature">[`order( x )`][@stdlib/ndarray/order]</span><spanclass="delimiter">: </span><spanclass="description">return the layout order of a provided ndarray.</span>
119
125
- <spanclass="signature">[`orders()`][@stdlib/ndarray/orders]</span><spanclass="delimiter">: </span><spanclass="description">list of ndarray orders.</span>
120
126
- <spanclass="signature">[`outputDataTypePolicies()`][@stdlib/ndarray/output-dtype-policies]</span><spanclass="delimiter">: </span><spanclass="description">list of output ndarray data type policies.</span>
127
+
- <spanclass="signature">[`pop( x[, options] )`][@stdlib/ndarray/pop]</span><spanclass="delimiter">: </span><spanclass="description">return an array containing a read-only truncated view of an input `ndarray` and a read-only view of the last element(s) along a specified dimension.</span>
121
128
- <spanclass="signature">[`promotionRules( [dtype1, dtype2] )`][@stdlib/ndarray/promotion-rules]</span><spanclass="delimiter">: </span><spanclass="description">return the ndarray data type with the smallest size and closest "kind" to which ndarray data types can be **safely** cast.</span>
122
129
- <spanclass="signature">[`reject( x[, options], predicate[, thisArg] )`][@stdlib/ndarray/reject]</span><spanclass="delimiter">: </span><spanclass="description">return a shallow copy of an ndarray containing only those elements which fail a test implemented by a predicate function.</span>
130
+
- <spanclass="signature">[`reverseDimension( x, dim )`][@stdlib/ndarray/reverse-dimension]</span><spanclass="delimiter">: </span><spanclass="description">return a **read-only** view of an input `ndarray` in which the order of elements along a specified dimension is reversed.</span>
131
+
- <spanclass="signature">[`reverse( x )`][@stdlib/ndarray/reverse]</span><spanclass="delimiter">: </span><spanclass="description">return a **read-only** view of an input `ndarray` in which the order of elements along each dimension is reversed.</span>
123
132
- <spanclass="signature">[`safeCasts( [dtype] )`][@stdlib/ndarray/safe-casts]</span><spanclass="delimiter">: </span><spanclass="description">return a list of ndarray data types to which a provided ndarray data type can be safely cast.</span>
124
133
- <spanclass="signature">[`sameKindCasts( [dtype] )`][@stdlib/ndarray/same-kind-casts]</span><spanclass="delimiter">: </span><spanclass="description">return a list of ndarray data types to which a provided ndarray data type can be safely cast or cast within the same "kind".</span>
125
134
- <spanclass="signature">[`shape( x )`][@stdlib/ndarray/shape]</span><spanclass="delimiter">: </span><spanclass="description">return the shape of a provided ndarray.</span>
135
+
- <spanclass="signature">[`shift( x[, options] )`][@stdlib/ndarray/shift]</span><spanclass="delimiter">: </span><spanclass="description">return an array containing a read-only truncated view of an input `ndarray` and a read-only view of the first element(s) along a specified dimension.</span>
126
136
- <spanclass="signature">[`sliceAssign( x, y, ...s[, options] )`][@stdlib/ndarray/slice-assign]</span><spanclass="delimiter">: </span><spanclass="description">assign element values from a broadcasted input `ndarray` to corresponding elements in an output `ndarray` view.</span>
127
137
- <spanclass="signature">[`sliceDimensionFrom( x, dim, start[, options] )`][@stdlib/ndarray/slice-dimension-from]</span><spanclass="delimiter">: </span><spanclass="description">return a read-only shifted view of an input `ndarray` along a specified dimension.</span>
128
138
- <spanclass="signature">[`sliceDimensionTo( x, dim, stop[, options] )`][@stdlib/ndarray/slice-dimension-to]</span><spanclass="delimiter">: </span><spanclass="description">return a read-only truncated view of an input `ndarray` along a specified dimension.</span>
@@ -137,6 +147,7 @@ In addition, the namespace contains the following multidimensional array utility
137
147
- <spanclass="signature">[`ndarray2array( x )`][@stdlib/ndarray/to-array]</span><spanclass="delimiter">: </span><spanclass="description">convert an ndarray to a generic array.</span>
138
148
- <spanclass="signature">[`ndarray2fancy( x[, options] )`][@stdlib/ndarray/to-fancy]</span><spanclass="delimiter">: </span><spanclass="description">convert an ndarray to an object supporting fancy indexing.</span>
139
149
- <spanclass="signature">[`ndarray2json( x )`][@stdlib/ndarray/to-json]</span><spanclass="delimiter">: </span><spanclass="description">serialize an ndarray as a JSON object.</span>
150
+
- <spanclass="signature">[`toReversed( x )`][@stdlib/ndarray/to-reversed]</span><spanclass="delimiter">: </span><spanclass="description">return a new `ndarray` where the order of elements of an input `ndarray` is reversed along each dimension.</span>
140
151
- <spanclass="signature">[`vector`][@stdlib/ndarray/vector]</span><spanclass="delimiter">: </span><spanclass="description">vector constructors and associated utilities.</span>
141
152
- <spanclass="signature">[`with( x, indices, value )`][@stdlib/ndarray/with]</span><spanclass="delimiter">: </span><spanclass="description">return a new ndarray with the element at a specified index replaced by a provided value.</span>
142
153
- <spanclass="signature">[`zerosLike( x[, options] )`][@stdlib/ndarray/zeros-like]</span><spanclass="delimiter">: </span><spanclass="description">create a zero-filled ndarray having the same shape and data type as a provided ndarray.</span>
0 commit comments