Skip to content

Commit 383d6af

Browse files
committed
test: remove strideA1 and strideA2 validations and tests
--- 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: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 0e99a05 commit 383d6af

2 files changed

Lines changed: 0 additions & 64 deletions

File tree

lib/node_modules/@stdlib/blas/base/ctrsv/lib/ndarray.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ var base = require( './base.js' );
4747
* @throws {TypeError} second argument must be a valid transpose operation
4848
* @throws {TypeError} third argument must be a valid diagonal type
4949
* @throws {RangeError} fourth argument must be a nonnegative integer
50-
* @throws {RangeError} sixth argument must be non-zero
51-
* @throws {RangeError} seventh argument must be non-zero
5250
* @throws {RangeError} tenth argument must be non-zero
5351
* @returns {Complex64Array} `x`
5452
*
@@ -74,12 +72,6 @@ function ctrsv( uplo, trans, diag, N, A, strideA1, strideA2, offsetA, x, strideX
7472
if ( N < 0 ) {
7573
throw new RangeError( format( 'invalid argument. Fourth argument must be a nonnegative integer. Value: `%d`.', N ) );
7674
}
77-
if ( strideA1 === 0 ) {
78-
throw new RangeError( format( 'invalid argument. Sixth argument must be non-zero. Value: `%d`.', strideA1 ) );
79-
}
80-
if ( strideA2 === 0 ) {
81-
throw new RangeError( format( 'invalid argument. Seventh argument must be non-zero. Value: `%d`.', strideA2 ) );
82-
}
8375
if ( strideX === 0 ) {
8476
throw new RangeError( format( 'invalid argument. Tenth argument must be non-zero. Value: `%d`.', strideX ) );
8577
}

lib/node_modules/@stdlib/blas/base/ctrsv/test/test.ndarray.js

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -204,62 +204,6 @@ tape( 'the function throws an error if provided an invalid fourth argument', fun
204204
}
205205
});
206206

207-
tape( 'the function throws an error if provided an invalid sixth argument', function test( t ) {
208-
var values;
209-
var data;
210-
var i;
211-
var a;
212-
var x;
213-
214-
data = rlntnu;
215-
216-
a = new Complex64Array( data.A );
217-
x = new Complex64Array( data.x );
218-
219-
values = [
220-
0
221-
];
222-
223-
for ( i = 0; i < values.length; i++ ) {
224-
t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] );
225-
}
226-
t.end();
227-
228-
function badValue( value ) {
229-
return function badValue() {
230-
ctrsv( data.uplo, data.trans, data.diag, data.N, a, value, data.strideA2, data.offsetA, x, data.strideX, data.offsetX );
231-
};
232-
}
233-
});
234-
235-
tape( 'the function throws an error if provided an invalid seventh argument', function test( t ) {
236-
var values;
237-
var data;
238-
var i;
239-
var a;
240-
var x;
241-
242-
data = rlntnu;
243-
244-
a = new Complex64Array( data.A );
245-
x = new Complex64Array( data.x );
246-
247-
values = [
248-
0
249-
];
250-
251-
for ( i = 0; i < values.length; i++ ) {
252-
t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] );
253-
}
254-
t.end();
255-
256-
function badValue( value ) {
257-
return function badValue() {
258-
ctrsv( data.uplo, data.trans, data.diag, data.N, a, data.strideA1, value, data.offsetA, x, data.strideX, data.offsetX );
259-
};
260-
}
261-
});
262-
263207
tape( 'the function throws an error if provided an invalid tenth argument', function test( t ) {
264208
var values;
265209
var data;

0 commit comments

Comments
 (0)