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

![]() |
Input Matrix specifies a square or rectangular matrix. If Input Matrix is empty, this VI sets trace to NaN. |
![]() |
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 of Input Matrix. |
![]() |
error out contains error information. This output provides standard error out functionality. |
Trace (SGL)

![]() |
Input Matrix specifies a square or rectangular matrix. If Input Matrix is empty, this VI sets trace to NaN. |
![]() |
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 of Input Matrix. |
![]() |
error out contains error information. This output provides standard error out functionality. |
Trace (CDB)

![]() |
Input Matrix specifies a square or rectangular matrix. If Input Matrix is empty, this VI sets trace to NaN + NaNi. |
![]() |
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 of Input Matrix. |
![]() |
error out contains error information. This output provides standard error out functionality. |
Trace (CSG)

![]() |
Input Matrix specifies a square or rectangular matrix. If Input Matrix is empty, this VI sets trace to NaN + NaNi. |
![]() |
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 of Input Matrix. |
![]() |
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 |
Refer to the Details section in the Trace VI for more details about this VI.









