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
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -132,6 +132,7 @@ The namespace exports the following functions to manipulate multidimensional arr
132
132
- <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
133
- <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>
134
134
- <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
+
- <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>
135
136
- <spanclass="signature">[`rotr90( x, k )`][@stdlib/ndarray/rotr90]</span><spanclass="delimiter">: </span><spanclass="description">return a **read-only** view of a matrix (or a stack of matrices) rotated `90` degrees clockwise.</span>
136
137
- <spanclass="signature">[`rowcat( arrays )`][@stdlib/ndarray/rowcat]</span><spanclass="delimiter">: </span><spanclass="description">concatenate a list of one-dimensional or two-dimensional ndarrays as rows.</span>
137
138
- <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>
@@ -295,6 +296,9 @@ The namespace contains the following multidimensional array utility functions:
295
296
- <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>
296
297
- <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>
297
298
- <spanclass="signature">[`orders()`][@stdlib/ndarray/orders]</span><spanclass="delimiter">: </span><spanclass="description">list of ndarray orders.</span>
299
+
- <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>
300
+
- <spanclass="signature">[`rotl90( x, k )`][@stdlib/ndarray/rotl90]</span><spanclass="delimiter">: </span><spanclass="description">return a **read-only** view of a matrix (or a stack of matrices) rotated `90` degrees counterclockwise.</span>
301
+
- <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>
Copy file name to clipboardExpand all lines: base/README.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,7 @@ var o = ns;
45
45
46
46
- <spanclass="signature">[`anyBy( arrays, predicate[, thisArg] )`][@stdlib/ndarray/base/any-by]</span><spanclass="delimiter">: </span><spanclass="description">test whether at least one element in an ndarray passes a test implemented by a predicate function.</span>
47
47
- <spanclass="signature">[`any( arrays )`][@stdlib/ndarray/base/any]</span><spanclass="delimiter">: </span><spanclass="description">test whether at least one element in an ndarray is truthy.</span>
48
+
- <spanclass="signature">[`appendSingletonDimensions( x, n, writable )`][@stdlib/ndarray/base/append-singleton-dimensions]</span><spanclass="delimiter">: </span><spanclass="description">append singleton dimensions.</span>
48
49
- <spanclass="signature">[`assignScalar( arrays )`][@stdlib/ndarray/base/assign-scalar]</span><spanclass="delimiter">: </span><spanclass="description">assign a scalar value to every element of an output ndarray.</span>
49
50
- <spanclass="signature">[`assign( arrays )`][@stdlib/ndarray/base/assign]</span><spanclass="delimiter">: </span><spanclass="description">assign elements in an input ndarray to elements in an output ndarray.</span>
50
51
- <spanclass="signature">[`atleast1d( arrays )`][@stdlib/ndarray/base/atleast1d]</span><spanclass="delimiter">: </span><spanclass="description">convert a list of values (scalars and/or ndarrays) to ndarrays having at least one dimension.</span>
@@ -208,6 +209,9 @@ var o = ns;
208
209
- <spanclass="signature">[`toNormalizedIndices( indices, max )`][@stdlib/ndarray/base/to-normalized-indices]</span><spanclass="delimiter">: </span><spanclass="description">normalize a list of indices to the interval `[0,max]`.</span>
209
210
- <spanclass="signature">[`toReversedDimension( x, dim )`][@stdlib/ndarray/base/to-reversed-dimension]</span><spanclass="delimiter">: </span><spanclass="description">return a new ndarray where the order of elements of an input ndarray along a specified dimension is reversed.</span>
210
211
- <spanclass="signature">[`toReversed( x )`][@stdlib/ndarray/base/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>
212
+
- <spanclass="signature">[`toRot90( x, dims, k )`][@stdlib/ndarray/base/to-rot90]</span><spanclass="delimiter">: </span><spanclass="description">return a new ndarray where an ndarray is rotated 90 degrees in a specified plane.</span>
213
+
- <spanclass="signature">[`toRotl90( x, k )`][@stdlib/ndarray/base/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>
214
+
- <spanclass="signature">[`toRotr90( x, k )`][@stdlib/ndarray/base/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>
211
215
- <spanclass="signature">[`toTransposed( x )`][@stdlib/ndarray/base/to-transposed]</span><spanclass="delimiter">: </span><spanclass="description">return a new ndarray containing the elements of an input ndarray but whose last two dimensions are transposed.</span>
212
216
- <spanclass="signature">[`toUnflattened( x, dim, sizes )`][@stdlib/ndarray/base/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>
213
217
- <spanclass="signature">[`toUniqueNormalizedIndices( indices, max )`][@stdlib/ndarray/base/to-unique-normalized-indices]</span><spanclass="delimiter">: </span><spanclass="description">return a list of unique indices after normalizing to the interval `[0,max]`.</span>
0 commit comments