Skip to content

Commit cb44ca9

Browse files
committed
Auto-generated commit
1 parent 6a23dca commit cb44ca9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+4066
-30
lines changed

CHANGELOG.md

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2024-08-01)
7+
## Unreleased (2024-08-03)
88

99
<section class="packages">
1010

@@ -508,6 +508,28 @@
508508

509509
<!-- /.package -->
510510

511+
<section class="package" id="blas-base-dgemv-unreleased">
512+
513+
#### [@stdlib/blas/base/dgemv](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/dgemv)
514+
515+
<details>
516+
517+
<section class="features">
518+
519+
##### Features
520+
521+
- [`1a0368b`](https://github.com/stdlib-js/stdlib/commit/1a0368b9aa6733bb153cd09ad91fc27200180027) - add `blas/base/dgemv` [(#2654)](https://github.com/stdlib-js/stdlib/pull/2654)
522+
523+
</section>
524+
525+
<!-- /.features -->
526+
527+
</details>
528+
529+
</section>
530+
531+
<!-- /.package -->
532+
511533
<section class="package" id="blas-base-dger-unreleased">
512534

513535
#### [@stdlib/blas/base/dger](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/dger)
@@ -2871,6 +2893,16 @@ A total of 35 people contributed to this release. Thank you to the following con
28712893

28722894
<details>
28732895

2896+
- [`2b123f6`](https://github.com/stdlib-js/stdlib/commit/2b123f66af0c8d053d0d7d0dc6fae718fc182bb3) - **style:** fix missing spaces _(by Athan Reines)_
2897+
- [`4f98407`](https://github.com/stdlib-js/stdlib/commit/4f98407129de0fdc6a3731e984ea9fb51101225f) - **style:** fix missing spaces _(by Athan Reines)_
2898+
- [`0be3828`](https://github.com/stdlib-js/stdlib/commit/0be382865d07a948545f6e6e6c1da14740c2d8fb) - **test:** fix test fixture _(by Athan Reines)_
2899+
- [`8018ce3`](https://github.com/stdlib-js/stdlib/commit/8018ce3ba4efdf454633393970949dd868c532fc) - **test:** fix test fixture _(by Athan Reines)_
2900+
- [`6c3bfbd`](https://github.com/stdlib-js/stdlib/commit/6c3bfbdcbb11a33737c24d413e661e59c4746f01) - **docs:** update description _(by Athan Reines)_
2901+
- [`3f617f6`](https://github.com/stdlib-js/stdlib/commit/3f617f6258fd1ed2e68a305a42621672e988a1c3) - **docs:** fix source comment [(#2735)](https://github.com/stdlib-js/stdlib/pull/2735) _(by Aman Bhansali)_
2902+
- [`1a0368b`](https://github.com/stdlib-js/stdlib/commit/1a0368b9aa6733bb153cd09ad91fc27200180027) - **feat:** add `blas/base/dgemv` [(#2654)](https://github.com/stdlib-js/stdlib/pull/2654) _(by Aman Bhansali, Athan Reines)_
2903+
- [`283fb86`](https://github.com/stdlib-js/stdlib/commit/283fb861b91c55276e3a38b080c2983265db3b76) - **test:** update descriptions _(by Athan Reines)_
2904+
- [`bebfa1d`](https://github.com/stdlib-js/stdlib/commit/bebfa1dea0c0303b185ff2123243616f440c5b71) - **docs:** fix text wrapping _(by Athan Reines)_
2905+
- [`e22f5a9`](https://github.com/stdlib-js/stdlib/commit/e22f5a978215da36f0987aa667829fbc566f4e9c) - **style:** fix lint errors _(by Athan Reines)_
28742906
- [`868c9aa`](https://github.com/stdlib-js/stdlib/commit/868c9aa323e5c49a00ecaa944ce90d968c80f6de) - **docs:** update ToC _(by Athan Reines)_
28752907
- [`f1128aa`](https://github.com/stdlib-js/stdlib/commit/f1128aa2432497a7297ad1cc733de562f44169d5) - **feat:** add `zaxpy`, `zdrot`, and `zscal` to namespace _(by Athan Reines)_
28762908
- [`10640df`](https://github.com/stdlib-js/stdlib/commit/10640dfff29bff48cc339c31c0fe98ab5a5d2ff3) - **feat:** add `sspmv`, `ssymv`, `ssyr`, `ssyr2`, and `strmv` to namespace _(by Athan Reines)_

base/caxpy/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Scales values from `cx` by `ca` and adds the result to `cy`.
3636

3737
```javascript
3838
var Complex64Array = require( '@stdlib/array/complex64' );
39-
var Complex64 = require('@stdlib/complex/float32/ctor');
39+
var Complex64 = require( '@stdlib/complex/float32/ctor' );
4040
var realf = require( '@stdlib/complex/float32/real' );
4141
var imagf = require( '@stdlib/complex/float32/imag' );
4242

base/dgemv/README.md

Lines changed: 268 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,268 @@
1+
<!--
2+
3+
@license Apache-2.0
4+
5+
Copyright (c) 2024 The Stdlib Authors.
6+
7+
Licensed under the Apache License, Version 2.0 (the "License");
8+
you may not use this file except in compliance with the License.
9+
You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
12+
13+
Unless required by applicable law or agreed to in writing, software
14+
distributed under the License is distributed on an "AS IS" BASIS,
15+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
See the License for the specific language governing permissions and
17+
limitations under the License.
18+
19+
-->
20+
21+
# dgemv
22+
23+
> Perform one of the matrix-vector operations `y = α*A*x + β*y` or `y = α*A**T*x + β*y`.
24+
25+
<section class = "usage">
26+
27+
## Usage
28+
29+
```javascript
30+
var dgemv = require( '@stdlib/blas/base/dgemv' );
31+
```
32+
33+
#### dgemv( ord, trans, M, N, α, A, LDA, x, sx, β, y, sy )
34+
35+
Performs one of the matrix-vector operations `y = α*A*x + β*y` or `y = α*A**T*x + β*y`, where `α` and `β` are scalars, `x` and `y` are vectors, and `A` is an `M` by `N` matrix.
36+
37+
```javascript
38+
var Float64Array = require( '@stdlib/array/float64' );
39+
40+
var A = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
41+
var x = new Float64Array( [ 1.0, 1.0, 1.0 ] );
42+
var y = new Float64Array( [ 1.0, 1.0 ] );
43+
44+
dgemv( 'row-major', 'no-transpose', 2, 3, 1.0, A, 3, x, 1, 1.0, y, 1 );
45+
// y => <Float64Array>[ 7.0, 16.0 ]
46+
```
47+
48+
The function has the following parameters:
49+
50+
- **ord**: storage layout.
51+
- **trans**: specifies whether `A` should be transposed, conjugate-transposed, or not transposed.
52+
- **M**: number of rows in the matrix `A`.
53+
- **N**: number of columns in the matrix `A`.
54+
- **α**: scalar constant.
55+
- **A**: input matrix stored in linear memory as a [`Float64Array`][mdn-float64array].
56+
- **lda**: stride of the first dimension of `A` (leading dimension of `A`).
57+
- **x**: input [`Float64Array`][mdn-float64array].
58+
- **sx**: index increment for `x`.
59+
- **β**: scalar constant.
60+
- **y**: output [`Float64Array`][mdn-float64array].
61+
- **sy**: index increment for `y`.
62+
63+
The stride parameters determine how operations are performed. For example, to iterate over every other element in `x` and `y`,
64+
65+
```javascript
66+
var Float64Array = require( '@stdlib/array/float64' );
67+
68+
var A = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] );
69+
var x = new Float64Array( [ 1.0, 0.0, 1.0, 0.0 ] );
70+
var y = new Float64Array( [ 1.0, 0.0, 1.0, 0.0 ] );
71+
72+
dgemv( 'row-major', 'no-transpose', 2, 2, 1.0, A, 2, x, 2, 1.0, y, 2 );
73+
// y => <Float64Array>[ 4.0, 0.0, 8.0, 0.0 ]
74+
```
75+
76+
Note that indexing is relative to the first index. To introduce an offset, use [`typed array`][mdn-typed-array] views.
77+
78+
<!-- eslint-disable stdlib/capitalized-comments -->
79+
80+
```javascript
81+
var Float64Array = require( '@stdlib/array/float64' );
82+
83+
// Initial arrays...
84+
var x0 = new Float64Array( [ 0.0, 1.0, 1.0 ] );
85+
var y0 = new Float64Array( [ 0.0, 1.0, 1.0 ] );
86+
var A = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
87+
88+
// Create offset views...
89+
var x1 = new Float64Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); // start at 2nd element
90+
var y1 = new Float64Array( y0.buffer, y0.BYTES_PER_ELEMENT*1 ); // start at 2nd element
91+
92+
dgemv( 'row-major', 'no-transpose', 2, 2, 1.0, A, 2, x1, -1, 1.0, y1, -1 );
93+
// y0 => <Float64Array>[ 0.0, 8.0, 4.0 ]
94+
```
95+
96+
#### dgemv.ndarray( trans, M, N, α, A, sa1, sa2, oa, x, sx, ox, β, y, sy, oy )
97+
98+
Performs one of the matrix-vector operations `y = α*A*x + β*y` or `y = α*A**T*x + β*y`, using alternative indexing semantics and where `α` and `β` are scalars, `x` and `y` are vectors, and `A` is an `M` by `N` matrix.
99+
100+
```javascript
101+
var Float64Array = require( '@stdlib/array/float64' );
102+
103+
var A = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
104+
var x = new Float64Array( [ 1.0, 1.0, 1.0 ] );
105+
var y = new Float64Array( [ 1.0, 1.0 ] );
106+
107+
dgemv.ndarray( 'no-transpose', 2, 3, 1.0, A, 3, 1, 0, x, 1, 0, 1.0, y, 1, 0 );
108+
// y => <Float64Array>[ 7.0, 16.0 ]
109+
```
110+
111+
The function has the following additional parameters:
112+
113+
- **sa1**: stride of the first dimension of `A`.
114+
- **sa2**: stride of the second dimension of `A`.
115+
- **oa**: starting index for `A`.
116+
- **ox**: starting index for `x`.
117+
- **oy**: starting index for `y`.
118+
119+
While [`typed array`][mdn-typed-array] views mandate a view offset based on the underlying buffer, the offset parameters support indexing semantics based on starting indices. For example,
120+
121+
```javascript
122+
var Float64Array = require( '@stdlib/array/float64' );
123+
124+
var A = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
125+
var x = new Float64Array( [ 0.0, 1.0, 2.0, 3.0 ] );
126+
var y = new Float64Array( [ 7.0, 8.0, 9.0, 10.0 ] );
127+
128+
dgemv.ndarray( 'no-transpose', 2, 3, 1.0, A, 3, 1, 0, x, 1, 1, 1.0, y, -2, 2 );
129+
// y => <Float64Array>[ 39, 8, 23, 10 ]
130+
```
131+
132+
</section>
133+
134+
<!-- /.usage -->
135+
136+
<section class="notes">
137+
138+
## Notes
139+
140+
- `dgemv()` corresponds to the [BLAS][blas] level 2 function [`dgemv`][blas-dgemv].
141+
142+
</section>
143+
144+
<!-- /.notes -->
145+
146+
<section class="examples">
147+
148+
## Examples
149+
150+
<!-- eslint no-undef: "error" -->
151+
152+
```javascript
153+
var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
154+
var dgemv = require( '@stdlib/blas/base/dgemv' );
155+
156+
var opts = {
157+
'dtype': 'float64'
158+
};
159+
160+
var M = 3;
161+
var N = 3;
162+
163+
var A = discreteUniform( M*N, 0, 255, opts );
164+
var x = discreteUniform( N, 0, 255, opts );
165+
var y = discreteUniform( M, 0, 255, opts );
166+
167+
dgemv( 'row-major', 'no-transpose', M, N, 1.0, A, N, x, -1, 1.0, y, -1 );
168+
console.log( y );
169+
170+
```
171+
172+
</section>
173+
174+
<!-- /.examples -->
175+
176+
<!-- C interface documentation. -->
177+
178+
* * *
179+
180+
<section class="c">
181+
182+
## C APIs
183+
184+
<!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. -->
185+
186+
<section class="intro">
187+
188+
</section>
189+
190+
<!-- /.intro -->
191+
192+
<!-- C usage documentation. -->
193+
194+
<section class="usage">
195+
196+
### Usage
197+
198+
```c
199+
#include "stdlib/blas/base/dgemv.h"
200+
```
201+
202+
#### TODO
203+
204+
TODO.
205+
206+
```c
207+
TODO
208+
```
209+
210+
TODO
211+
212+
```c
213+
TODO
214+
```
215+
216+
</section>
217+
218+
<!-- /.usage -->
219+
220+
<!-- C API usage notes. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
221+
222+
<section class="notes">
223+
224+
</section>
225+
226+
<!-- /.notes -->
227+
228+
<!-- C API usage examples. -->
229+
230+
<section class="examples">
231+
232+
### Examples
233+
234+
```c
235+
TODO
236+
```
237+
238+
</section>
239+
240+
<!-- /.examples -->
241+
242+
</section>
243+
244+
<!-- /.c -->
245+
246+
<!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->
247+
248+
<section class="related">
249+
250+
</section>
251+
252+
<!-- /.related -->
253+
254+
<!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
255+
256+
<section class="links">
257+
258+
[blas]: http://www.netlib.org/blas
259+
260+
[blas-dgemv]: https://www.netlib.org/lapack/explore-html/d7/dda/group__gemv_ga4ac1b675072d18f902db8a310784d802.html#ga4ac1b675072d18f902db8a310784d802
261+
262+
[mdn-float64array]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array
263+
264+
[mdn-typed-array]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray
265+
266+
</section>
267+
268+
<!-- /.links -->

0 commit comments

Comments
 (0)