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

Extracts the diagonal of a matrix. More...

Public Member Functions

 extract_diagonal_dbl
 
 extract_diagonal_cmplx
 
 extract_diagonal_csr
 

Detailed Description

Extracts the diagonal of a matrix.

Syntax
subroutine extract_diagonal(real(real64) a(:,:), real(real64) diag(:), optional class(errors) err)
subroutine extract_diagonal(complex(real64) a(:,:), complex(real64) diag(:), optional class(errors) err)
subroutine extract_diagonal(class(csr_matrix) a, real(real64) diag(:), optional class(errors) err)
Parameters
[in]aThe M-by-N matrix.
[out]diagThe MIN(M, N) element array for the diagonal elements.
[in,out]errAn optional errors-based object that if provided can be used to retrieve information relating to any errors encountered during execution. If not provided, a default implementation of the errors class is used internally to provide error handling. Possible errors and warning messages that may be encountered are as follows.
  • LA_ARRAY_SIZE_ERROR: Occurs if @diag is not sized correctly.

Definition at line 4210 of file linalg.f90.


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