Skip to content

Commit 6ec5256

Browse files
committed
Auto-generated commit
1 parent 2b58f1f commit 6ec5256

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
### Features
1212

13+
- [`93c9868`](https://github.com/stdlib-js/stdlib/commit/93c9868ae12a7268932c3a07ad4cd96cba34a419) - update `blas/base/ndarray` TypeScript declarations [(#11447)](https://github.com/stdlib-js/stdlib/pull/11447)
1314
- [`ebaed5c`](https://github.com/stdlib-js/stdlib/commit/ebaed5c878d5abeaaadcb83a8a6e4544ab12f881) - add `gaxpy` to namespace
1415
- [`cbcb5a5`](https://github.com/stdlib-js/stdlib/commit/cbcb5a5f99dd8664a828a5742fb0ba5d384a7f5a) - add `blas/base/ndarray/gaxpy` [(#11442)](https://github.com/stdlib-js/stdlib/pull/11442)
1516
- [`4bb0678`](https://github.com/stdlib-js/stdlib/commit/4bb06788fb4591402eebc85e92dcae6df313d85c) - update `blas/ext/base` TypeScript declarations [(#11419)](https://github.com/stdlib-js/stdlib/pull/11419)
@@ -856,6 +857,7 @@ A total of 53 issues were closed in this release:
856857

857858
<details>
858859

860+
- [`93c9868`](https://github.com/stdlib-js/stdlib/commit/93c9868ae12a7268932c3a07ad4cd96cba34a419) - **feat:** update `blas/base/ndarray` TypeScript declarations [(#11447)](https://github.com/stdlib-js/stdlib/pull/11447) _(by stdlib-bot)_
859861
- [`36e8e4b`](https://github.com/stdlib-js/stdlib/commit/36e8e4be9c05de181d5e69f7a0f4b689d27c3f35) - **docs:** update namespace table of contents [(#11448)](https://github.com/stdlib-js/stdlib/pull/11448) _(by stdlib-bot)_
860862
- [`ebaed5c`](https://github.com/stdlib-js/stdlib/commit/ebaed5c878d5abeaaadcb83a8a6e4544ab12f881) - **feat:** add `gaxpy` to namespace _(by Athan Reines)_
861863
- [`cbcb5a5`](https://github.com/stdlib-js/stdlib/commit/cbcb5a5f99dd8664a828a5742fb0ba5d384a7f5a) - **feat:** add `blas/base/ndarray/gaxpy` [(#11442)](https://github.com/stdlib-js/stdlib/pull/11442) _(by Kaustubh Patange, Athan Reines)_

base/ndarray/docs/types/index.d.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import dasum = require( './../../../../base/ndarray/dasum' );
2424
import daxpy = require( './../../../../base/ndarray/daxpy' );
2525
import ddot = require( './../../../../base/ndarray/ddot' );
2626
import gasum = require( './../../../../base/ndarray/gasum' );
27+
import gaxpy = require( './../../../../base/ndarray/gaxpy' );
2728
import gdot = require( './../../../../base/ndarray/gdot' );
2829
import sasum = require( './../../../../base/ndarray/sasum' );
2930
import saxpy = require( './../../../../base/ndarray/saxpy' );
@@ -116,6 +117,32 @@ interface Namespace {
116117
*/
117118
gasum: typeof gasum;
118119

120+
/**
121+
* Multiplies a one-dimensional ndarray `x` by a constant `alpha` and adds the result to a one-dimensional ndarray `y`.
122+
*
123+
* @param arrays - array-like object containing an input ndarray, an output ndarray, and a zero-dimensional ndarray containing a scalar constant
124+
* @returns output ndarray
125+
*
126+
* @example
127+
* var scalar2ndarray = require( '@stdlib/ndarray/base/from-scalar' );
128+
* var ndarray = require( '@stdlib/ndarray/base/ctor' );
129+
*
130+
* var xbuf = [ 1.0, 2.0, 3.0, 4.0, 5.0 ];
131+
* var x = new ndarray( 'generic', xbuf, [ 5 ], [ 1 ], 0, 'row-major' );
132+
*
133+
* var ybuf = [ 1.0, 1.0, 1.0, 1.0, 1.0 ];
134+
* var y = new ndarray( 'generic', ybuf, [ 5 ], [ 1 ], 0, 'row-major' );
135+
*
136+
* var alpha = scalar2ndarray( 5.0, 'generic', 'row-major' );
137+
*
138+
* var z = ns.gaxpy( [ x, y, alpha ] );
139+
* // returns <ndarray>[ 6.0, 11.0, 16.0, 21.0, 26.0 ]
140+
*
141+
* var bool = ( z === y );
142+
* // returns true
143+
*/
144+
gaxpy: typeof gaxpy;
145+
119146
/**
120147
* Computes the dot product of two one-dimensional ndarrays.
121148
*

0 commit comments

Comments
 (0)