trace Interface

public interface trace

Public interface for functions that calculate a matrix trace.


Contents


Module Procedures

public pure function matrix_trace(A) result(r)

Calculate the trace of a general complex matrix.

Arguments

Type IntentOptional AttributesName
complex(kind=wp), intent(in), dimension(:,:):: A

Matrix [n×m]

Return Value complex(kind=wp)

r = Tr(A)