From 3c348226c1da91055527fce6d8bc8b365aa2ac1a Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 24 Apr 2026 13:21:28 +0000 Subject: [PATCH 1/2] docs: correct clockwise rotation note in `ndarray/base/rot90` Propagates fix from b5fb2f8 ("docs: update notes") to `lib/main.js`, which was missed when the same `dims = [1, 0]` typo was corrected in README.md, docs/repl.txt, and docs/types/index.d.ts. The sign of `k` determines rotation direction; the canonical example should reference `dims = [0, 1]` to mirror the counterclockwise note immediately above. --- lib/node_modules/@stdlib/ndarray/base/rot90/lib/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/ndarray/base/rot90/lib/main.js b/lib/node_modules/@stdlib/ndarray/base/rot90/lib/main.js index d8e0fb8f3b61..009c37f4a5c5 100644 --- a/lib/node_modules/@stdlib/ndarray/base/rot90/lib/main.js +++ b/lib/node_modules/@stdlib/ndarray/base/rot90/lib/main.js @@ -39,7 +39,7 @@ var format = require( '@stdlib/string/format' ); * ## Notes * * - If `k > 0`, the function rotates the plane from the first specified dimension toward the second specified dimension. This means that, for a two-dimensional ndarray and `dims = [0, 1]`, the function rotates the plane counterclockwise. -* - If `k < 0`, the function rotates the plane from the second specified dimension toward the first specified dimension. This means that, for a two-dimensional ndarray and `dims = [1, 0]`, the function rotates the plane clockwise. +* - If `k < 0`, the function rotates the plane from the second specified dimension toward the first specified dimension. This means that, for a two-dimensional ndarray and `dims = [0, 1]`, the function rotates the plane clockwise. * - Each provided dimension index must reside on the interval `[-ndims, ndims-1]`. * * @param {ndarray} x - input array From ba3c3eb9c2d40a0d9c612b06b0df2379ba518d82 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 24 Apr 2026 13:21:47 +0000 Subject: [PATCH 2/2] docs: fix comment across `ndarray/base/{empty-like,ones-like,zeros-like,transpose}` Propagates fix from 1bb47ae / 8c95fbf ("docs: fix comment") to sibling packages whose TS test files carry the same inaccurate `$ExpectError` block comment. The following block only tests non-ndarray values (strings, numbers, booleans, null, arrays, objects, functions), so the "having a recognized/supported data type" qualifier does not describe what the compiler actually rejects. --- .../@stdlib/ndarray/base/empty-like/docs/types/test.ts | 2 +- .../@stdlib/ndarray/base/ones-like/docs/types/test.ts | 2 +- .../@stdlib/ndarray/base/transpose/docs/types/test.ts | 2 +- .../@stdlib/ndarray/base/zeros-like/docs/types/test.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/node_modules/@stdlib/ndarray/base/empty-like/docs/types/test.ts b/lib/node_modules/@stdlib/ndarray/base/empty-like/docs/types/test.ts index 1dff53593cde..0e6f6c0669bb 100644 --- a/lib/node_modules/@stdlib/ndarray/base/empty-like/docs/types/test.ts +++ b/lib/node_modules/@stdlib/ndarray/base/empty-like/docs/types/test.ts @@ -43,7 +43,7 @@ import emptyLike = require( './index' ); emptyLike( zeros( 'generic', sh, ord ) ); // $ExpectType typedndarray } -// The compiler throws an error if the function is provided a first argument which is not an ndarray having a recognized/supported data type... +// The compiler throws an error if the function is provided a first argument which is not an ndarray... { emptyLike( '10' ); // $ExpectError emptyLike( 10 ); // $ExpectError diff --git a/lib/node_modules/@stdlib/ndarray/base/ones-like/docs/types/test.ts b/lib/node_modules/@stdlib/ndarray/base/ones-like/docs/types/test.ts index a36a06f9ef1a..208300647f8d 100644 --- a/lib/node_modules/@stdlib/ndarray/base/ones-like/docs/types/test.ts +++ b/lib/node_modules/@stdlib/ndarray/base/ones-like/docs/types/test.ts @@ -41,7 +41,7 @@ import onesLike = require( './index' ); onesLike( ones( 'generic', sh, ord ) ); // $ExpectType genericndarray } -// The compiler throws an error if the function is provided a first argument which is not an ndarray having a recognized/supported data type... +// The compiler throws an error if the function is provided a first argument which is not an ndarray... { onesLike( '10' ); // $ExpectError onesLike( 10 ); // $ExpectError diff --git a/lib/node_modules/@stdlib/ndarray/base/transpose/docs/types/test.ts b/lib/node_modules/@stdlib/ndarray/base/transpose/docs/types/test.ts index 6978e32423e8..2ae474b1ae6b 100644 --- a/lib/node_modules/@stdlib/ndarray/base/transpose/docs/types/test.ts +++ b/lib/node_modules/@stdlib/ndarray/base/transpose/docs/types/test.ts @@ -41,7 +41,7 @@ import transpose = require( './index' ); transpose( zeros( 'generic', sh, ord ), false ); // $ExpectType genericndarray } -// The compiler throws an error if the function is provided a first argument which is not an ndarray having a recognized/supported data type... +// The compiler throws an error if the function is provided a first argument which is not an ndarray... { transpose( '10', false ); // $ExpectError transpose( 10, false ); // $ExpectError diff --git a/lib/node_modules/@stdlib/ndarray/base/zeros-like/docs/types/test.ts b/lib/node_modules/@stdlib/ndarray/base/zeros-like/docs/types/test.ts index 67c56f570298..e12262d398ae 100644 --- a/lib/node_modules/@stdlib/ndarray/base/zeros-like/docs/types/test.ts +++ b/lib/node_modules/@stdlib/ndarray/base/zeros-like/docs/types/test.ts @@ -41,7 +41,7 @@ import zerosLike = require( './index' ); zerosLike( zeros( 'generic', sh, ord ) ); // $ExpectType genericndarray } -// The compiler throws an error if the function is provided a first argument which is not an ndarray having a recognized/supported data type... +// The compiler throws an error if the function is provided a first argument which is not an ndarray... { zerosLike( '10' ); // $ExpectError zerosLike( 10 ); // $ExpectError