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
- <spanclass="package-name">[`@stdlib/assert/is-array`][@stdlib/assert/is-array]</span><spanclass="delimiter">: </span><spanclass="description">test if a value is an array.</span>
143
143
- <spanclass="package-name">[`@stdlib/assert/is-number-array`][@stdlib/assert/is-number-array]</span><spanclass="delimiter">: </span><spanclass="description">test if a value is an array-like object of numbers.</span>
144
-
- <spanclass="package-name">[`@stdlib/assert/is-typed-array`][@stdlib/assert/is-typed-array]</span><spanclass="delimiter">: </span><spanclass="description">test if a value is a typed array.</span>
144
+
- <spanclass="package-name">[`@stdlib/assert/is-typed-array`][@stdlib/assert/is-typed-array]</span><spanclass="delimiter">: </span><spanclass="description">test if a value is a built-in typed array.</span>
- <spanclass="package-name">[`@stdlib/assert/is-typed-array`][@stdlib/assert/is-typed-array]</span><spanclass="delimiter">: </span><spanclass="description">test if a value is a typed array.</span>
118
+
- <spanclass="package-name">[`@stdlib/assert/is-typed-array`][@stdlib/assert/is-typed-array]</span><spanclass="delimiter">: </span><spanclass="description">test if a value is a built-in typed array.</span>
119
119
- <spanclass="package-name">[`@stdlib/assert/is-uint8array`][@stdlib/assert/is-uint8array]</span><spanclass="delimiter">: </span><spanclass="description">test if a value is a Uint8Array.</span>
@@ -35,8 +35,8 @@ var base = require( './base.js' );
35
35
* Performs the matrix-matrix operation `C = α*op(A)*op(B) + β*C` where `op(X)` is either `op(X) = X` or `op(X) = X^T`, `α` and `β` are scalars, `A`, `B`, and `C` are matrices, with `op(A)` an `M` by `K` matrix, `op(B)` a `K` by `N` matrix, and `C` an `M` by `N` matrix.
36
36
*
37
37
* @param {string} order - storage layout
38
-
* @param {string} transA - specifies whether `A` should be transposed, conjugate-transposed, or not transposed
39
-
* @param {string} transB - specifies whether `B` should be transposed, conjugate-transposed, or not transposed
38
+
* @param {(integer|string)} transA - specifies whether `A` should be transposed, conjugate-transposed, or not transposed
39
+
* @param {(integer|string)} transB - specifies whether `B` should be transposed, conjugate-transposed, or not transposed
40
40
* @param {NonNegativeInteger} M - number of rows in the matrix `op(A)` and in the matrix `C`
41
41
* @param {NonNegativeInteger} N - number of columns in the matrix `op(B)` and in the matrix `C`
42
42
* @param {NonNegativeInteger} K - number of columns in the matrix `op(A)` and number of rows in the matrix `op(B)`
@@ -81,14 +81,18 @@ function dgemm( order, transA, transB, M, N, K, alpha, A, LDA, B, LDB, beta, C,
81
81
varsb2;
82
82
varsc1;
83
83
varsc2;
84
+
varta;
85
+
vartb;
84
86
85
87
if(!isLayout(order)){
86
88
thrownewTypeError(format('invalid argument. First argument must be a valid order. Value: `%s`.',order));
87
89
}
88
-
if(!isMatrixTranspose(transA)){
90
+
ta=resolveStr(transA);
91
+
if(ta===null){
89
92
thrownewTypeError(format('invalid argument. Second argument must be a valid transpose operation. Value: `%s`.',transA));
90
93
}
91
-
if(!isMatrixTranspose(transB)){
94
+
tb=resolveStr(transB);
95
+
if(tb===null){
92
96
thrownewTypeError(format('invalid argument. Third argument must be a valid transpose operation. Value: `%s`.',transB));
93
97
}
94
98
if(M<0){
@@ -147,7 +151,7 @@ function dgemm( order, transA, transB, M, N, K, alpha, A, LDA, B, LDB, beta, C,
@@ -30,8 +30,8 @@ var base = require( './base.js' );
30
30
/**
31
31
* Performs the matrix-matrix operation `C = α*op(A)*op(B) + β*C` where `op(X)` is either `op(X) = X` or `op(X) = X^T`, `α` and `β` are scalars, `A`, `B`, and `C` are matrices, with `op(A)` an `M` by `K` matrix, `op(B)` a `K` by `N` matrix, and `C` an `M` by `N` matrix.
32
32
*
33
-
* @param {string} transA - specifies whether `A` should be transposed, conjugate-transposed, or not transposed
34
-
* @param {string} transB - specifies whether `B` should be transposed, conjugate-transposed, or not transposed
33
+
* @param {(integer|string)} transA - specifies whether `A` should be transposed, conjugate-transposed, or not transposed
34
+
* @param {(integer|string)} transB - specifies whether `B` should be transposed, conjugate-transposed, or not transposed
35
35
* @param {NonNegativeInteger} M - number of rows in the matrix `op(A)` and in the matrix `C`
36
36
* @param {NonNegativeInteger} N - number of columns in the matrix `op(B)` and in the matrix `C`
37
37
* @param {NonNegativeInteger} K - number of columns in the matrix `op(A)` and number of rows in the matrix `op(B)`
@@ -69,10 +69,15 @@ var base = require( './base.js' );
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/blas/ext/base/README.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,7 @@ var o = ns;
44
44
<divclass="namespace-toc">
45
45
46
46
- <spanclass="signature">[`cfill( N, alpha, x, strideX )`][@stdlib/blas/ext/base/cfill]</span><spanclass="delimiter">: </span><spanclass="description">fill a single-precision complex floating-point strided array with a specified scalar constant.</span>
47
+
- <spanclass="signature">[`cindexOfColumn( order, M, N, A, LDA, x, strideX, workspace, strideW )`][@stdlib/blas/ext/base/cindex-of-column]</span><spanclass="delimiter">: </span><spanclass="description">return the index of the first column in a single-precision complex floating-point input matrix which has the same elements as a provided search vector.</span>
47
48
- <spanclass="signature">[`cindexOfRow( order, M, N, A, LDA, x, strideX, workspace, strideW )`][@stdlib/blas/ext/base/cindex-of-row]</span><spanclass="delimiter">: </span><spanclass="description">return the index of the first row in a single-precision complex floating-point input matrix which has the same elements as a provided search vector.</span>
48
49
- <spanclass="signature">[`cindexOf( N, searchElement, x, strideX )`][@stdlib/blas/ext/base/cindex-of]</span><spanclass="delimiter">: </span><spanclass="description">return the first index of a specified search element in a single-precision complex floating-point strided array.</span>
49
50
- <spanclass="signature">[`clastIndexOfRow( order, M, N, A, LDA, x, strideX, workspace, strideW )`][@stdlib/blas/ext/base/clast-index-of-row]</span><spanclass="delimiter">: </span><spanclass="description">return the index of the last row in a single-precision complex floating-point input matrix which has the same elements as a provided search vector.</span>
@@ -233,6 +234,7 @@ var o = ns;
233
234
- <spanclass="signature">[`szeroTo( N, x, strideX )`][@stdlib/blas/ext/base/szero-to]</span><spanclass="delimiter">: </span><spanclass="description">fill a single-precision floating-point strided array with linearly spaced numeric elements which increment by `1` starting from zero.</span>
234
235
- <spanclass="signature">[`wasm`][@stdlib/blas/ext/base/wasm]</span><spanclass="delimiter">: </span><spanclass="description">extensions to basic linear algebra subprograms (BLAS) compiled to WebAssembly.</span>
235
236
- <spanclass="signature">[`zfill( N, alpha, x, strideX )`][@stdlib/blas/ext/base/zfill]</span><spanclass="delimiter">: </span><spanclass="description">fill a double-precision complex floating-point strided array with a specified scalar constant.</span>
237
+
- <spanclass="signature">[`zindexOfColumn( order, M, N, A, LDA, x, strideX, workspace, strideW )`][@stdlib/blas/ext/base/zindex-of-column]</span><spanclass="delimiter">: </span><spanclass="description">return the index of the first column in a double-precision complex floating-point input matrix which has the same elements as a provided search vector.</span>
236
238
- <spanclass="signature">[`zindexOfRow( order, M, N, A, LDA, x, strideX, workspace, strideW )`][@stdlib/blas/ext/base/zindex-of-row]</span><spanclass="delimiter">: </span><spanclass="description">return the index of the first row in a double-precision complex floating-point input matrix which has the same elements as a provided search vector.</span>
237
239
- <spanclass="signature">[`zindexOf( N, searchElement, x, strideX )`][@stdlib/blas/ext/base/zindex-of]</span><spanclass="delimiter">: </span><spanclass="description">return the first index of a specified search element in a double-precision complex floating-point strided array.</span>
238
240
- <spanclass="signature">[`zlastIndexOfRow( order, M, N, A, LDA, x, strideX, workspace, strideW )`][@stdlib/blas/ext/base/zlast-index-of-row]</span><spanclass="delimiter">: </span><spanclass="description">return the index of the last row in a double-precision complex floating-point input matrix which has the same elements as a provided search vector.</span>
0 commit comments