Skip to content

Commit 6af3aa5

Browse files
committed
Auto-generated commit
1 parent d1a8113 commit 6af3aa5

6 files changed

Lines changed: 77 additions & 2 deletions

File tree

.github/.keepalive

Lines changed: 0 additions & 1 deletion
This file was deleted.

CHANGELOG.md

Lines changed: 2 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 (2025-05-19)
7+
## Unreleased (2025-06-01)
88

99
<section class="features">
1010

@@ -22,6 +22,7 @@
2222

2323
<details>
2424

25+
- [`6555228`](https://github.com/stdlib-js/stdlib/commit/65552285402918e100f9562cdef24493fc43550a) - **test:** add test cases for `blas/base/dsyr` [(#7128)](https://github.com/stdlib-js/stdlib/pull/7128) _(by Shabareesh Shetty)_
2526
- [`dfa9446`](https://github.com/stdlib-js/stdlib/commit/dfa944638baf665a4f16321a88ffd5091b2b14fb) - **refactor:** use base assertion utility _(by Athan Reines)_
2627
- [`9b76065`](https://github.com/stdlib-js/stdlib/commit/9b76065b017415494be482c0a085afda2e526a77) - **test:** add test cases for `blas/base/dsyr` [(#6729)](https://github.com/stdlib-js/stdlib/pull/6729) _(by Shabareesh Shetty)_
2728
- [`aad48ea`](https://github.com/stdlib-js/stdlib/commit/aad48eab1f19217854f4ffbfaed2a8be664b0f47) - **chore:** resolve lint errors _(by Philipp Burckhardt)_

CONTRIBUTORS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ Ryan Seal <splrk@users.noreply.github.com>
146146
Rylan Yang <137365285+rylany27@users.noreply.github.com>
147147
SAHIL KUMAR <168997976+sahilk45@users.noreply.github.com>
148148
SHIVAM YADAV <120725381+Shivam-1827@users.noreply.github.com>
149+
Sachin Raj <120590207+schnrj@users.noreply.github.com>
149150
Sahil Goyal <87982509+sahil20021008@users.noreply.github.com>
150151
Sai Avinash <120403424+nasarobot@users.noreply.github.com>
151152
Sai Srikar Dumpeti <80447788+the-r3aper7@users.noreply.github.com>
@@ -166,10 +167,14 @@ Spandan Barve <contact@marsian.dev>
166167
Stephannie Jiménez Gacha <steff456@hotmail.com>
167168
Suhaib Ilahi <suhaib.elahi87@gmail.com>
168169
Suraj Kumar <125961509+kumarsuraj212003@users.noreply.github.com>
170+
Swapnil Hajare <69076366+Swapnil-2502@users.noreply.github.com>
169171
Tanishq Ahuja <68651083+TheGEN1U5@users.noreply.github.com>
170172
Tirtadwipa Manunggal <tirtadwipa.manunggal@gmail.com>
171173
Tudor Pagu <104032457+tudor-pagu@users.noreply.github.com>
172174
Tufailahmed Bargir <142114244+Tufailahmed-Bargir@users.noreply.github.com>
175+
Tushar Bhardwaj <155543597+TusharBhardwaj441@users.noreply.github.com>
176+
Uday Kakade <141299403+udaykakade25@users.noreply.github.com>
177+
Ujjwal Kirti <64329707+ujjwalkirti@users.noreply.github.com>
173178
Utkarsh <http://utkarsh11105@gmail.com>
174179
Utkarsh Raj <rajutkarsh2505@gmail.com>
175180
UtkershBasnet <119008923+UtkershBasnet@users.noreply.github.com>

test/fixtures/column_major_ox.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"uplo": "lower",
3+
"N": 3,
4+
"alpha": 2.0,
5+
"x": [ 0.0, 0.0, 1.0, 2.0, 3.0 ],
6+
"strideX": 1,
7+
"offsetX": 2,
8+
"A": [ 1.0, 1.0, 1.0, 0.0, 2.0, 2.0, 0.0, 0.0, 3.0 ],
9+
"strideA1": 1,
10+
"strideA2": 3,
11+
"offsetA": 0,
12+
"A_out": [ 3.0, 5.0, 7.0, 0.0, 10.0, 14.0, 0.0, 0.0, 21.0 ]
13+
}

test/fixtures/row_major_ox.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"uplo": "lower",
3+
"N": 3,
4+
"alpha": 2.0,
5+
"x": [ 0.0, 0.0, 1.0, 2.0, 3.0 ],
6+
"strideX": 1,
7+
"offsetX": 2,
8+
"A": [ 1.0, 0.0, 0.0, 1.0, 2.0, 0.0, 1.0, 2.0, 3.0 ],
9+
"strideA1": 3,
10+
"strideA2": 1,
11+
"offsetA": 0,
12+
"A_out": [ 3.0, 0.0, 0.0, 5.0, 10.0, 0.0, 7.0, 14.0, 21.0 ]
13+
}

test/test.ndarray.js

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ var rl = require( './fixtures/row_major_l.json' );
3434
var rxp = require( './fixtures/row_major_xp.json' );
3535
var rxn = require( './fixtures/row_major_xn.json' );
3636
var roa = require( './fixtures/row_major_oa.json' );
37+
var rox = require( './fixtures/row_major_ox.json' );
3738
var rsa1sa2 = require( './fixtures/row_major_sa1_sa2.json' );
3839
var rsa1nsa2 = require( './fixtures/row_major_sa1n_sa2.json' );
3940
var rsa1sa2n = require( './fixtures/row_major_sa1_sa2n.json' );
@@ -45,6 +46,7 @@ var cl = require( './fixtures/column_major_l.json' );
4546
var cxp = require( './fixtures/column_major_xp.json' );
4647
var cxn = require( './fixtures/column_major_xn.json' );
4748
var coa = require( './fixtures/column_major_oa.json' );
49+
var cox = require( './fixtures/column_major_ox.json' );
4850
var csa1sa2 = require( './fixtures/column_major_sa1_sa2.json' );
4951
var csa1nsa2 = require( './fixtures/column_major_sa1n_sa2.json' );
5052
var csa1sa2n = require( './fixtures/column_major_sa1_sa2n.json' );
@@ -630,6 +632,48 @@ tape( 'the function supports specifying a negative `x` stride (column-major)', f
630632
t.end();
631633
});
632634

635+
tape( 'the function supports specifying an `x` offset (row-major)', function test( t ) {
636+
var expected;
637+
var data;
638+
var out;
639+
var a;
640+
var x;
641+
642+
data = rox;
643+
644+
a = new Float64Array( data.A );
645+
x = new Float64Array( data.x );
646+
647+
expected = new Float64Array( data.A_out );
648+
649+
out = dsyr( data.uplo, data.N, data.alpha, x, data.strideX, data.offsetX, a, data.strideA1, data.strideA2, data.offsetA );
650+
t.strictEqual( out, a, 'returns expected value' );
651+
t.deepEqual( out, expected, 'returns expected value' );
652+
653+
t.end();
654+
});
655+
656+
tape( 'the function supports specifying an `x` offset (column-major)', function test( t ) {
657+
var expected;
658+
var data;
659+
var out;
660+
var a;
661+
var x;
662+
663+
data = cox;
664+
665+
a = new Float64Array( data.A );
666+
x = new Float64Array( data.x );
667+
668+
expected = new Float64Array( data.A_out );
669+
670+
out = dsyr( data.uplo, data.N, data.alpha, x, data.strideX, data.offsetX, a, data.strideA1, data.strideA2, data.offsetA );
671+
t.strictEqual( out, a, 'returns expected value' );
672+
t.deepEqual( out, expected, 'returns expected value' );
673+
674+
t.end();
675+
});
676+
633677
tape( 'the function supports complex access patterns (row-major)', function test( t ) {
634678
var expected;
635679
var data;

0 commit comments

Comments
 (0)