From 857214263502d49f5994d79d1f7c9de6feb903fa Mon Sep 17 00:00:00 2001 From: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> Date: Fri, 25 Sep 2026 02:23:42 +0000 Subject: [PATCH] feat: update `blas/ext/base/ndarray` TypeScript declarations Signed-off-by: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> --- .../ext/base/ndarray/docs/types/index.d.ts | 120 ++++++++++++++++++ 1 file changed, 120 insertions(+) diff --git a/lib/node_modules/@stdlib/blas/ext/base/ndarray/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/ext/base/ndarray/docs/types/index.d.ts index 1ca1ec32cc79..49f638e84720 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/ndarray/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/blas/ext/base/ndarray/docs/types/index.d.ts @@ -36,6 +36,7 @@ import ctril = require( '@stdlib/blas/ext/base/ndarray/ctril' ); import ctriu = require( '@stdlib/blas/ext/base/ndarray/ctriu' ); import ctriu2tril = require( '@stdlib/blas/ext/base/ndarray/ctriu2tril' ); import cunitspace = require( '@stdlib/blas/ext/base/ndarray/cunitspace' ); +import cwhere = require( '@stdlib/blas/ext/base/ndarray/cwhere' ); import cwxsa = require( '@stdlib/blas/ext/base/ndarray/cwxsa' ); import cxmy = require( '@stdlib/blas/ext/base/ndarray/cxmy' ); import cxpy = require( '@stdlib/blas/ext/base/ndarray/cxpy' ); @@ -97,6 +98,7 @@ import dtriu = require( '@stdlib/blas/ext/base/ndarray/dtriu' ); import dtriu2tril = require( '@stdlib/blas/ext/base/ndarray/dtriu2tril' ); import dunitspace = require( '@stdlib/blas/ext/base/ndarray/dunitspace' ); import dvander = require( '@stdlib/blas/ext/base/ndarray/dvander' ); +import dwhere = require( '@stdlib/blas/ext/base/ndarray/dwhere' ); import dwxsa = require( '@stdlib/blas/ext/base/ndarray/dwxsa' ); import dxdy = require( '@stdlib/blas/ext/base/ndarray/dxdy' ); import dxmy = require( '@stdlib/blas/ext/base/ndarray/dxmy' ); @@ -223,6 +225,7 @@ import stril2triu = require( '@stdlib/blas/ext/base/ndarray/stril2triu' ); import striu = require( '@stdlib/blas/ext/base/ndarray/striu' ); import striu2tril = require( '@stdlib/blas/ext/base/ndarray/striu2tril' ); import sunitspace = require( '@stdlib/blas/ext/base/ndarray/sunitspace' ); +import swhere = require( '@stdlib/blas/ext/base/ndarray/swhere' ); import swxsa = require( '@stdlib/blas/ext/base/ndarray/swxsa' ); import sxdy = require( '@stdlib/blas/ext/base/ndarray/sxdy' ); import sxmy = require( '@stdlib/blas/ext/base/ndarray/sxmy' ); @@ -244,6 +247,7 @@ import zsumkbn = require( '@stdlib/blas/ext/base/ndarray/zsumkbn' ); import ztril = require( '@stdlib/blas/ext/base/ndarray/ztril' ); import ztriu = require( '@stdlib/blas/ext/base/ndarray/ztriu' ); import zunitspace = require( '@stdlib/blas/ext/base/ndarray/zunitspace' ); +import zwhere = require( '@stdlib/blas/ext/base/ndarray/zwhere' ); import zwxsa = require( '@stdlib/blas/ext/base/ndarray/zwxsa' ); import zxdy = require( '@stdlib/blas/ext/base/ndarray/zxdy' ); import zxmy = require( '@stdlib/blas/ext/base/ndarray/zxmy' ); @@ -778,6 +782,35 @@ interface Namespace { */ cunitspace: typeof cunitspace; + /** + * Takes elements from one of two one-dimensional single-precision complex floating-point ndarrays depending on a condition. + * + * ## Notes + * + * - The function expects the following ndarrays: + * + * - a one-dimensional condition ndarray. + * - first one-dimensional input ndarray. + * - second one-dimensional input ndarray. + * - a one-dimensional output ndarray. + * + * @param arrays - array-like object containing ndarrays + * @returns output ndarray + * + * @example + * var BooleanVector = require( '@stdlib/ndarray/vector/bool' ); + * var Complex64Vector = require( '@stdlib/ndarray/vector/complex64' ); + * + * var condition = new BooleanVector( [ true, false, true ] ); + * var x = new Complex64Vector( [ 1.0, -1.0, 2.0, -2.0, 3.0, -3.0 ] ); + * var y = new Complex64Vector( [ 4.0, -4.0, 5.0, -5.0, 6.0, -6.0 ] ); + * var out = new Complex64Vector( 3 ); + * + * var v = ns.cwhere( [ condition, x, y, out ] ); + * // returns [ [ 1.0, -1.0 ], [ 5.0, -5.0 ], [ 3.0, -3.0 ] ] + */ + cwhere: typeof cwhere; + /** * Subtracts a scalar constant from each element in an input one-dimensional single-precision complex floating-point ndarray and assigns the results to elements in a one-dimensional single-precision complex floating-point output ndarray. * @@ -2604,6 +2637,35 @@ interface Namespace { */ dvander: typeof dvander; + /** + * Takes elements from one of two one-dimensional double-precision floating-point ndarrays depending on a condition. + * + * ## Notes + * + * - The function expects the following ndarrays: + * + * - a one-dimensional condition ndarray. + * - first one-dimensional input ndarray. + * - second one-dimensional input ndarray. + * - a one-dimensional output ndarray. + * + * @param arrays - array-like object containing ndarrays + * @returns output ndarray + * + * @example + * var BooleanVector = require( '@stdlib/ndarray/vector/bool' ); + * var Float64Vector = require( '@stdlib/ndarray/vector/float64' ); + * + * var condition = new BooleanVector( [ true, false, true, false, true ] ); + * var x = new Float64Vector( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] ); + * var y = new Float64Vector( [ 6.0, 7.0, 8.0, 9.0, 10.0 ] ); + * var out = new Float64Vector( 5 ); + * + * var v = ns.dwhere( [ condition, x, y, out ] ); + * // returns [ 1.0, 7.0, 3.0, 9.0, 5.0 ] + */ + dwhere: typeof dwhere; + /** * Subtracts a scalar constant from each element in an input one-dimensional double-precision floating-point ndarray and assigns the results to elements in a one-dimensional double-precision floating-point output ndarray. * @@ -6388,6 +6450,35 @@ interface Namespace { */ sunitspace: typeof sunitspace; + /** + * Takes elements from one of two one-dimensional single-precision floating-point ndarrays depending on a condition. + * + * ## Notes + * + * - The function expects the following ndarrays: + * + * - a one-dimensional condition ndarray. + * - first one-dimensional input ndarray. + * - second one-dimensional input ndarray. + * - a one-dimensional output ndarray. + * + * @param arrays - array-like object containing ndarrays + * @returns output ndarray + * + * @example + * var BooleanVector = require( '@stdlib/ndarray/vector/bool' ); + * var Float32Vector = require( '@stdlib/ndarray/vector/float32' ); + * + * var condition = new BooleanVector( [ true, false, true, false, true ] ); + * var x = new Float32Vector( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] ); + * var y = new Float32Vector( [ 6.0, 7.0, 8.0, 9.0, 10.0 ] ); + * var out = new Float32Vector( 5 ); + * + * var v = ns.swhere( [ condition, x, y, out ] ); + * // returns [ 1.0, 7.0, 3.0, 9.0, 5.0 ] + */ + swhere: typeof swhere; + /** * Subtracts a scalar constant from each element in an input one-dimensional single-precision floating-point ndarray and assigns the results to elements in a one-dimensional single-precision floating-point output ndarray. * @@ -7008,6 +7099,35 @@ interface Namespace { */ zunitspace: typeof zunitspace; + /** + * Takes elements from one of two one-dimensional double-precision complex floating-point ndarrays depending on a condition. + * + * ## Notes + * + * - The function expects the following ndarrays: + * + * - a one-dimensional condition ndarray. + * - first one-dimensional input ndarray. + * - second one-dimensional input ndarray. + * - a one-dimensional output ndarray. + * + * @param arrays - array-like object containing ndarrays + * @returns output ndarray + * + * @example + * var BooleanVector = require( '@stdlib/ndarray/vector/bool' ); + * var Complex128Vector = require( '@stdlib/ndarray/vector/complex128' ); + * + * var condition = new BooleanVector( [ true, false, true ] ); + * var x = new Complex128Vector( [ 1.0, -1.0, 2.0, -2.0, 3.0, -3.0 ] ); + * var y = new Complex128Vector( [ 4.0, -4.0, 5.0, -5.0, 6.0, -6.0 ] ); + * var out = new Complex128Vector( 3 ); + * + * var v = ns.zwhere( [ condition, x, y, out ] ); + * // returns [ [ 1.0, -1.0 ], [ 5.0, -5.0 ], [ 3.0, -3.0 ] ] + */ + zwhere: typeof zwhere; + /** * Subtracts a scalar constant from each element in an input one-dimensional double-precision complex floating-point ndarray and assigns the results to elements in a one-dimensional double-precision complex floating-point output ndarray. *