Skip to content

Commit eb106fe

Browse files
committed
Auto-generated commit
1 parent f5f61e8 commit eb106fe

4 files changed

Lines changed: 25 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
### Features
1212

13+
- [`e38bbc8`](https://github.com/stdlib-js/stdlib/commit/e38bbc844b58b38ccb22be0ee62b0a42aa90fd75) - add `transpose` and `toTransposed` to namespace
1314
- [`c541417`](https://github.com/stdlib-js/stdlib/commit/c5414171e07489c15e73b63e8ae437a24118a1f0) - add `ndarray/to-transposed` [(#12031)](https://github.com/stdlib-js/stdlib/pull/12031)
1415
- [`5c1463c`](https://github.com/stdlib-js/stdlib/commit/5c1463c8c0240b44991231d5b8b120d78c6d8ad1) - add `ndarray/transpose` [(#12030)](https://github.com/stdlib-js/stdlib/pull/12030)
1516
- [`0e2b5a5`](https://github.com/stdlib-js/stdlib/commit/0e2b5a5e9dec8520a7e6676876aae915c4b2ab2c) - add `descriptor` to namespace
@@ -931,6 +932,9 @@ A total of 49 issues were closed in this release:
931932

932933
<details>
933934

935+
- [`25ae5aa`](https://github.com/stdlib-js/stdlib/commit/25ae5aa59b431b6b562e4fe36b69b3186111af12) - **refactor:** update error message _(by Athan Reines)_
936+
- [`ca918f8`](https://github.com/stdlib-js/stdlib/commit/ca918f82273615d9785f80d703bcf24391bb516b) - **docs:** update ToC _(by Athan Reines)_
937+
- [`e38bbc8`](https://github.com/stdlib-js/stdlib/commit/e38bbc844b58b38ccb22be0ee62b0a42aa90fd75) - **feat:** add `transpose` and `toTransposed` to namespace _(by Athan Reines)_
934938
- [`c541417`](https://github.com/stdlib-js/stdlib/commit/c5414171e07489c15e73b63e8ae437a24118a1f0) - **feat:** add `ndarray/to-transposed` [(#12031)](https://github.com/stdlib-js/stdlib/pull/12031) _(by Muhammad Haris, Athan Reines)_
935939
- [`5c1463c`](https://github.com/stdlib-js/stdlib/commit/5c1463c8c0240b44991231d5b8b120d78c6d8ad1) - **feat:** add `ndarray/transpose` [(#12030)](https://github.com/stdlib-js/stdlib/pull/12030) _(by Muhammad Haris, Athan Reines)_
936940
- [`b8d09ca`](https://github.com/stdlib-js/stdlib/commit/b8d09cac262a732b639c44606e0d85f974965085) - **chore:** follow-up corrections for commits merged to develop on 2026-05-10 [(#12052)](https://github.com/stdlib-js/stdlib/pull/12052) _(by Philipp Burckhardt)_

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ The namespace exports the following functions to create multidimensional arrays:
102102

103103
The namespace exports the following functions to manipulate multidimensional arrays:
104104

105-
<!-- <toc pattern="+(broadcast-array|broadcast-arrays|broadcast-scalar|broadcast-scalar-like|colcat|concat|concat1d|diagonal|fill|fill-by|fill-slice|flatten|flatten-by|flatten-from|flatten-from-by|flip|fliplr|flipud|hconcat|map|maybe-broadcast-array|maybe-broadcast-arrays|pop|prepend-singleton-dimensions|push|remove-singleton-dimensions|reverse|reverse-dimension|reverse-dimensions|rot90|rot180|rotl90|rotr90|rowcat|shift|slice|slice-assign|slice-dimension|slice-dimension-from|slice-dimension-to|slice-from|slice-to|spread-dimensions|to-flippedlr|to-flippedud|to-reversed|to-reversed-dimension|to-reversed-dimensions|to-rot90|to-rot180|to-rotl90|to-rotr90|to-unflattened|unflatten|unshift|vconcat|with)"> -->
105+
<!-- <toc pattern="+(broadcast-array|broadcast-arrays|broadcast-scalar|broadcast-scalar-like|colcat|concat|concat1d|diagonal|fill|fill-by|fill-slice|flatten|flatten-by|flatten-from|flatten-from-by|flip|fliplr|flipud|hconcat|map|maybe-broadcast-array|maybe-broadcast-arrays|pop|prepend-singleton-dimensions|push|remove-singleton-dimensions|reverse|reverse-dimension|reverse-dimensions|rot90|rot180|rotl90|rotr90|rowcat|shift|slice|slice-assign|slice-dimension|slice-dimension-from|slice-dimension-to|slice-from|slice-to|spread-dimensions|to-flippedlr|to-flippedud|to-reversed|to-reversed-dimension|to-reversed-dimensions|to-rot90|to-rot180|to-rotl90|to-rotr90|to-transposed|to-unflattened|transpose|unflatten|unshift|vconcat|with)"> -->
106106

107107
<div class="namespace-toc">
108108

lib/index.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,6 +1098,15 @@ setReadOnly( ns, 'toRotr90', require( './../to-rotr90' ) );
10981098
*/
10991099
setReadOnly( ns, 'ndarray2string', require( './../to-string' ) );
11001100

1101+
/**
1102+
* @name toTransposed
1103+
* @memberof ns
1104+
* @readonly
1105+
* @type {Function}
1106+
* @see {@link module:@stdlib/ndarray/to-transposed}
1107+
*/
1108+
setReadOnly( ns, 'toTransposed', require( './../to-transposed' ) );
1109+
11011110
/**
11021111
* @name toUnflattened
11031112
* @memberof ns
@@ -1107,6 +1116,15 @@ setReadOnly( ns, 'ndarray2string', require( './../to-string' ) );
11071116
*/
11081117
setReadOnly( ns, 'toUnflattened', require( './../to-unflattened' ) );
11091118

1119+
/**
1120+
* @name transpose
1121+
* @memberof ns
1122+
* @readonly
1123+
* @type {Function}
1124+
* @see {@link module:@stdlib/ndarray/transpose}
1125+
*/
1126+
setReadOnly( ns, 'transpose', require( './../transpose' ) );
1127+
11101128
/**
11111129
* @name unflatten
11121130
* @memberof ns

transpose/lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ var format = require( '@stdlib/string/format' );
3838
*
3939
* @param {ndarray} x - input array
4040
* @throws {TypeError} must provide an ndarray
41-
* @throws {RangeError} input ndarray must have at least two dimensions
41+
* @throws {RangeError} must provide an ndarray having two or more dimensions
4242
* @returns {ndarray} ndarray view
4343
*
4444
* @example
@@ -55,7 +55,7 @@ function transpose( x ) {
5555
throw new TypeError( format( 'invalid argument. Must provide an ndarray. Value: `%s`.', x ) );
5656
}
5757
if ( ndims( x ) < 2 ) {
58-
throw new RangeError( format( 'invalid argument. Input ndarray must have at least two dimensions. Number of dimensions: `%u`.', ndims( x ) ) );
58+
throw new RangeError( format( 'invalid argument. Must provide an ndarray having two or more dimensions. Number of dimensions: `%u`.', ndims( x ) ) );
5959
}
6060
return base( x, false );
6161
}

0 commit comments

Comments
 (0)