You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* // x => <Float64Array>[ 14.0, 8.0, 3.0 ]
245
334
*/
246
335
function dtrmv( order, uplo, trans, diag, N, A, LDA, x, strideX ) {
336
+
if ( !isLayout( order ) ) <spanclass="branch-0 cbranch-no" title="branch not covered" >{</span>
337
+
<spanclass="cstat-no" title="statement not covered" > throw new TypeError( format( 'invalid argument. First argument must be a valid order. Value: `%s`.', order ) );</span>
338
+
<spanclass="cstat-no" title="statement not covered" > }</span>
339
+
if ( !isMatrixTriangle( uplo ) ) <spanclass="branch-0 cbranch-no" title="branch not covered" >{</span>
340
+
<spanclass="cstat-no" title="statement not covered" > throw new TypeError( format( 'invalid argument. Second argument must specify whether the lower or upper triangular matrix is supplied. Value: `%s`.', uplo ) );</span>
341
+
<spanclass="cstat-no" title="statement not covered" > }</span>
342
+
if ( !isTransposeOperation( trans ) ) <spanclass="branch-0 cbranch-no" title="branch not covered" >{</span>
343
+
<spanclass="cstat-no" title="statement not covered" > throw new TypeError( format( 'invalid argument. Third argument must be a valid transpose operation. Value: `%s`.', trans ) );</span>
344
+
<spanclass="cstat-no" title="statement not covered" > }</span>
345
+
if ( !isDiagonal( diag ) ) <spanclass="branch-0 cbranch-no" title="branch not covered" >{</span>
346
+
<spanclass="cstat-no" title="statement not covered" > throw new TypeError( format( 'invalid argument. Fourth argument must be a valid diagonal type. Value: `%s`.', diag ) );</span>
347
+
<spanclass="cstat-no" title="statement not covered" > }</span>
348
+
if ( N < 0 ) <spanclass="branch-0 cbranch-no" title="branch not covered" >{</span>
349
+
<spanclass="cstat-no" title="statement not covered" > throw new RangeError( format( 'invalid argument. Fifth argument must be a nonnegative integer. Value: `%d`.', N ) );</span>
350
+
<spanclass="cstat-no" title="statement not covered" > }</span>
351
+
if ( LDA < max( 1, N ) ) <spanclass="branch-0 cbranch-no" title="branch not covered" >{</span>
352
+
<spanclass="cstat-no" title="statement not covered" > throw new RangeError( format( 'invalid argument. Seventh argument must be greater than or equal to max(1,%d). Value: `%d`.', N, LDA ) );</span>
353
+
<spanclass="cstat-no" title="statement not covered" > }</span>
354
+
if ( strideX === 0 ) <spanclass="branch-0 cbranch-no" title="branch not covered" >{</span>
355
+
<spanclass="cstat-no" title="statement not covered" > throw new RangeError( format( 'invalid argument. Ninth argument must be non-zero. Value: `%d`.', strideX ) );</span>
356
+
<spanclass="cstat-no" title="statement not covered" > }</span>
357
+
// Check if we can early return...
358
+
if ( N === 0 ) {
359
+
return x;
360
+
}
247
361
addon( resolveOrder( order ), resolveUplo( uplo ), resolveTrans( trans ), resolveDiag( diag ), N, A, LDA, x, strideX ); // eslint-disable-line max-len
0 commit comments