Subtract VI
- Updated2023-02-21
- 3 minute(s) read
Subtract VI
Owning Palette: Numeric VIs
Requires: Multicore Analysis and Sparse Matrix Toolkit
Computes the element-wise difference between two sparse matrices.
Wire data to the A and B inputs to determine the polymorphic instance to use or manually select the instance.
Subtract Sparse from Sparse (DBL)

![]() |
A specifies the first sparse matrix. The number of rows and columns in A must be equal to the number of row and columns in B, respectively. |
![]() |
B specifies the second sparse matrix. The number of rows and columns in B must be equal to the number of row and columns in A, respectively. |
![]() |
A-B returns the element-wise difference between A and B. |
Subtract Sparse from Sparse (SGL)

![]() |
A specifies the first sparse matrix. The number of rows and columns in A must be equal to the number of row and columns in B, respectively. |
![]() |
B specifies the second sparse matrix. The number of rows and columns in B must be equal to the number of row and columns in A, respectively. |
![]() |
A-B returns the element-wise difference between A and B. |
Subtract Sparse from Sparse (CDB)

![]() |
A specifies the first sparse matrix. The number of rows and columns in A must be equal to the number of row and columns in B, respectively. |
![]() |
B specifies the second sparse matrix. The number of rows and columns in B must be equal to the number of row and columns in A, respectively. |
![]() |
A-B returns the element-wise difference between A and B. |
Subtract Sparse from Sparse (CSG)

![]() |
A specifies the first sparse matrix. The number of rows and columns in A must be equal to the number of row and columns in B, respectively. |
![]() |
B specifies the second sparse matrix. The number of rows and columns in B must be equal to the number of row and columns in A, respectively. |
![]() |
A-B returns the element-wise difference between A and B. |
Subtract Details
The following table lists the support characteristics of this VI.
| Supported on RT targets | Yes |
| Suitable for bounded execution times on RT | No |

