Skip to content

Commit b57a3f4

Browse files
committed
chore: add correct packages
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: missing_dependencies - task: lint_c_examples status: na - task: lint_c_benchmarks status: missing_dependencies - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent fcf1b0b commit b57a3f4

File tree

3 files changed

+36
-26
lines changed

3 files changed

+36
-26
lines changed

lib/node_modules/@stdlib/blas/base/dsyr2/benchmark/c/benchmark.c

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
#include "stdlib/blas/base/dsyr2.h"
2020
#include "stdlib/blas/base/shared.h"
21-
#include "stdlib/blas/ext/base/sfill.h"
21+
#include "stdlib/blas/ext/base/dfill.h"
2222
#include <stdlib.h>
2323
#include <stdio.h>
2424
#include <math.h>
@@ -94,9 +94,9 @@ static double benchmark1( int iterations, int N ) {
9494
double t;
9595
int i;
9696

97-
stdlib_strided_sfill( N, 0.5, x, 1 );
98-
stdlib_strided_sfill( N, 0.5, y, 1 );
99-
stdlib_strided_sfill( N*N, 1.0, A, 1 );
97+
stdlib_strided_dfill( N, 0.5, x, 1 );
98+
stdlib_strided_dfill( N, 0.5, y, 1 );
99+
stdlib_strided_dfill( N*N, 1.0, A, 1 );
100100
t = tic();
101101
for ( i = 0; i < iterations; i++ ) {
102102
c_dsyr2( CblasRowMajor, CblasUpper, N, 1.0, x, 1, y, 1, A, N );
@@ -123,12 +123,13 @@ static double benchmark2( int iterations, int N ) {
123123
double elapsed;
124124
double A[ N*N ];
125125
double x[ N ];
126+
double y[ N ];
126127
double t;
127128
int i;
128129

129-
stdlib_strided_sfill( N, 0.5, x, 1 );
130-
stdlib_strided_sfill( N, 0.5, y, 1 );
131-
stdlib_strided_sfill( N*N, 1.0, A, 1 );
130+
stdlib_strided_dfill( N, 0.5, x, 1 );
131+
stdlib_strided_dfill( N, 0.5, y, 1 );
132+
stdlib_strided_dfill( N*N, 1.0, A, 1 );
132133
t = tic();
133134
for ( i = 0; i < iterations; i++ ) {
134135
c_dsyr2_ndarray( CblasUpper, N, 1.0, x, 1, 0, y, 1, 0, A, N, 1, 0 );

lib/node_modules/@stdlib/blas/base/dsyr2/manifest.json

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"@stdlib/napi/argv-int64",
5252
"@stdlib/napi/argv-int32",
5353
"@stdlib/napi/argv-strided-float64array",
54-
"@stdlib/napi/argv-double"
54+
"@stdlib/ndarray/base/assert/is-row-major"
5555
]
5656
},
5757
{
@@ -246,7 +246,9 @@
246246
"@stdlib/napi/argv-int64",
247247
"@stdlib/napi/argv-int32",
248248
"@stdlib/napi/argv-strided-float64array",
249-
"@stdlib/napi/argv-double"
249+
"@stdlib/napi/argv-double",
250+
"@stdlib/strided/base/stride2offset",
251+
"@stdlib/ndarray/base/assert/is-row-major"
250252
]
251253
},
252254
{
@@ -264,8 +266,10 @@
264266
"libpath": [],
265267
"dependencies": [
266268
"@stdlib/blas/base/shared",
267-
"@stdlib/blas/ext/base/sfill",
268-
"@stdlib/math/base/special/floor"
269+
"@stdlib/blas/ext/base/dfill",
270+
"@stdlib/math/base/special/floor",
271+
"@stdlib/strided/base/stride2offset",
272+
"@stdlib/ndarray/base/assert/is-row-major"
269273
]
270274
},
271275
{
@@ -282,7 +286,9 @@
282286
"libraries": [],
283287
"libpath": [],
284288
"dependencies": [
285-
"@stdlib/blas/base/shared"
289+
"@stdlib/blas/base/shared",
290+
"@stdlib/strided/base/stride2offset",
291+
"@stdlib/ndarray/base/assert/is-row-major"
286292
]
287293
},
288294

@@ -300,7 +306,9 @@
300306
"libraries": [],
301307
"libpath": [],
302308
"dependencies": [
303-
"@stdlib/blas/base/shared"
309+
"@stdlib/blas/base/shared",
310+
"@stdlib/strided/base/stride2offset",
311+
"@stdlib/ndarray/base/assert/is-row-major"
304312
]
305313
}
306314
]

lib/node_modules/@stdlib/blas/base/dsyr2/src/dsyr2.c

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@
1616
* limitations under the License.
1717
*/
1818

19-
#include "stdlib/blas/base/ssyr2.h"
19+
#include "stdlib/blas/base/dsyr2.h"
2020
#include "stdlib/blas/base/shared.h"
21+
#include "stdlib/strided/base/stride2offset.h"
22+
#include "stdlib/ndarray/base/assert/is_row_major.h"
2123

2224
/**
2325
* Performs the symmetric rank 2 operation `A = α*x*y^T + α*y*x^T + A`.
@@ -26,10 +28,10 @@
2628
* @param uplo specifies whether the upper or lower triangular part of the symmetric matrix `A` should be referenced
2729
* @param N number of elements along each dimension of `A`
2830
* @param alpha scalar
29-
* @param x first input vector
30-
* @param strideX `x` stride length
31-
* @param y second input vector
32-
* @param strideY `y` stride length
31+
* @param X first input vector
32+
* @param strideX `X` stride length
33+
* @param Y second input vector
34+
* @param strideY `Y` stride length
3335
* @param A input matrix
3436
* @param LDA stride of the first dimension of `A` (a.k.a., leading dimension of the matrix `A`)
3537
*/
@@ -58,22 +60,21 @@ void API_SUFFIX(c_dsyr2)( const CBLAS_LAYOUT order, const CBLAS_UPLO uplo, const
5860
/**
5961
* Performs the symmetric rank 2 operation `A = α*x*y^T + α*y*x^T + A` using alternative indexing semantics.
6062
*
61-
* @param order storage layout
6263
* @param uplo specifies whether the upper or lower triangular part of the symmetric matrix `A` should be referenced
6364
* @param N number of elements along each dimension of `A`
6465
* @param alpha scalar
65-
* @param x first input vector
66-
* @param strideX `x` stride length
66+
* @param X first input vector
67+
* @param strideX `X` stride length
6768
* @param offsetX starting index of `X`
68-
* @param y second input vector
69-
* @param strideY `y` stride length
69+
* @param Y second input vector
70+
* @param strideY `Y` stride length
7071
* @param offsetY starting index of `Y`
7172
* @param A input matrix
7273
* @param strideA1 stride of the first dimension of `A`
7374
* @param strideA2 stride of the second dimension of `A`
7475
* @param offsetA starting index of `A`
7576
*/
76-
void API_SUFFIX(c_dsyr2)( const CBLAS_LAYOUT order, const CBLAS_UPLO uplo, const CBLAS_INT N, const double alpha, const double *X, const CBLAS_INT strideX, const CBLAS_INT offsetX, const double *Y, const CBLAS_INT strideY, const CBLAS_INT offsetY, double *A, const CBLAS_INT strideA1, const CBLAS_INT strideA2, const CBLAS_INT offsetA ) {
77+
void API_SUFFIX(c_dsyr2_ndarray)( const CBLAS_UPLO uplo, const CBLAS_INT N, const double alpha, const double *X, const CBLAS_INT strideX, const CBLAS_INT offsetX, const double *Y, const CBLAS_INT strideY, const CBLAS_INT offsetY, double *A, const CBLAS_INT strideA1, const CBLAS_INT strideA2, const CBLAS_INT offsetA ) {
7778
CBLAS_INT isrm;
7879
CBLAS_INT ix0;
7980
CBLAS_INT ix1;
@@ -119,7 +120,7 @@ void API_SUFFIX(c_dsyr2)( const CBLAS_LAYOUT order, const CBLAS_UPLO uplo, const
119120
ix0 = ox;
120121
iy0 = oy;
121122
for ( i0 = 0; i0 <= i1; i0++ ) {
122-
A[ oa+(sa0*i0) ] += ( x[ ix0 ] * tmp1 ) + ( y[ iy0 ] * tmp2 ); // eslint-disable-line max-len
123+
A[ oa+(sa0*i0) ] += ( X[ ix0 ] * tmp1 ) + ( Y[ iy0 ] * tmp2 ); // eslint-disable-line max-len
123124
ix0 += strideX;
124125
iy0 += strideY;
125126
}
@@ -138,7 +139,7 @@ void API_SUFFIX(c_dsyr2)( const CBLAS_LAYOUT order, const CBLAS_UPLO uplo, const
138139
ix0 = ix1;
139140
iy0 = iy1;
140141
for ( i0 = i1; i0 < N; i0++ ) {
141-
A[ oa+(sa0*i0) ] += ( x[ ix0 ] * tmp1 ) + ( y[ iy0 ] * tmp2 );
142+
A[ oa+(sa0*i0) ] += ( X[ ix0 ] * tmp1 ) + ( Y[ iy0 ] * tmp2 );
142143
ix0 += strideX;
143144
iy0 += strideY;
144145
}

0 commit comments

Comments
 (0)