From 7dc2ca1ccb636224da2646bbe079c67f1135058b Mon Sep 17 00:00:00 2001 From: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> Date: Wed, 8 Jul 2026 03:12:00 +0000 Subject: [PATCH] feat: update `blas/ext/base` TypeScript declarations Signed-off-by: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> --- .../blas/ext/base/docs/types/index.d.ts | 165 ++++++++++++++++++ 1 file changed, 165 insertions(+) diff --git a/lib/node_modules/@stdlib/blas/ext/base/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/ext/base/docs/types/index.d.ts index 0cccf37599fe..2a526c58066a 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/blas/ext/base/docs/types/index.d.ts @@ -34,6 +34,7 @@ import csum = require( '@stdlib/blas/ext/base/csum' ); import csumkbn = require( '@stdlib/blas/ext/base/csumkbn' ); import cunitspace = require( '@stdlib/blas/ext/base/cunitspace' ); import cwapx = require( '@stdlib/blas/ext/base/cwapx' ); +import cwax = require( '@stdlib/blas/ext/base/cwax' ); import cwhere = require( '@stdlib/blas/ext/base/cwhere' ); import cwxsa = require( '@stdlib/blas/ext/base/cwxsa' ); import cxpy = require( '@stdlib/blas/ext/base/cxpy' ); @@ -127,6 +128,7 @@ import dsumpw = require( '@stdlib/blas/ext/base/dsumpw' ); import dunitspace = require( '@stdlib/blas/ext/base/dunitspace' ); import dvander = require( '@stdlib/blas/ext/base/dvander' ); import dwapx = require( '@stdlib/blas/ext/base/dwapx' ); +import dwax = require( '@stdlib/blas/ext/base/dwax' ); import dwhere = require( '@stdlib/blas/ext/base/dwhere' ); import dwxsa = require( '@stdlib/blas/ext/base/dwxsa' ); import dxmy = require( '@stdlib/blas/ext/base/dxmy' ); @@ -166,6 +168,7 @@ import gfill = require( '@stdlib/blas/ext/base/gfill' ); import gfillBy = require( '@stdlib/blas/ext/base/gfill-by' ); import gfillEqual = require( '@stdlib/blas/ext/base/gfill-equal' ); import gfillNaN = require( '@stdlib/blas/ext/base/gfill-nan' ); +import gfillNotEqual = require( '@stdlib/blas/ext/base/gfill-not-equal' ); import gfindIndex = require( '@stdlib/blas/ext/base/gfind-index' ); import gfindLastIndex = require( '@stdlib/blas/ext/base/gfind-last-index' ); import gfirstIndexEqual = require( '@stdlib/blas/ext/base/gfirst-index-equal' ); @@ -303,6 +306,7 @@ import ssumpw = require( '@stdlib/blas/ext/base/ssumpw' ); import sunitspace = require( '@stdlib/blas/ext/base/sunitspace' ); import svander = require( '@stdlib/blas/ext/base/svander' ); import swapx = require( '@stdlib/blas/ext/base/swapx' ); +import swax = require( '@stdlib/blas/ext/base/swax' ); import swhere = require( '@stdlib/blas/ext/base/swhere' ); import swxsa = require( '@stdlib/blas/ext/base/swxsa' ); import sxmy = require( '@stdlib/blas/ext/base/sxmy' ); @@ -327,6 +331,7 @@ import zsum = require( '@stdlib/blas/ext/base/zsum' ); import zsumkbn = require( '@stdlib/blas/ext/base/zsumkbn' ); import zunitspace = require( '@stdlib/blas/ext/base/zunitspace' ); import zwapx = require( '@stdlib/blas/ext/base/zwapx' ); +import zwax = require( '@stdlib/blas/ext/base/zwax' ); import zwhere = require( '@stdlib/blas/ext/base/zwhere' ); import zwxsa = require( '@stdlib/blas/ext/base/zwxsa' ); import zxpy = require( '@stdlib/blas/ext/base/zxpy' ); @@ -838,6 +843,43 @@ interface Namespace { */ cwapx: typeof cwapx; + /** + * Multiplies each element in a single-precision complex floating-point strided array `x` by a scalar constant and assigns the results to elements in a single-precision complex floating-point strided array `w`. + * + * @param N - number of indexed elements + * @param alpha - scalar constant + * @param x - input array + * @param strideX - `x` stride length + * @param w - output array + * @param strideW - `w` stride length + * @returns `w` + * + * @example + * var Complex64Array = require( '@stdlib/array/complex64' ); + * var Complex64 = require( '@stdlib/complex/float32/ctor' ); + * + * var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] ); + * var w = new Complex64Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); + * + * var alpha = new Complex64( 5.0, 3.0 ); + * + * ns.cwax( x.length, alpha, x, 1, w, 1 ); + * // w => [ -1.0, 13.0, 3.0, 29.0, 7.0, 45.0, 11.0, 61.0 ] + * + * @example + * var Complex64Array = require( '@stdlib/array/complex64' ); + * var Complex64 = require( '@stdlib/complex/float32/ctor' ); + * + * var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] ); + * var w = new Complex64Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); + * + * var alpha = new Complex64( 5.0, 3.0 ); + * + * ns.cwax.ndarray( x.length, alpha, x, 1, 0, w, 1, 0 ); + * // w => [ -1.0, 13.0, 3.0, 29.0, 7.0, 45.0, 11.0, 61.0 ] + */ + cwax: typeof cwax; + /** * Takes elements from one of two single-precision complex floating-point strided arrays depending on a condition. * @@ -3683,6 +3725,37 @@ interface Namespace { */ dwapx: typeof dwapx; + /** + * Multiplies each element in a double-precision floating-point strided array `x` by a scalar constant and assigns the results to a double-precision floating-point strided array `w`. + * + * @param N - number of indexed elements + * @param alpha - scalar constant + * @param x - input array + * @param strideX - `x` stride length + * @param w - output array + * @param strideW - `w` stride length + * @returns `w` + * + * @example + * var Float64Array = require( '@stdlib/array/float64' ); + * + * var x = new Float64Array( [ -2.0, 1.0, 3.0, -5.0, 4.0, 0.0, -1.0, -3.0 ] ); + * var w = new Float64Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); + * + * ns.dwax( x.length, 5.0, x, 1, w, 1 ); + * // w => [ -10.0, 5.0, 15.0, -25.0, 20.0, 0.0, -5.0, -15.0 ] + * + * @example + * var Float64Array = require( '@stdlib/array/float64' ); + * + * var x = new Float64Array( [ -2.0, 1.0, 3.0, -5.0, 4.0, 0.0, -1.0, -3.0 ] ); + * var w = new Float64Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); + * + * ns.dwax.ndarray( x.length, 5.0, x, 1, 0, w, 1, 0 ); + * // w => [ -10.0, 5.0, 15.0, -25.0, 20.0, 0.0, -5.0, -15.0 ] + */ + dwax: typeof dwax; + /** * Takes elements from one of two double-precision floating-point strided arrays depending on a condition. * @@ -4752,6 +4825,30 @@ interface Namespace { */ gfillNaN: typeof gfillNaN; + /** + * Replaces strided array elements not equal to a provided search element with a specified scalar constant. + * + * @param N - number of indexed elements + * @param searchElement - search element + * @param alpha - scalar constant + * @param x - input array + * @param strideX - stride length + * @returns `x` + * + * @example + * var x = [ 0.0, -2.0, 3.0, 0.0, 4.0, -6.0 ]; + * + * ns.gfillNotEqual( x.length, 0.0, 5.0, x, 1 ); + * // x => [ 0.0, 5.0, 5.0, 0.0, 5.0, 5.0 ] + * + * @example + * var x = [ 0.0, -2.0, 3.0, 0.0, 4.0, -6.0 ]; + * + * ns.gfillNotEqual.ndarray( x.length, 0.0, 5.0, x, 1, 0 ); + * // x => [ 0.0, 5.0, 5.0, 0.0, 5.0, 5.0 ] + */ + gfillNotEqual: typeof gfillNotEqual; + /** * Returns the index of the first element which passes a test implemented by a predicate function. * @@ -8716,6 +8813,37 @@ interface Namespace { */ swapx: typeof swapx; + /** + * Multiplies each element in a single-precision floating-point strided array `x` by a scalar constant and assigns the results to a single-precision floating-point strided array `w`. + * + * @param N - number of indexed elements + * @param alpha - scalar constant + * @param x - input array + * @param strideX - `x` stride length + * @param w - output array + * @param strideW - `w` stride length + * @returns `w` + * + * @example + * var Float32Array = require( '@stdlib/array/float32' ); + * + * var x = new Float32Array( [ -2.0, 1.0, 3.0, -5.0, 4.0, 0.0, -1.0, -3.0 ] ); + * var w = new Float32Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); + * + * ns.swax( x.length, 5.0, x, 1, w, 1 ); + * // w => [ -10.0, 5.0, 15.0, -25.0, 20.0, 0.0, -5.0, -15.0 ] + * + * @example + * var Float32Array = require( '@stdlib/array/float32' ); + * + * var x = new Float32Array( [ -2.0, 1.0, 3.0, -5.0, 4.0, 0.0, -1.0, -3.0 ] ); + * var w = new Float32Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); + * + * ns.swax.ndarray( x.length, 5.0, x, 1, 0, w, 1, 0 ); + * // w => [ -10.0, 5.0, 15.0, -25.0, 20.0, 0.0, -5.0, -15.0 ] + */ + swax: typeof swax; + /** * Takes elements from one of two single-precision floating-point strided arrays depending on a condition. * @@ -9476,6 +9604,43 @@ interface Namespace { */ zwapx: typeof zwapx; + /** + * Multiplies each element in a double-precision complex floating-point strided array `x` by a scalar constant and assigns the results to elements in a double-precision complex floating-point strided array `w`. + * + * @param N - number of indexed elements + * @param alpha - scalar constant + * @param x - input array + * @param strideX - `x` stride length + * @param w - output array + * @param strideW - `w` stride length + * @returns `w` + * + * @example + * var Complex128Array = require( '@stdlib/array/complex128' ); + * var Complex128 = require( '@stdlib/complex/float64/ctor' ); + * + * var x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] ); + * var w = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); + * + * var alpha = new Complex128( 5.0, 3.0 ); + * + * ns.zwax( x.length, alpha, x, 1, w, 1 ); + * // w => [ -1.0, 13.0, 3.0, 29.0, 7.0, 45.0, 11.0, 61.0 ] + * + * @example + * var Complex128Array = require( '@stdlib/array/complex128' ); + * var Complex128 = require( '@stdlib/complex/float64/ctor' ); + * + * var x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] ); + * var w = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); + * + * var alpha = new Complex128( 5.0, 3.0 ); + * + * ns.zwax.ndarray( x.length, alpha, x, 1, 0, w, 1, 0 ); + * // w => [ -1.0, 13.0, 3.0, 29.0, 7.0, 45.0, 11.0, 61.0 ] + */ + zwax: typeof zwax; + /** * Takes elements from one of two double-precision complex floating-point strided arrays depending on a condition. *