mattrace Function

public function mattrace(a) result(b)

returns the trace of matrix A

Arguments

Type IntentOptional Attributes Name
real(kind=long), intent(in) :: a(:,:)

Return Value real(kind=long)