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
-[`31c91e5`](https://github.com/stdlib-js/stdlib/commit/31c91e5a0dc350a5c871d05e609340133413f36d) - **refactor:** simplify branching to optimize most common path _(by Athan Reines)_
Copy file name to clipboardExpand all lines: 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
@@ -108,6 +108,7 @@ var o = ns;
108
108
- <spanclass="signature">[`char2dtype( [ch] )`][@stdlib/ndarray/base/char2dtype]</span><spanclass="delimiter">: </span><spanclass="description">return the data type string associated with a provided single letter character abbreviation.</span>
109
109
- <spanclass="signature">[`clampIndex( idx, max )`][@stdlib/ndarray/base/clamp-index]</span><spanclass="delimiter">: </span><spanclass="description">restrict an index to the interval `[0,max]`.</span>
110
110
- <spanclass="signature">[`complementShape( shape, dims )`][@stdlib/ndarray/base/complement-shape]</span><spanclass="delimiter">: </span><spanclass="description">return the shape defined by the dimensions which are not included in a list of dimensions.</span>
111
+
- <spanclass="signature">[`consensusOrder( strides )`][@stdlib/ndarray/base/consensus-order]</span><spanclass="delimiter">: </span><spanclass="description">resolve the most common underlying storage layout.</span>
111
112
- <spanclass="signature">[`copy( x )`][@stdlib/ndarray/base/copy]</span><spanclass="delimiter">: </span><spanclass="description">copy an input ndarray to a new ndarray having the same shape and data type.</span>
112
113
- <spanclass="signature">[`countFalsy( arrays )`][@stdlib/ndarray/base/count-falsy]</span><spanclass="delimiter">: </span><spanclass="description">count the number of falsy elements in an ndarray.</span>
113
114
- <spanclass="signature">[`countIf( arrays, predicate[, thisArg] )`][@stdlib/ndarray/base/count-if]</span><spanclass="delimiter">: </span><spanclass="description">count the number of elements in an ndarray which pass a test implemented by a predicate function.</span>
@@ -191,6 +192,7 @@ var o = ns;
191
192
- <spanclass="signature">[`ones( dtype, shape, order )`][@stdlib/ndarray/base/ones]</span><spanclass="delimiter">: </span><spanclass="description">create a ones-filled ndarray having a specified shape and data type.</span>
192
193
- <spanclass="signature">[`order( x )`][@stdlib/ndarray/base/order]</span><spanclass="delimiter">: </span><spanclass="description">return the layout order of a provided ndarray.</span>
193
194
- <spanclass="signature">[`outputDataType( dtypes, policy )`][@stdlib/ndarray/base/output-dtype]</span><spanclass="delimiter">: </span><spanclass="description">resolve the output ndarray data type from a list of input ndarray data types.</span>
195
+
- <spanclass="signature">[`outputOrder( arrays )`][@stdlib/ndarray/base/output-order]</span><spanclass="delimiter">: </span><spanclass="description">resolves the order (i.e. memory layout) of an output ndarray according to a list of input ndarrays.</span>
194
196
- <spanclass="signature">[`outputPolicyEnum2Str( policy )`][@stdlib/ndarray/base/output-policy-enum2str]</span><spanclass="delimiter">: </span><spanclass="description">return the policy string associated with an output ndarray data type policy enumeration constant.</span>
195
197
- <spanclass="signature">[`outputPolicyResolveEnum( policy )`][@stdlib/ndarray/base/output-policy-resolve-enum]</span><spanclass="delimiter">: </span><spanclass="description">return the enumeration constant associated with a supported ndarray data type policy value.</span>
196
198
- <spanclass="signature">[`outputPolicyResolveStr( dtype )`][@stdlib/ndarray/base/output-policy-resolve-str]</span><spanclass="delimiter">: </span><spanclass="description">return the policy string associated with a supported ndarray data type policy value.</span>
@@ -245,6 +247,7 @@ var o = ns;
245
247
- <spanclass="signature">[`toFlippedud( x )`][@stdlib/ndarray/base/to-flippedud]</span><spanclass="delimiter">: </span><spanclass="description">return a new ndarray where the order of elements along the second-to-last dimension of an input ndarray is reversed.</span>
246
248
- <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>
247
249
- <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>
250
+
- <spanclass="signature">[`toReversedDimensions( x, dims )`][@stdlib/ndarray/base/to-reversed-dimensions]</span><spanclass="delimiter">: </span><spanclass="description">return a new ndarray where the order of elements of an input ndarray along specified dimensions is reversed.</span>
248
251
- <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>
249
252
- <spanclass="signature">[`toRot180( x, dims )`][@stdlib/ndarray/base/to-rot180]</span><spanclass="delimiter">: </span><spanclass="description">return a new ndarray where an ndarray is rotated 180 degrees in a specified plane.</span>
250
253
- <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>
0 commit comments