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: README.md
+21-6Lines changed: 21 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -113,6 +113,7 @@ The namespace exports the following functions to manipulate multidimensional arr
113
113
- <spanclass="signature">[`colcat( arrays )`][@stdlib/ndarray/colcat]</span><spanclass="delimiter">: </span><spanclass="description">concatenate a list of one-dimensional or two-dimensional ndarrays as columns.</span>
114
114
- <spanclass="signature">[`concat( arrays[, options] )`][@stdlib/ndarray/concat]</span><spanclass="delimiter">: </span><spanclass="description">concatenate a list of ndarrays along a specified ndarray dimension.</span>
115
115
- <spanclass="signature">[`concat1d( ...arrays )`][@stdlib/ndarray/concat1d]</span><spanclass="delimiter">: </span><spanclass="description">return a one-dimensional ndarray formed by concatenating provided input arguments.</span>
116
+
- <spanclass="signature">[`diagonal( x[, options] )`][@stdlib/ndarray/diagonal]</span><spanclass="delimiter">: </span><spanclass="description">return a **read-only** view of the diagonal of a matrix (or stack of matrices).</span>
116
117
- <spanclass="signature">[`fillBy( x, fcn[, thisArg] )`][@stdlib/ndarray/fill-by]</span><spanclass="delimiter">: </span><spanclass="description">fill an input ndarray according to a callback function.</span>
117
118
- <spanclass="signature">[`fillSlice( x, value, ...s[, options] )`][@stdlib/ndarray/fill-slice]</span><spanclass="delimiter">: </span><spanclass="description">fill an input `ndarray` view with a specified value.</span>
118
119
- <spanclass="signature">[`fill( x, value )`][@stdlib/ndarray/fill]</span><spanclass="delimiter">: </span><spanclass="description">fill an input `ndarray` with a specified value.</span>
@@ -131,6 +132,7 @@ The namespace exports the following functions to manipulate multidimensional arr
131
132
- <spanclass="signature">[`push( x, ...values )`][@stdlib/ndarray/push]</span><spanclass="delimiter">: </span><spanclass="description">return a one-dimensional ndarray formed by appending provided scalar values to a one-dimensional input ndarray.</span>
132
133
- <spanclass="signature">[`removeSingletonDimensions( x )`][@stdlib/ndarray/remove-singleton-dimensions]</span><spanclass="delimiter">: </span><spanclass="description">return a read-only view of an input ndarray with singleton dimensions removed.</span>
133
134
- <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>
135
+
- <spanclass="signature">[`reverseDimensions( x, dims )`][@stdlib/ndarray/reverse-dimensions]</span><spanclass="delimiter">: </span><spanclass="description">return a **read-only** view of an input `ndarray` in which the order of elements along specified dimensions is reversed.</span>
134
136
- <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>
135
137
- <spanclass="signature">[`rot180( x[, options] )`][@stdlib/ndarray/rot180]</span><spanclass="delimiter">: </span><spanclass="description">return a **read-only** view of an input ndarray rotated `180` degrees in a specified plane.</span>
136
138
- <spanclass="signature">[`rot90( x[, options] )`][@stdlib/ndarray/rot90]</span><spanclass="delimiter">: </span><spanclass="description">return a **read-only** view of an input ndarray rotated `90` degrees in a specified plane.</span>
@@ -154,6 +156,8 @@ The namespace exports the following functions to manipulate multidimensional arr
154
156
- <spanclass="signature">[`toRot90( x[, options] )`][@stdlib/ndarray/to-rot90]</span><spanclass="delimiter">: </span><spanclass="description">return a new `ndarray` where an input `ndarray` is rotated `90` degrees in a specified plane.</span>
155
157
- <spanclass="signature">[`toRotl90( x, k )`][@stdlib/ndarray/to-rotl90]</span><spanclass="delimiter">: </span><spanclass="description">return a new `ndarray` where a matrix (or a stack of matrices) is rotated 90 degrees counterclockwise.</span>
156
158
- <spanclass="signature">[`toRotr90( x, k )`][@stdlib/ndarray/to-rotr90]</span><spanclass="delimiter">: </span><spanclass="description">return a new `ndarray` where a matrix (or a stack of matrices) is rotated 90 degrees clockwise.</span>
159
+
- <spanclass="signature">[`toUnflattened( x, dim, sizes )`][@stdlib/ndarray/to-unflattened]</span><spanclass="delimiter">: </span><spanclass="description">return a new `ndarray` in which a specified dimension of an input `ndarray` is expanded over multiple dimensions.</span>
160
+
- <spanclass="signature">[`unflatten( x, dim, sizes )`][@stdlib/ndarray/unflatten]</span><spanclass="delimiter">: </span><spanclass="description">return a read-only view of an input ndarray in which a specified dimension is expanded over multiple dimensions.</span>
157
161
- <spanclass="signature">[`unshift( x, ...values )`][@stdlib/ndarray/unshift]</span><spanclass="delimiter">: </span><spanclass="description">return a one-dimensional ndarray formed by prepending provided scalar values to a one-dimensional input ndarray.</span>
158
162
- <spanclass="signature">[`vconcat( arrays )`][@stdlib/ndarray/vconcat]</span><spanclass="delimiter">: </span><spanclass="description">concatenate a list of ndarrays along the second-to-last dimension.</span>
159
163
- <spanclass="signature">[`ndarrayWith( 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>
@@ -224,9 +228,11 @@ The namespace exports the following functions to index multidimensional arrays:
224
228
<divclass="namespace-toc">
225
229
226
230
- <spanclass="signature">[`at( x[, ...indices] )`][@stdlib/ndarray/at]</span><spanclass="delimiter">: </span><spanclass="description">return an `ndarray` element.</span>
231
+
- <spanclass="signature">[`first( x[, options] )`][@stdlib/ndarray/first]</span><spanclass="delimiter">: </span><spanclass="description">return a read-only view of the first element (or subarray) along one or more `ndarray` dimensions.</span>
227
232
- <spanclass="signature">[`ind2sub( shape, idx[, options] )`][@stdlib/ndarray/ind2sub]</span><spanclass="delimiter">: </span><spanclass="description">convert a linear index to an array of subscripts.</span>
228
233
- <spanclass="signature">[`indexModes()`][@stdlib/ndarray/index-modes]</span><spanclass="delimiter">: </span><spanclass="description">list of ndarray index modes.</span>
229
234
- <spanclass="signature">[`ndindex( x[, options] )`][@stdlib/ndarray/index]</span><spanclass="delimiter">: </span><spanclass="description">ndarray index constructor.</span>
235
+
- <spanclass="signature">[`last( x[, options] )`][@stdlib/ndarray/last]</span><spanclass="delimiter">: </span><spanclass="description">return a read-only view of the last element (or subarray) along one or more `ndarray` dimensions.</span>
230
236
- <spanclass="signature">[`sub2ind( shape, ...subscripts[, options] )`][@stdlib/ndarray/sub2ind]</span><spanclass="delimiter">: </span><spanclass="description">convert subscripts to a linear index.</span>
231
237
232
238
</div>
@@ -241,6 +247,7 @@ The namespace exports the following functions to convert multidimensional arrays
241
247
242
248
<divclass="namespace-toc">
243
249
250
+
- <spanclass="signature">[`ndarraylike2scalar( x )`][@stdlib/ndarray/ndarraylike2scalar]</span><spanclass="delimiter">: </span><spanclass="description">convert an ndarray-like object to a scalar value.</span>
244
251
- <spanclass="signature">[`ndarray2array( x )`][@stdlib/ndarray/to-array]</span><spanclass="delimiter">: </span><spanclass="description">convert an ndarray to a generic array.</span>
245
252
- <spanclass="signature">[`ndarray2json( x )`][@stdlib/ndarray/to-json]</span><spanclass="delimiter">: </span><spanclass="description">serialize an ndarray as a JSON object.</span>
246
253
- <spanclass="signature">[`ndarray2localeString( x[, locales[, options]] )`][@stdlib/ndarray/to-locale-string]</span><spanclass="delimiter">: </span><spanclass="description">serialize an ndarray as a locale-aware string.</span>
@@ -301,9 +308,7 @@ The namespace contains the following multidimensional array utility functions:
- <spanclass="signature">[`dispatch( fcns, types, data, nargs, nin, nout )`][@stdlib/ndarray/dispatch]</span><spanclass="delimiter">: </span><spanclass="description">create an ndarray function interface which performs multiple dispatch.</span>
303
310
- <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>
304
-
- <spanclass="signature">[`ndarraylike2scalar( x )`][@stdlib/ndarray/ndarraylike2scalar]</span><spanclass="delimiter">: </span><spanclass="description">convert an ndarray-like object to a scalar value.</span>
305
311
- <spanclass="signature">[`orders()`][@stdlib/ndarray/orders]</span><spanclass="delimiter">: </span><spanclass="description">list of ndarray orders.</span>
306
-
- <spanclass="signature">[`unflatten( x, dim, sizes )`][@stdlib/ndarray/unflatten]</span><spanclass="delimiter">: </span><spanclass="description">return a read-only view of an input ndarray in which a specified dimension is expanded over multiple dimensions.</span>
Copy file name to clipboardExpand all lines: base/README.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,6 +81,7 @@ var o = ns;
81
81
- <spanclass="signature">[`countTruthy( arrays )`][@stdlib/ndarray/base/count-truthy]</span><spanclass="delimiter">: </span><spanclass="description">count the number of truthy elements in an ndarray.</span>
82
82
- <spanclass="signature">[`ndarray( dtype, buffer, shape, strides, offset, order )`][@stdlib/ndarray/base/ctor]</span><spanclass="delimiter">: </span><spanclass="description">create a multidimensional array.</span>
83
83
- <spanclass="signature">[`data( x )`][@stdlib/ndarray/base/data-buffer]</span><spanclass="delimiter">: </span><spanclass="description">return the underlying data buffer of a provided ndarray.</span>
84
+
- <spanclass="signature">[`diagonal( x, dims, k, writable )`][@stdlib/ndarray/base/diagonal]</span><spanclass="delimiter">: </span><spanclass="description">return a view of the diagonal of a matrix (or stack of matrices).</span>
84
85
- <spanclass="signature">[`dtypeAlignment( [dtype] )`][@stdlib/ndarray/base/dtype-alignment]</span><spanclass="delimiter">: </span><spanclass="description">return the alignment (in bytes) for an underlying array data type.</span>
85
86
- <spanclass="signature">[`dtypeChar( [dtype] )`][@stdlib/ndarray/base/dtype-char]</span><spanclass="delimiter">: </span><spanclass="description">return the single letter abbreviation for an underlying array data type.</span>
86
87
- <spanclass="signature">[`dtypeChars( [kind] )`][@stdlib/ndarray/base/dtype-chars]</span><spanclass="delimiter">: </span><spanclass="description">list of ndarray data type single letter character abbreviations.</span>
@@ -104,6 +105,7 @@ var o = ns;
104
105
- <spanclass="signature">[`expandDimensions( x, dim, writable )`][@stdlib/ndarray/base/expand-dimensions]</span><spanclass="delimiter">: </span><spanclass="description">expand the shape of an array by inserting a new dimension of size one at a specified dimension index.</span>
105
106
- <spanclass="signature">[`falses( dtype, shape, order )`][@stdlib/ndarray/base/falses]</span><spanclass="delimiter">: </span><spanclass="description">create an ndarray filled with `false` values and having a specified shape and data type.</span>
106
107
- <spanclass="signature">[`fillBy( x, fcn[, thisArg] )`][@stdlib/ndarray/base/fill-by]</span><spanclass="delimiter">: </span><spanclass="description">fill an input ndarray according to a callback function.</span>
108
+
- <spanclass="signature">[`fillDiagonal( x, value, dims, k )`][@stdlib/ndarray/base/fill-diagonal]</span><spanclass="delimiter">: </span><spanclass="description">fill a specified diagonal of a matrix (or stack of matrices) with a scalar value.</span>
107
109
- <spanclass="signature">[`fill( x, value )`][@stdlib/ndarray/base/fill]</span><spanclass="delimiter">: </span><spanclass="description">fill an input ndarray with a specified value.</span>
108
110
- <spanclass="signature">[`find( arrays, predicate[, thisArg] )`][@stdlib/ndarray/base/find]</span><spanclass="delimiter">: </span><spanclass="description">return the first element in an ndarray which passes a test implemented by a predicate function.</span>
109
111
- <spanclass="signature">[`flag( x, name )`][@stdlib/ndarray/base/flag]</span><spanclass="delimiter">: </span><spanclass="description">return a specified flag for a provided ndarray.</span>
@@ -173,6 +175,7 @@ var o = ns;
173
175
- <spanclass="signature">[`reinterpretComplex64( x )`][@stdlib/ndarray/base/reinterpret-complex64]</span><spanclass="delimiter">: </span><spanclass="description">reinterpret a single-precision complex floating-point ndarray as a real-valued single-precision floating-point ndarray containing interleaved real and imaginary components.</span>
- <spanclass="signature">[`reverseDimension( x, dim, writable )`][@stdlib/ndarray/base/reverse-dimension]</span><spanclass="delimiter">: </span><spanclass="description">return a view of an input ndarray in which the order of elements along a specified dimension is reversed.</span>
178
+
- <spanclass="signature">[`reverseDimensions( x, dims, writable )`][@stdlib/ndarray/base/reverse-dimensions]</span><spanclass="delimiter">: </span><spanclass="description">return a view of an input ndarray in which the order of elements along specified dimensions is reversed.</span>
176
179
- <spanclass="signature">[`reverse( x, writable )`][@stdlib/ndarray/base/reverse]</span><spanclass="delimiter">: </span><spanclass="description">return a view of an input ndarray in which the order of elements along each dimension is reversed.</span>
177
180
- <spanclass="signature">[`rot180( x, dims, writable )`][@stdlib/ndarray/base/rot180]</span><spanclass="delimiter">: </span><spanclass="description">rotate an ndarray 180 degrees in a specified plane.</span>
178
181
- <spanclass="signature">[`rot90( x, dims, k, writable )`][@stdlib/ndarray/base/rot90]</span><spanclass="delimiter">: </span><spanclass="description">rotate an ndarray 90 degrees in a specified plane.</span>
0 commit comments