Skip to content

Commit ac311dd

Browse files
authored
Merge branch 'develop' into philipp/drift-stats-base-dists-chisquare-2026-05-26
2 parents 460014c + 3c1e93d commit ac311dd

14 files changed

Lines changed: 150 additions & 5 deletions

File tree

lib/node_modules/@stdlib/blas/base/ndarray/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ The namespace exposes the following APIs:
5656
- <span class="signature">[`ddot( arrays )`][@stdlib/blas/base/ndarray/ddot]</span><span class="delimiter">: </span><span class="description">calculate the dot product of two one-dimensional double-precision floating-point ndarrays.</span>
5757
- <span class="signature">[`dnrm2( arrays )`][@stdlib/blas/base/ndarray/dnrm2]</span><span class="delimiter">: </span><span class="description">compute the L2-norm of a one-dimensional double-precision floating-point ndarray.</span>
5858
- <span class="signature">[`dscal( arrays )`][@stdlib/blas/base/ndarray/dscal]</span><span class="delimiter">: </span><span class="description">multiply a one-dimensional double-precision floating-point ndarray by a scalar constant.</span>
59+
- <span class="signature">[`dsdot( arrays )`][@stdlib/blas/base/ndarray/dsdot]</span><span class="delimiter">: </span><span class="description">calculate the dot product of two one-dimensional single-precision floating-point ndarrays.</span>
5960
- <span class="signature">[`dswap( arrays )`][@stdlib/blas/base/ndarray/dswap]</span><span class="delimiter">: </span><span class="description">interchange two one-dimensional double-precision floating-point ndarrays.</span>
6061
- <span class="signature">[`dznrm2( arrays )`][@stdlib/blas/base/ndarray/dznrm2]</span><span class="delimiter">: </span><span class="description">compute the L2-norm of a one-dimensional double-precision complex floating-point ndarray.</span>
6162
- <span class="signature">[`gasum( arrays )`][@stdlib/blas/base/ndarray/gasum]</span><span class="delimiter">: </span><span class="description">calculate the sum of absolute values for all elements in a one-dimensional ndarray.</span>
@@ -67,9 +68,11 @@ The namespace exposes the following APIs:
6768
- <span class="signature">[`gswap( arrays )`][@stdlib/blas/base/ndarray/gswap]</span><span class="delimiter">: </span><span class="description">interchange two one-dimensional ndarrays.</span>
6869
- <span class="signature">[`sasum( arrays )`][@stdlib/blas/base/ndarray/sasum]</span><span class="delimiter">: </span><span class="description">calculate the sum of absolute values for all elements in a one-dimensional single-precision floating-point ndarray.</span>
6970
- <span class="signature">[`saxpy( arrays )`][@stdlib/blas/base/ndarray/saxpy]</span><span class="delimiter">: </span><span class="description">multiply a one-dimensional single-precision floating-point ndarray `x` by a constant `alpha` and add the result to a one-dimensional single-precision floating-point ndarray `y`.</span>
71+
- <span class="signature">[`scasum( arrays )`][@stdlib/blas/base/ndarray/scasum]</span><span class="delimiter">: </span><span class="description">calculate the sum of absolute values for all elements in a one-dimensional single-precision complex floating-point ndarray.</span>
7072
- <span class="signature">[`scnrm2( arrays )`][@stdlib/blas/base/ndarray/scnrm2]</span><span class="delimiter">: </span><span class="description">compute the L2-norm of a one-dimensional single-precision complex floating-point ndarray.</span>
7173
- <span class="signature">[`scopy( arrays )`][@stdlib/blas/base/ndarray/scopy]</span><span class="delimiter">: </span><span class="description">copy values from a one-dimensional single-precision floating-point ndarray `x` into a one-dimensional single-precision floating-point ndarray `y`.</span>
7274
- <span class="signature">[`sdot( arrays )`][@stdlib/blas/base/ndarray/sdot]</span><span class="delimiter">: </span><span class="description">calculate the dot product of two one-dimensional single-precision floating-point ndarrays.</span>
75+
- <span class="signature">[`sdsdot( arrays )`][@stdlib/blas/base/ndarray/sdsdot]</span><span class="delimiter">: </span><span class="description">calculate the dot product of two one-dimensional single-precision floating-point ndarrays with extended accumulation.</span>
7376
- <span class="signature">[`snrm2( arrays )`][@stdlib/blas/base/ndarray/snrm2]</span><span class="delimiter">: </span><span class="description">compute the L2-norm of a one-dimensional single-precision floating-point ndarray.</span>
7477
- <span class="signature">[`sscal( arrays )`][@stdlib/blas/base/ndarray/sscal]</span><span class="delimiter">: </span><span class="description">multiply a one-dimensional single-precision floating-point ndarray by a scalar constant.</span>
7578
- <span class="signature">[`sswap( arrays )`][@stdlib/blas/base/ndarray/sswap]</span><span class="delimiter">: </span><span class="description">interchange two one-dimensional single-precision floating-point ndarrays.</span>
@@ -142,6 +145,8 @@ console.log( objectKeys( ns ) );
142145

143146
[@stdlib/blas/base/ndarray/dscal]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/ndarray/dscal
144147

148+
[@stdlib/blas/base/ndarray/dsdot]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/ndarray/dsdot
149+
145150
[@stdlib/blas/base/ndarray/dswap]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/ndarray/dswap
146151

147152
[@stdlib/blas/base/ndarray/dznrm2]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/ndarray/dznrm2
@@ -164,12 +169,16 @@ console.log( objectKeys( ns ) );
164169

165170
[@stdlib/blas/base/ndarray/saxpy]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/ndarray/saxpy
166171

172+
[@stdlib/blas/base/ndarray/scasum]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/ndarray/scasum
173+
167174
[@stdlib/blas/base/ndarray/scnrm2]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/ndarray/scnrm2
168175

169176
[@stdlib/blas/base/ndarray/scopy]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/ndarray/scopy
170177

171178
[@stdlib/blas/base/ndarray/sdot]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/ndarray/sdot
172179

180+
[@stdlib/blas/base/ndarray/sdsdot]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/ndarray/sdsdot
181+
173182
[@stdlib/blas/base/ndarray/snrm2]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/ndarray/snrm2
174183

175184
[@stdlib/blas/base/ndarray/sscal]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/ndarray/sscal

lib/node_modules/@stdlib/blas/base/ndarray/docs/types/index.d.ts

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import dcopy = require( '@stdlib/blas/base/ndarray/dcopy' );
3131
import ddot = require( '@stdlib/blas/base/ndarray/ddot' );
3232
import dnrm2 = require( '@stdlib/blas/base/ndarray/dnrm2' );
3333
import dscal = require( '@stdlib/blas/base/ndarray/dscal' );
34+
import dsdot = require( '@stdlib/blas/base/ndarray/dsdot' );
3435
import dswap = require( '@stdlib/blas/base/ndarray/dswap' );
3536
import dznrm2 = require( '@stdlib/blas/base/ndarray/dznrm2' );
3637
import gasum = require( '@stdlib/blas/base/ndarray/gasum' );
@@ -42,9 +43,11 @@ import gscal = require( '@stdlib/blas/base/ndarray/gscal' );
4243
import gswap = require( '@stdlib/blas/base/ndarray/gswap' );
4344
import sasum = require( '@stdlib/blas/base/ndarray/sasum' );
4445
import saxpy = require( '@stdlib/blas/base/ndarray/saxpy' );
46+
import scasum = require( '@stdlib/blas/base/ndarray/scasum' );
4547
import scnrm2 = require( '@stdlib/blas/base/ndarray/scnrm2' );
4648
import scopy = require( '@stdlib/blas/base/ndarray/scopy' );
4749
import sdot = require( '@stdlib/blas/base/ndarray/sdot' );
50+
import sdsdot = require( '@stdlib/blas/base/ndarray/sdsdot' );
4851
import snrm2 = require( '@stdlib/blas/base/ndarray/snrm2' );
4952
import sscal = require( '@stdlib/blas/base/ndarray/sscal' );
5053
import sswap = require( '@stdlib/blas/base/ndarray/sswap' );
@@ -369,6 +372,30 @@ interface Namespace {
369372
*/
370373
dscal: typeof dscal;
371374

375+
/**
376+
* Computes the dot product of two one-dimensional single-precision floating-point ndarrays with double-precision accumulation.
377+
*
378+
* ## Notes
379+
*
380+
* - The function expects the following ndarrays:
381+
*
382+
* - first one-dimensional input ndarray.
383+
* - second one-dimensional input ndarray.
384+
*
385+
* @param arrays - array-like object containing ndarrays
386+
* @returns dot product
387+
*
388+
* @example
389+
* var Float32Vector = require( '@stdlib/ndarray/vector/float32' );
390+
*
391+
* var x = new Float32Vector( [ 4.0, 2.0, -3.0, 5.0, -1.0 ] );
392+
* var y = new Float32Vector( [ 2.0, 6.0, -1.0, -4.0, 8.0 ] );
393+
*
394+
* var z = ns.dsdot( [ x, y ] );
395+
* // returns -5.0
396+
*/
397+
dsdot: typeof dsdot;
398+
372399
/**
373400
* Interchanges two one-dimensional double-precision floating-point ndarrays.
374401
*
@@ -661,6 +688,28 @@ interface Namespace {
661688
*/
662689
saxpy: typeof saxpy;
663690

691+
/**
692+
* Computes the sum of absolute values for all elements in a one-dimensional single-precision complex floating-point ndarray.
693+
*
694+
* ## Notes
695+
*
696+
* - The function expects the following ndarrays:
697+
*
698+
* - a one-dimensional input ndarray.
699+
*
700+
* @param arrays - array-like object containing ndarrays
701+
* @returns sum
702+
*
703+
* @example
704+
* var Complex64Vector = require( '@stdlib/ndarray/vector/complex64' );
705+
*
706+
* var x = new Complex64Vector( [ 1.0, -2.0, 3.0, -4.0 ] );
707+
*
708+
* var y = ns.scasum( [ x ] );
709+
* // returns 10.0
710+
*/
711+
scasum: typeof scasum;
712+
664713
/**
665714
* Computes the L2-norm of a one-dimensional single-precision complex floating-point ndarray.
666715
*
@@ -734,6 +783,36 @@ interface Namespace {
734783
*/
735784
sdot: typeof sdot;
736785

786+
/**
787+
* Computes the dot product of two one-dimensional single-precision floating-point ndarrays with extended accumulation.
788+
*
789+
* ## Notes
790+
*
791+
* - The function expects the following ndarrays:
792+
*
793+
* - first one-dimensional input ndarray.
794+
* - second one-dimensional input ndarray.
795+
* - a zero-dimensional ndarray containing a scalar constant.
796+
*
797+
* @param arrays - array-like object containing ndarrays
798+
* @returns dot product
799+
*
800+
* @example
801+
* var Float32Vector = require( '@stdlib/ndarray/vector/float32' );
802+
* var scalar2ndarray = require( '@stdlib/ndarray/from-scalar' );
803+
*
804+
* var x = new Float32Vector( [ 4.0, 2.0, -3.0, 5.0, -1.0 ] );
805+
* var y = new Float32Vector( [ 2.0, 6.0, -1.0, -4.0, 8.0 ] );
806+
*
807+
* var scalar = scalar2ndarray( 10.0, {
808+
* 'dtype': 'float32'
809+
* });
810+
*
811+
* var z = ns.sdsdot( [ x, y, scalar ] );
812+
* // returns 5.0
813+
*/
814+
sdsdot: typeof sdsdot;
815+
737816
/**
738817
* Computes the L2-norm of a one-dimensional single-precision floating-point ndarray.
739818
*

lib/node_modules/@stdlib/blas/ext/base/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ var o = ns;
4444
<div class="namespace-toc">
4545

4646
- <span class="signature">[`capx( N, alpha, x, strideX )`][@stdlib/blas/ext/base/capx]</span><span class="delimiter">: </span><span class="description">add a scalar constant to each element in a single-precision complex floating-point strided array.</span>
47+
- <span class="signature">[`caxpb( N, alpha, beta, x, strideX )`][@stdlib/blas/ext/base/caxpb]</span><span class="delimiter">: </span><span class="description">multiply each element in a single-precision complex floating-point strided array by a scalar constant and add a scalar constant to each result.</span>
4748
- <span class="signature">[`cfill( N, alpha, x, strideX )`][@stdlib/blas/ext/base/cfill]</span><span class="delimiter">: </span><span class="description">fill a single-precision complex floating-point strided array with a specified scalar constant.</span>
4849
- <span class="signature">[`cindexOfColumn( order, M, N, A, LDA, x, strideX, workspace, strideW )`][@stdlib/blas/ext/base/cindex-of-column]</span><span class="delimiter">: </span><span class="description">return the index of the first column in a single-precision complex floating-point input matrix which has the same elements as a provided search vector.</span>
4950
- <span class="signature">[`cindexOfRow( order, M, N, A, LDA, x, strideX, workspace, strideW )`][@stdlib/blas/ext/base/cindex-of-row]</span><span class="delimiter">: </span><span class="description">return the index of the first row in a single-precision complex floating-point input matrix which has the same elements as a provided search vector.</span>
@@ -124,6 +125,7 @@ var o = ns;
124125
- <span class="signature">[`dunitspace( N, start, x, strideX )`][@stdlib/blas/ext/base/dunitspace]</span><span class="delimiter">: </span><span class="description">fill a double-precision floating-point strided array with linearly spaced numeric elements which increment by `1` starting from a specified value.</span>
125126
- <span class="signature">[`dvander( order, mode, M, N, x, strideX, out, ldo )`][@stdlib/blas/ext/base/dvander]</span><span class="delimiter">: </span><span class="description">generate a double-precision floating-point Vandermonde matrix.</span>
126127
- <span class="signature">[`dwhere( N, condition, strideC, x, strideX, y, strideY, out, strideOut )`][@stdlib/blas/ext/base/dwhere]</span><span class="delimiter">: </span><span class="description">take elements from one of two double-precision floating-point strided arrays depending on a condition.</span>
128+
- <span class="signature">[`dxsa( N, alpha, x, strideX )`][@stdlib/blas/ext/base/dxsa]</span><span class="delimiter">: </span><span class="description">subtract a scalar constant from each element in a double-precision floating-point strided array.</span>
127129
- <span class="signature">[`dzeroTo( N, x, strideX )`][@stdlib/blas/ext/base/dzero-to]</span><span class="delimiter">: </span><span class="description">fill a double-precision floating-point strided array with linearly spaced numeric elements which increment by `1` starting from zero.</span>
128130
- <span class="signature">[`gapx( N, alpha, x, strideX )`][@stdlib/blas/ext/base/gapx]</span><span class="delimiter">: </span><span class="description">add a scalar constant to each element in a strided array.</span>
129131
- <span class="signature">[`gapxsum( N, alpha, x, strideX )`][@stdlib/blas/ext/base/gapxsum]</span><span class="delimiter">: </span><span class="description">add a scalar constant to each strided array element and compute the sum.</span>
@@ -238,6 +240,7 @@ var o = ns;
238240
- <span class="signature">[`sunitspace( N, start, x, strideX )`][@stdlib/blas/ext/base/sunitspace]</span><span class="delimiter">: </span><span class="description">fill a single-precision floating-point strided array with linearly spaced numeric elements which increment by `1` starting from a specified value.</span>
239241
- <span class="signature">[`svander( order, mode, M, N, x, strideX, out, ldo )`][@stdlib/blas/ext/base/svander]</span><span class="delimiter">: </span><span class="description">generate a single-precision floating-point Vandermonde matrix.</span>
240242
- <span class="signature">[`swhere( N, condition, strideC, x, strideX, y, strideY, out, strideOut )`][@stdlib/blas/ext/base/swhere]</span><span class="delimiter">: </span><span class="description">take elements from one of two single-precision floating-point strided arrays depending on a condition.</span>
243+
- <span class="signature">[`sxsa( N, alpha, x, strideX )`][@stdlib/blas/ext/base/sxsa]</span><span class="delimiter">: </span><span class="description">subtract a scalar constant from each element in a single-precision floating-point strided array.</span>
241244
- <span class="signature">[`szeroTo( N, x, strideX )`][@stdlib/blas/ext/base/szero-to]</span><span class="delimiter">: </span><span class="description">fill a single-precision floating-point strided array with linearly spaced numeric elements which increment by `1` starting from zero.</span>
242245
- <span class="signature">[`wasm`][@stdlib/blas/ext/base/wasm]</span><span class="delimiter">: </span><span class="description">extensions to basic linear algebra subprograms (BLAS) compiled to WebAssembly.</span>
243246
- <span class="signature">[`zapx( N, alpha, x, strideX )`][@stdlib/blas/ext/base/zapx]</span><span class="delimiter">: </span><span class="description">add a scalar constant to each element in a double-precision complex floating-point strided array.</span>
@@ -306,6 +309,8 @@ console.log( objectKeys( ns ) );
306309

307310
[@stdlib/blas/ext/base/capx]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/capx
308311

312+
[@stdlib/blas/ext/base/caxpb]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/caxpb
313+
309314
[@stdlib/blas/ext/base/cfill]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/cfill
310315

311316
[@stdlib/blas/ext/base/cindex-of-column]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/cindex-of-column
@@ -466,6 +471,8 @@ console.log( objectKeys( ns ) );
466471

467472
[@stdlib/blas/ext/base/dwhere]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/dwhere
468473

474+
[@stdlib/blas/ext/base/dxsa]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/dxsa
475+
469476
[@stdlib/blas/ext/base/dzero-to]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/dzero-to
470477

471478
[@stdlib/blas/ext/base/gapx]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/gapx
@@ -694,6 +701,8 @@ console.log( objectKeys( ns ) );
694701

695702
[@stdlib/blas/ext/base/swhere]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/swhere
696703

704+
[@stdlib/blas/ext/base/sxsa]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/sxsa
705+
697706
[@stdlib/blas/ext/base/szero-to]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/szero-to
698707

699708
[@stdlib/blas/ext/base/wasm]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/wasm

lib/node_modules/@stdlib/blas/ext/base/dxsa/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ int main( void ) {
273273
274274
<section class="links">
275275
276-
[@stdlib/array/float64]: https://github.com/stdlib-js/stdlib
276+
[@stdlib/array/float64]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/array/float64
277277
278278
[mdn-typed-array]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray
279279

0 commit comments

Comments
 (0)