Skip to content

feat: add blas/base/ssbmv #2399

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 23 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: update test directory path and cases
  • Loading branch information
aman-095 committed Jun 24, 2024
commit 630794150f66e8f3f09e28fc8f96a30f7923cd17
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/base/ssbmv/lib/ndarray.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function ssbmv( order, uplo, N, k, alpha, A, LDA, x, strideX, offsetX, beta, y,
throw new RangeError( 'invalid argument. Ninth argument must be non-zero. Value: `%d`.', strideX );
}
if ( strideY === 0 ) {
throw new RangeError( 'invalid argument. Twelfth argument must be non-zero. Value: `%d`.', strideY );
throw new RangeError( 'invalid argument. Thirteenth argument must be non-zero. Value: `%d`.', strideY );
}
if ( N === 0 || ( alpha === 0.0 && beta === 1.0 ) ) {
return y;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"uplo": "lower",
"order": "column-major",
"N": 3,
"k": 1,
"alpha": 1.0,
"beta": 1.0,
"lda": 3,
"strideX": -1,
"offsetX": 2,
"strideY": -1,
"offsetY": 2,
"A": [ 0.5, -0.2, 0.1, 0.4, 0.6, -0.3, 0.7, 0.2, -0.8 ],
"x": [ 1.0, 1.0, 1.0 ],
"y": [ 1.0, 1.0, 1.0 ],
"y_out": [ 2.3, 1.8, 1.3 ]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"uplo": "upper",
"order": "column-major",
"N": 3,
"k": 1,
"alpha": 2.0,
"beta": 1.0,
"lda": 3,
"strideX": -1,
"offsetX": 2,
"strideY": 1,
"offsetY": 0,
"A": [ 0.5, -0.2, 0.1, 0.4, 0.6, -0.3, 0.7, 0.2, -0.8 ],
"x": [ 1.0, 2.0, 3.0 ],
"y": [ 1.0, 2.0, 3.0 ],
"y_out": [ 1.4, 8.2, 6.2 ]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"uplo": "upper",
"order": "column-major",
"N": 3,
"k": 1,
"alpha": 2.0,
"beta": 1.0,
"lda": 3,
"strideX": 1,
"offsetX": 0,
"strideY": 2,
"offsetY": 0,
"A": [ 0.5, -0.2, 0.1, 0.4, 0.6, -0.3, 0.7, 0.2, -0.8 ],
"x": [ 1.0, 2.0, 3.0 ],
"y": [ 1.0, 0.0, 2.0, 0.0, 3.0, 0.0 ],
"y_out": [ 2.2, 0.0, 9.4, 0.0, 7.0, 0.0 ]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"uplo": "upper",
"order": "column-major",
"N": 3,
"k": 1,
"alpha": 2.0,
"beta": 1.0,
"lda": 3,
"strideX": 1,
"offsetX": 0,
"strideY": -1,
"offsetY": 2,
"A": [ 0.5, -0.2, 0.1, 0.4, 0.6, -0.3, 0.7, 0.2, -0.8 ],
"x": [ 1.0, 1.0, 1.0 ],
"y": [ 1.0, 2.0, 3.0 ],
"y_out": [ 2.8, 5.4, 3.4 ]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"uplo": "lower",
"order": "column-major",
"N": 3,
"k": 1,
"alpha": 1.0,
"beta": 0.0,
"lda": 3,
"strideX": 1,
"offsetX": 0,
"strideY": 1,
"offsetY": 0,
"A": [ 0.5, -0.2, 0.1, 0.4, 0.6, -0.3, 0.7, 0.2, -0.8 ],
"x": [ 1.0, 1.0, 1.0 ],
"y": [ 0.0, 0.0, 0.0 ],
"y_out": [ 0.3, 0.8, 1.3 ]
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"beta": 1.0,
"lda": 3,
"strideX": -1,
"offsetX": 2,
"strideY": -1,
"offsetY": 2,
"A": [ 0.5, -0.2, 0.1, 0.4, 0.6, -0.3, 0.7, 0.2, -0.8 ],
"x": [ 1.0, 1.0, 1.0 ],
"y": [ 1.0, 1.0, 1.0 ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"beta": 1.0,
"lda": 3,
"strideX": -1,
"offsetX": 2,
"strideY": 1,
"offsetY": 0,
"A": [ 0.5, -0.2, 0.1, 0.4, 0.6, -0.3, 0.7, 0.2, -0.8 ],
"x": [ 1.0, 2.0, 3.0 ],
"y": [ 1.0, 2.0, 3.0 ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
"beta": 1.0,
"lda": 3,
"strideX": 1,
"offsetX": 0,
"strideY": 2,
"offsetY": 0,
"A": [ 0.5, -0.2, 0.1, 0.4, 0.6, -0.3, 0.7, 0.2, -0.8 ],
"x": [ 1.0, 2.0, 3.0 ],
"y": [ 1.0, 2.0, 3.0 ],
"y_out": [ 1.2, 2.0, 7.8 ]
"y": [ 1.0, 0.0, 2.0, 0.0, 3.0, 0.0 ],
"y_out": [ 1.2, 0.0, 6.8, 0.0, 9.6, 0.0 ]
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"beta": 1.0,
"lda": 3,
"strideX": 1,
"offsetX": 0,
"strideY": -1,
"offsetY": 2,
"A": [ 0.5, -0.2, 0.1, 0.4, 0.6, -0.3, 0.7, 0.2, -0.8 ],
"x": [ 1.0, 1.0, 1.0 ],
"y": [ 1.0, 2.0, 3.0 ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"beta": 0.0,
"lda": 3,
"strideX": 1,
"offsetX": 0,
"strideY": 1,
"offsetY": 0,
"A": [ 0.5, -0.2, 0.1, 0.4, 0.6, -0.3, 0.7, 0.2, -0.8 ],
"x": [ 1.0, 1.0, 1.0 ],
"y": [ 0.0, 0.0, 0.0 ],
Expand Down
Loading