From c0df6064c50338e8847a18396a14c3c48d3d274e Mon Sep 17 00:00:00 2001 From: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> Date: Sun, 16 Aug 2026 02:34:07 +0000 Subject: [PATCH] feat: update `blas/ext` TypeScript declarations Signed-off-by: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> --- .../@stdlib/blas/ext/docs/types/index.d.ts | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/lib/node_modules/@stdlib/blas/ext/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/ext/docs/types/index.d.ts index 293cbc47e230..b01066afeca1 100644 --- a/lib/node_modules/@stdlib/blas/ext/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/blas/ext/docs/types/index.d.ts @@ -22,6 +22,7 @@ import base = require( '@stdlib/blas/ext/base' ); import circshift = require( '@stdlib/blas/ext/circshift' ); +import copyWithin = require( '@stdlib/blas/ext/copy-within' ); import cusum = require( '@stdlib/blas/ext/cusum' ); import findIndex = require( '@stdlib/blas/ext/find-index' ); import findLastIndex = require( '@stdlib/blas/ext/find-last-index' ); @@ -76,6 +77,34 @@ interface Namespace { */ circshift: typeof circshift; + /** + * Performs an in-place copy of elements within an ndarray along an ndarray dimension. + * + * ## Notes + * + * - The input ndarray is copied **in-place** (i.e., the input ndarray is **mutated**). + * - When a `target`, `start`, and/or `end` index is negative, the respective index is determined relative to the last indexed element, with out-of-bounds indices clamped to index bounds. + * + * @param x - input ndarray + * @param target - target index + * @param start - source start index (inclusive) + * @param end - source end index (exclusive) + * @param options - function options + * @returns input ndarray + * + * @example + * var array = require( '@stdlib/ndarray/array' ); + * + * var x = array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); + * + * var y = ns.copyWithin( x, 3, 1, 4 ); + * // returns [ 1.0, 2.0, 3.0, 2.0, 3.0, 4.0 ] + * + * var bool = ( x === y ); + * // returns true + */ + copyWithin: typeof copyWithin; + /** * Computes the cumulative sum along one or more ndarray dimensions. *