trace Interface

public interface trace

This interface overloads the trace interface from stdlib_linalg to compute the trace of a matrix of type SymTridiagonal.

Syntax

   tr = trace(A)

Arguments

  • A : Matrix of SymTridiagonal type. It is an intent(in) argument.

  • tr: Trace of the matrix.


Functions

private pure module function trace_rdp(A) result(tr)

Compute the trace of a SymTridiagonal matrix.

Arguments

Type IntentOptional Attributes Name
type(SymTridiagonal), intent(in) :: A

Input matrix.

Return Value real(kind=dp)

Trace of the matrix.