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