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