Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
165 changes: 165 additions & 0 deletions lib/node_modules/@stdlib/blas/ext/base/docs/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
Expand Down Expand Up @@ -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' );
Expand Down Expand Up @@ -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' );
Expand Down Expand Up @@ -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' );
Expand All @@ -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' );
Expand Down Expand Up @@ -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 => <Complex64Array>[ -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 => <Complex64Array>[ -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.
*
Expand Down Expand Up @@ -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 => <Float64Array>[ -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 => <Float64Array>[ -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.
*
Expand Down Expand Up @@ -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.
*
Expand Down Expand Up @@ -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 => <Float32Array>[ -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 => <Float32Array>[ -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.
*
Expand Down Expand Up @@ -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 => <Complex128Array>[ -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 => <Complex128Array>[ -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.
*
Expand Down