A x B VI
- Updated2023-02-21
- 14 minute(s) read
A x B VI
Owning Palette: Sparse Linear Algebra VIs
Requires: Multicore Analysis and Sparse Matrix Toolkit
Computes the multiplication of two sparse matrices, a sparse matrix and a dense matrix, or a sparse matrix and a vector.
Sparse x Sparse (DBL)

![]() |
A specifies the first matrix. The number of columns in A must match the number of rows in B. |
![]() |
B specifies the second matrix. The number of rows in B must match the number of columns in A. |
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. |
![]() |
A x B returns the matrix multiplication result of A and B. |
![]() |
error out contains error information. This output provides standard error out functionality. |
Sparse x Sparse (SGL)

![]() |
A specifies the first matrix. The number of columns in A must match the number of rows in B. |
![]() |
B specifies the second matrix. The number of rows in B must match the number of columns in A. |
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. |
![]() |
A x B returns the matrix multiplication result of A and B. |
![]() |
error out contains error information. This output provides standard error out functionality. |
Sparse x Sparse (CDB)

![]() |
A specifies the first matrix. The number of columns in A must match the number of rows in B. |
![]() |
B specifies the second matrix. The number of rows in B must match the number of columns in A. |
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. |
![]() |
A x B returns the matrix multiplication result of A and B. |
![]() |
error out contains error information. This output provides standard error out functionality. |
Sparse x Sparse (CSG)

![]() |
A specifies the first matrix. The number of columns in A must match the number of rows in B. |
![]() |
B specifies the second matrix. The number of rows in B must match the number of columns in A. |
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. |
![]() |
A x B returns the matrix multiplication result of A and B. |
![]() |
error out contains error information. This output provides standard error out functionality. |
Sparse x Dense (DBL)

![]() |
A specifies the first matrix. The number of columns in A must match the number of rows in B. |
![]() |
B specifies the second matrix. The number of rows in B must match the number of columns in A. |
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. |
![]() |
A x B returns the matrix multiplication result of A and B. |
![]() |
error out contains error information. This output provides standard error out functionality. |
Sparse x Dense (SGL)

![]() |
A specifies the first matrix. The number of columns in A must match the number of rows in B. |
![]() |
B specifies the second matrix. The number of rows in B must match the number of columns in A. |
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. |
![]() |
A x B returns the matrix multiplication result of A and B. |
![]() |
error out contains error information. This output provides standard error out functionality. |
Sparse x Dense (CDB)

![]() |
A specifies the first matrix. The number of columns in A must match the number of rows in B. |
![]() |
B specifies the second matrix. The number of rows in B must match the number of columns in A. |
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. |
![]() |
A x B returns the matrix multiplication result of A and B. |
![]() |
error out contains error information. This output provides standard error out functionality. |
Sparse x Dense (CSG)

![]() |
A specifies the first matrix. The number of columns in A must match the number of rows in B. |
![]() |
B specifies the second matrix. The number of rows in B must match the number of columns in A. |
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. |
![]() |
A x B returns the matrix multiplication result of A and B. |
![]() |
error out contains error information. This output provides standard error out functionality. |
Dense x Sparse (DBL)

![]() |
A specifies the first matrix. The number of columns in A must match the number of rows in B. |
![]() |
B specifies the second matrix. The number of rows in B must match the number of columns in A. |
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. |
![]() |
A x B returns the matrix multiplication result of A and B. |
![]() |
error out contains error information. This output provides standard error out functionality. |
Dense x Sparse (SGL)

![]() |
A specifies the first matrix. The number of columns in A must match the number of rows in B. |
![]() |
B specifies the second matrix. The number of rows in B must match the number of columns in A. |
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. |
![]() |
A x B returns the matrix multiplication result of A and B. |
![]() |
error out contains error information. This output provides standard error out functionality. |
Dense x Sparse (CDB)

![]() |
A specifies the first matrix. The number of columns in A must match the number of rows in B. |
![]() |
B specifies the second matrix. The number of rows in B must match the number of columns in A. |
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. |
![]() |
A x B returns the matrix multiplication result of A and B. |
![]() |
error out contains error information. This output provides standard error out functionality. |
Dense x Sparse (CSG)

![]() |
A specifies the first matrix. The number of columns in A must match the number of rows in B. |
![]() |
B specifies the second matrix. The number of rows in B must match the number of columns in A. |
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. |
![]() |
A x B returns the matrix multiplication result of A and B. |
![]() |
error out contains error information. This output provides standard error out functionality. |
Sparse x Vector (DBL)

![]() |
A specifies a matrix. The number of columns in A must match the number of elements in Vector. |
![]() |
Vector specifies a vector. The number of elements in Vector must match the number of columns in A. |
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. |
![]() |
A x Vector returns the matrix multiplication result of A and Vector. |
![]() |
error out contains error information. This output provides standard error out functionality. |
Sparse x Vector (SGL)

![]() |
A specifies a matrix. The number of columns in A must match the number of elements in Vector. |
![]() |
Vector specifies a vector. The number of elements in Vector must match the number of columns in A. |
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. |
![]() |
A x Vector returns the matrix multiplication result of A and Vector. |
![]() |
error out contains error information. This output provides standard error out functionality. |
Sparse x Vector (CDB)

![]() |
A specifies a matrix. The number of columns in A must match the number of elements in Vector. |
![]() |
Vector specifies a vector. The number of elements in Vector must match the number of columns in A. |
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. |
![]() |
A x Vector returns the matrix multiplication result of A and Vector. |
![]() |
error out contains error information. This output provides standard error out functionality. |
Sparse x Vector (CSG)

![]() |
A specifies a matrix. The number of columns in A must match the number of elements in Vector. |
![]() |
Vector specifies a vector. The number of elements in Vector must match the number of columns in A. |
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. |
![]() |
A x Vector returns the matrix multiplication result of A and Vector. |
![]() |
error out contains error information. This output provides standard error out functionality. |
Vector x Sparse (DBL)

![]() |
Vector specifies a vector. The number of elements in Vector must match the number of rows in A. |
![]() |
A specifies a matrix. The number of rows in A must match the number of elements in Vector. |
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. |
![]() |
Vector x A returns the matrix multiplication result of Vector and A. |
![]() |
error out contains error information. This output provides standard error out functionality. |
Vector x Sparse (SGL)

![]() |
Vector specifies a vector. The number of elements in Vector must match the number of rows in A. |
![]() |
A specifies a matrix. The number of rows in A must match the number of elements in Vector. |
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. |
![]() |
Vector x A returns the matrix multiplication result of Vector and A. |
![]() |
error out contains error information. This output provides standard error out functionality. |
Vector x Sparse (CDB)

![]() |
Vector specifies a vector. The number of elements in Vector must match the number of rows in A. |
![]() |
A specifies a matrix. The number of rows in A must match the number of elements in Vector. |
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. |
![]() |
Vector x A returns the matrix multiplication result of Vector and A. |
![]() |
error out contains error information. This output provides standard error out functionality. |
Vector x Sparse (CSG)

![]() |
Vector specifies a vector. The number of elements in Vector must match the number of rows in A. |
![]() |
A specifies a matrix. The number of rows in A must match the number of elements in Vector. |
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. |
![]() |
Vector x A returns the matrix multiplication result of Vector and A. |
![]() |
error out contains error information. This output provides standard error out functionality. |
A x B Details
The following table lists the support characteristics of this VI.
| Supported on RT targets | Yes |
| Suitable for bounded execution times on RT | Yes (with exceptions). The following instances are exceptions:
|
Example
Refer to the Compare Dense and Sparse A x B VI in the labview\examples\Multicore Analysis and Sparse Matrix\Sparse Matrix directory for an example of using the A x B VI.



















