Skip to content

Commit f34d2f7

Browse files
committed
chore: update implementation
--- 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: na - 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 e2f8320 commit f34d2f7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/node_modules/@stdlib/blas/base/dgemv/benchmark/c/benchmark.length.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ static double benchmark1( int iterations, int len ) {
104104
double t;
105105
int i;
106106

107-
for ( i = 0, j = 0; i < N; i++, j += 2 ) {
107+
for ( i = 0, j = 0; i < len; i++, j += 2 ) {
108108
x[ i ] = ( rand_double()*20.0 ) - 10.0;
109109
y[ i ] = ( rand_double()*20.0 ) - 10.0;
110110
A[ j ] = ( rand_double()*20.0 ) - 10.0;
@@ -139,8 +139,9 @@ static double benchmark2( int iterations, int len ) {
139139
double y[ len ];
140140
double t;
141141
int i;
142+
int j;
142143

143-
for ( i = 0, j = 0; i < N; i++, j += 2 ) {
144+
for ( i = 0, j = 0; i < len; i++, j += 2 ) {
144145
x[ i ] = ( rand_double()*20.0 ) - 10.0;
145146
y[ i ] = ( rand_double()*20.0 ) - 10.0;
146147
A[ j ] = ( rand_double()*20.0 ) - 10.0;

0 commit comments

Comments
 (0)