Trace VI
- Updated2023-02-21
- 3 minute(s) read
Trace VI
Owning Palette: Sparse Linear Algebra VIs
Requires: Multicore Analysis and Sparse Matrix Toolkit
Calculates the trace of a sparse matrix.
Wire data to the Sparse Matrix input to determine the polymorphic instance to use or manually select the instance.
Trace (DBL)

![]() |
Sparse Matrix specifies the input sparse matrix. Sparse Matrix must not be empty. |
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. |
![]() |
trace returns the sum of the main diagonal in Sparse Matrix. If any error occurs, trace returns NaN. |
![]() |
error out contains error information. This output provides standard error out functionality. |
Trace (SGL)

![]() |
Sparse Matrix specifies the input sparse matrix. Sparse Matrix must not be empty. |
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. |
![]() |
trace returns the sum of the main diagonal in Sparse Matrix. If any error occurs, trace returns NaN. |
![]() |
error out contains error information. This output provides standard error out functionality. |
Trace (CDB)

![]() |
Sparse Matrix specifies the input sparse matrix. Sparse Matrix must not be empty. |
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. |
![]() |
trace returns the sum of the main diagonal in Sparse Matrix. If any error occurs, trace returns NaN + NaNi. |
![]() |
error out contains error information. This output provides standard error out functionality. |
Trace (CSG)

![]() |
Sparse Matrix specifies the input sparse matrix. Sparse Matrix must not be empty. |
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. |
![]() |
trace returns the sum of the main diagonal in Sparse Matrix. If any error occurs, trace returns NaN + NaNi. |
![]() |
error out contains error information. This output provides standard error out functionality. |
Trace Details
The following table lists the support characteristics of this VI.
| Supported on RT targets | Yes |
| Suitable for bounded execution times on RT | Yes |






