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
- [`b256d64`](https://github.com/stdlib-js/stdlib/commit/b256d64a727ea0a266e8fae6ffacd519b55abdb0) - **test:** add test for negative zero _(by Philipp Burckhardt)_
@@ -6499,7 +6500,7 @@ A total of 560 issues were closed in this release:
6499
6500
6500
6501
### Contributors
6501
6502
6502
-
A total of 91 people contributed to this release. Thank you to the following contributors:
6503
+
A total of 92 people contributed to this release. Thank you to the following contributors:
6503
6504
6504
6505
- Aadish Jain
6505
6506
- Aayush Khanna
@@ -6579,6 +6580,7 @@ A total of 91 people contributed to this release. Thank you to the following con
Copy file name to clipboardExpand all lines: maxsorted/README.md
+10-39Lines changed: 10 additions & 39 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,10 +40,7 @@ var array = require( '@stdlib/ndarray/array' );
40
40
var x =array( [ 1.0, 2.0, 3.0 ] );
41
41
42
42
var y =maxsorted( x );
43
-
// returns <ndarray>
44
-
45
-
var v =y.get();
46
-
// returns 3.0
43
+
// returns <ndarray>[ 3.0 ]
47
44
```
48
45
49
46
The function has the following parameters:
@@ -60,81 +57,58 @@ The function accepts the following options:
60
57
By default, the function performs a reduction over all elements in a provided input [ndarray][@stdlib/ndarray/ctor]. To perform a reduction over specific dimensions, provide a `dims` option.
61
58
62
59
```javascript
63
-
var ndarray2array =require( '@stdlib/ndarray/to-array' );
By default, the function excludes reduced dimensions from the output [ndarray][@stdlib/ndarray/ctor]. To include the reduced dimensions as singleton dimensions, set the `keepdims` option to `true`.
99
85
100
86
```javascript
101
-
var ndarray2array =require( '@stdlib/ndarray/to-array' );
By default, the function returns an [ndarray][@stdlib/ndarray/ctor] having a [data type][@stdlib/ndarray/dtypes] determined by the function's output data type [policy][@stdlib/ndarray/output-dtype-policies]. To override the default behavior, set the `dtype` option.
@@ -168,10 +142,7 @@ var x = array( [ 1.0, 2.0, 3.0 ] );
Copy file name to clipboardExpand all lines: maxsorted/docs/types/index.d.ts
+4-16Lines changed: 4 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -75,10 +75,7 @@ interface Unary {
75
75
* var x = array( [ 1.0, 2.0, 3.0 ] );
76
76
*
77
77
* var y = maxsorted( x );
78
-
* // returns <ndarray>
79
-
*
80
-
* var v = y.get();
81
-
* // returns 3.0
78
+
* // returns <ndarray>[ 3.0 ]
82
79
*/
83
80
<T=unknown,U=unknown>(x: InputArray<T>,options?: Options): OutputArray<U>;// NOTE: we lose type specificity here, but retaining specificity would likely be difficult and/or tedious to completely enumerate, as the output ndarray data type is dependent on how `x` interacts with output data type policy and whether that policy has been overridden by `options.dtype`.
0 commit comments