linalg 1.6.1
A linear algebra library that provides a user-friendly interface to several BLAS and LAPACK routines.
Loading...
Searching...
No Matches
linalg_core::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 313 of file linalg_core.f90.


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