Skip to content

Commit 491f0ef

Browse files
committed
chore: cleanup
--- 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: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: passed - 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: na - 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 9878d33 commit 491f0ef

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

lib/node_modules/@stdlib/lapack/base/dlarf1f/lib/base.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ function dlarf1f( side, M, N, V, strideV, offsetV, tau, C, strideC1, strideC2, o
9494
i -= strideV;
9595
}
9696
if ( side === 'left' ) {
97-
lastc = iladlc( lastv, N, C, strideC1, strideC2, offsetC ) + 1; // to account for the difference between zero-based and one-based indexing
97+
lastc = iladlc( lastv + 1, N, C, strideC1, strideC2, offsetC ) + 1; // to account for the difference between zero-based and one-based indexing
9898
} else {
99-
lastc = iladlr( M, lastv, C, strideC1, strideC2, offsetC ) + 1; // to account for the difference between zero-based and one-based indexing
99+
lastc = iladlr( M, lastv + 1, C, strideC1, strideC2, offsetC ) + 1; // to account for the difference between zero-based and one-based indexing
100100
}
101101
// lastc is zero if a matrix is filled with zeros
102102
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"M": 4,
77
"N": 3,
88

9-
"V": [ 1.0, 0.0, 0.0, 0.0 ],
9+
"V": [ 0.0, 0.0, 0.0, 0.0 ],
1010
"strideV": 1,
1111
"offsetV": 0,
1212

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"M": 4,
77
"N": 3,
88

9-
"V": [ 1.0, 0.0, 0.0, 0.0 ],
9+
"V": [ 0.0, 0.0, 0.0, 0.0 ],
1010
"strideV": 1,
1111
"offsetV": 0,
1212

lib/node_modules/@stdlib/lapack/base/dlarf1f/test/test.dlarf1f.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ var dlarf1f = require( './../lib/dlarf1f.js' );
3030
// FIXTURES //
3131

3232
var TAU_EQ_ZERO = require( './fixtures/tau_eq_zero.json' );
33-
var LEFT_LASTV_EQ_ONE_ROW_MAJOR = require( './fixtures/left_lastv_eq_one_row_major.json' );
34-
var LEFT_LASTV_EQ_ONE_COL_MAJOR = require( './fixtures/left_lastv_eq_one_col_major.json' );
35-
var LEFT_LASTV_GT_ONE_ROW_MAJOR = require( './fixtures/left_lastv_gt_one_row_major.json' );
36-
var LEFT_LASTV_GT_ONE_COL_MAJOR = require( './fixtures/left_lastv_gt_one_col_major.json' );
33+
var LEFT_LASTV_EQ_ZERO_ROW_MAJOR = require( './fixtures/left_lastv_eq_zero_row_major.json' );
34+
var LEFT_LASTV_EQ_ZERO_COL_MAJOR = require( './fixtures/left_lastv_eq_zero_col_major.json' );
35+
var LEFT_LASTV_GT_ZERO_ROW_MAJOR = require( './fixtures/left_lastv_gt_zero_row_major.json' );
36+
var LEFT_LASTV_GT_ZERO_COL_MAJOR = require( './fixtures/left_lastv_gt_zero_col_major.json' );
3737

3838

3939
// TESTS //
@@ -196,15 +196,15 @@ tape( 'the function returns the array unchanged if tau is zero', function test(
196196
t.end();
197197
});
198198

199-
tape( 'the function expected value for left side, lastv = 1 (row-major)', function test( t ) {
199+
tape( 'the function expected value for left side, lastv = 0 (row-major)', function test( t ) {
200200
var expectedC;
201201
var data;
202202
var work;
203203
var out;
204204
var V;
205205
var C;
206206

207-
data = LEFT_LASTV_EQ_ONE_ROW_MAJOR;
207+
data = LEFT_LASTV_EQ_ZERO_ROW_MAJOR;
208208

209209
V = new Float64Array( data.V );
210210
C = new Float64Array( data.C );
@@ -217,15 +217,15 @@ tape( 'the function expected value for left side, lastv = 1 (row-major)', functi
217217
t.end();
218218
});
219219

220-
tape( 'the function expected value for left side, lastv = 1 (column-major)', function test( t ) {
220+
tape( 'the function expected value for left side, lastv = 0 (column-major)', function test( t ) {
221221
var expectedC;
222222
var data;
223223
var work;
224224
var out;
225225
var V;
226226
var C;
227227

228-
data = LEFT_LASTV_EQ_ONE_COL_MAJOR;
228+
data = LEFT_LASTV_EQ_ZERO_COL_MAJOR;
229229

230230
V = new Float64Array( data.V );
231231
C = new Float64Array( data.C );
@@ -238,15 +238,15 @@ tape( 'the function expected value for left side, lastv = 1 (column-major)', fun
238238
t.end();
239239
});
240240

241-
tape( 'the function expected value for left side, lastv > 1 (row-major)', function test( t ) {
241+
tape( 'the function expected value for left side, lastv > 0 (row-major)', function test( t ) {
242242
var expectedC;
243243
var data;
244244
var work;
245245
var out;
246246
var V;
247247
var C;
248248

249-
data = LEFT_LASTV_GT_ONE_ROW_MAJOR;
249+
data = LEFT_LASTV_GT_ZERO_ROW_MAJOR;
250250

251251
V = new Float64Array( data.V );
252252
C = new Float64Array( data.C );
@@ -259,15 +259,15 @@ tape( 'the function expected value for left side, lastv > 1 (row-major)', functi
259259
t.end();
260260
});
261261

262-
tape( 'the function expected value for left side, lastv > 1 (column-major)', function test( t ) {
262+
tape( 'the function expected value for left side, lastv > 0 (column-major)', function test( t ) {
263263
var expectedC;
264264
var data;
265265
var work;
266266
var out;
267267
var V;
268268
var C;
269269

270-
data = LEFT_LASTV_GT_ONE_COL_MAJOR;
270+
data = LEFT_LASTV_GT_ZERO_COL_MAJOR;
271271

272272
V = new Float64Array( data.V );
273273
C = new Float64Array( data.C );

0 commit comments

Comments
 (0)