From 9b8bad654b8d361c7346285c75b676dc5fa2d30a Mon Sep 17 00:00:00 2001 From: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> Date: Mon, 17 Aug 2026 02:33:22 +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 | 30 +++++++++++++++++++ 1 file changed, 30 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 b01066afeca1..bbe5e2bd1b52 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 @@ -30,6 +30,7 @@ import indexOf = require( '@stdlib/blas/ext/index-of' ); import join = require( '@stdlib/blas/ext/join' ); import lastIndexOf = require( '@stdlib/blas/ext/last-index-of' ); import linspace = require( '@stdlib/blas/ext/linspace' ); +import logspace = require( '@stdlib/blas/ext/logspace' ); import oneTo = require( '@stdlib/blas/ext/one-to' ); import sort = require( '@stdlib/blas/ext/sort' ); import sorthp = require( '@stdlib/blas/ext/sorthp' ); @@ -369,6 +370,35 @@ interface Namespace { */ linspace: typeof linspace; + /** + * Returns a new ndarray filled with logarithmically spaced values over a specified interval along one or more ndarray dimensions. + * + * @param shape - array shape + * @param base - base of the logarithmic scale + * @param start - exponent of the starting value + * @param stop - exponent of the final value + * @param endpoint - specifies whether to include the `base^stop` value when writing values to the output ndarray + * @param options - function options + * @returns output ndarray + * + * @example + * var out = ns.logspace( [ 2, 3 ], 10.0, 0.0, 2.0 ); + * // returns [ [ 1.0, 10.0, 100.0 ], [ 1.0, 10.0, 100.0 ] ] + * + * @example + * var zeros = require( '@stdlib/ndarray/zeros' ); + * + * var x = zeros( [ 2, 3 ] ); + * // returns + * + * var out = ns.logspace.assign( x, 10.0, 0.0, 2.0 ); + * // returns [ [ 1.0, 10.0, 100.0 ], [ 1.0, 10.0, 100.0 ] ] + * + * var bool = ( out === x ); + * // returns true + */ + logspace: typeof logspace; + /** * Returns a new ndarray filled with linearly spaced numeric elements which increment by 1 starting from one along one or more ndarray dimensions. *