From 73359335fa481237a267dcb23cc74123f55f9db4 Mon Sep 17 00:00:00 2001 From: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> Date: Tue, 21 Apr 2026 03:34:05 +0000 Subject: [PATCH] feat: update `blas/base/ndarray` TypeScript declarations Signed-off-by: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> --- .../blas/base/ndarray/docs/types/index.d.ts | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/base/ndarray/docs/types/index.d.ts index 8602cfd6c13c..830d1ae165a2 100644 --- a/lib/node_modules/@stdlib/blas/base/ndarray/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/blas/base/ndarray/docs/types/index.d.ts @@ -21,6 +21,7 @@ /* eslint-disable max-lines */ import caxpy = require( '@stdlib/blas/base/ndarray/caxpy' ); +import ccopy = require( '@stdlib/blas/base/ndarray/ccopy' ); import dasum = require( '@stdlib/blas/base/ndarray/dasum' ); import daxpy = require( '@stdlib/blas/base/ndarray/daxpy' ); import dcopy = require( '@stdlib/blas/base/ndarray/dcopy' ); @@ -34,6 +35,7 @@ import saxpy = require( '@stdlib/blas/base/ndarray/saxpy' ); import scopy = require( '@stdlib/blas/base/ndarray/scopy' ); import sdot = require( '@stdlib/blas/base/ndarray/sdot' ); import zaxpy = require( '@stdlib/blas/base/ndarray/zaxpy' ); +import zcopy = require( '@stdlib/blas/base/ndarray/zcopy' ); /** * Interface describing the `ndarray` namespace. @@ -67,6 +69,30 @@ interface Namespace { */ caxpy: typeof caxpy; + /** + * Copies values from a one-dimensional single-precision complex floating-point ndarray `x` into a one-dimensional single-precision complex floating-point ndarray `y`. + * + * @param arrays - array-like object containing an input ndarray and an output ndarray + * @returns output ndarray + * + * @example + * var Complex64Array = require( '@stdlib/array/complex64' ); + * var ndarray = require( '@stdlib/ndarray/base/ctor' ); + * + * var xbuf = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); + * var x = new ndarray( 'complex64', xbuf, [ 3 ], [ 1 ], 0, 'row-major' ); + * + * var ybuf = new Complex64Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); + * var y = new ndarray( 'complex64', ybuf, [ 3 ], [ 1 ], 0, 'row-major' ); + * + * var z = ns.ccopy( [ x, y ] ); + * // returns [ [ 1.0, 2.0 ], [ 3.0, 4.0 ], [ 5.0, 6.0 ] ] + * + * var bool = ( z === y ); + * // returns true + */ + ccopy: typeof ccopy; + /** * Computes the sum of absolute values for all elements in a one-dimensional double-precision floating-point ndarray. * @@ -360,6 +386,30 @@ interface Namespace { * // returns true */ zaxpy: typeof zaxpy; + + /** + * Copies values from a one-dimensional double-precision complex floating-point ndarray `x` into a one-dimensional double-precision complex floating-point ndarray `y`. + * + * @param arrays - array-like object containing an input ndarray and an output ndarray + * @returns output ndarray + * + * @example + * var Complex128Array = require( '@stdlib/array/complex128' ); + * var ndarray = require( '@stdlib/ndarray/base/ctor' ); + * + * var xbuf = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); + * var x = new ndarray( 'complex128', xbuf, [ 3 ], [ 1 ], 0, 'row-major' ); + * + * var ybuf = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); + * var y = new ndarray( 'complex128', ybuf, [ 3 ], [ 1 ], 0, 'row-major' ); + * + * var z = ns.zcopy( [ x, y ] ); + * // returns [ [ 1.0, 2.0 ], [ 3.0, 4.0 ], [ 5.0, 6.0 ] ] + * + * var bool = ( z === y ); + * // returns true + */ + zcopy: typeof zcopy; } /**