|Download Help (Windows Only)|
Owning Class: linalgebra
Requires: MathScript RT Module
c = trace(a)
Computes the sum of all diagonal elements in a matrix.
|a||Specifies a matrix.|
|c||Returns the sum of all diagonal elements in a. c is a scalar.|
The following table lists the support characteristics of this function.
|Supported in the LabVIEW Run-Time Engine||Yes|
|Supported on RT targets||Yes|
|Suitable for bounded execution times on RT||Not characterized|
C = trace(ones(3, 3))