trace Interface

public interface trace

Public interface for functions that calculate a matrix trace.


Module Procedures

public pure function matrix_trace(A) result(r)

Calculates the trace of a general complex matrix.

Arguments

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

Matrix [n×m]

Return Value complex(kind=wp)

r = Tr(A)