linalg 1.7.2
A linear algebra library that provides a user-friendly interface to several BLAS and LAPACK routines.
Loading...
Searching...
No Matches
linalg::trace Interface Reference

Computes the trace of a matrix (the sum of the main diagonal elements). More...

Detailed Description

Computes the trace of a matrix (the sum of the main diagonal elements).

Syntax
real(real64) function trace(real(real64) x(:,:))
complex(real64) function trace(complex(real64) x(:,:))
Parameters
[in]xThe matrix on which to operate.
Returns
The trace of x.

Definition at line 487 of file linalg.f90.


The documentation for this interface was generated from the following file: