This interface overloads the trace
interface from stdlib_linalg
to compute the trace of a matrix of type Strang
.
tr = trace(A)
A
: Matrix of Strang
type. It is an intent(in)
argument.
tr
: Trace of the matrix.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(Strang), | intent(in) | :: | A |
Input matrix. |
Trace of the matrix.