GENEUS
Overview
Source Files
Modules
Procedures
Derived Types
Programs
vector_diag
Function
8 statements
Source File
matrix.f90
matrix_m
vector_diag
Contents
public pure function vector_diag(A) result(r)
Extracts the diagonal of a general complex matrix.
Arguments
Type
Intent
Optional
Attributes
Name
complex(kind=wp),
intent(in),
dimension(:, :)
::
A
Matrix [n×m]
Return Value
complex(kind=wp), dimension(min(size(A, 1), size(A, 2)))
r = Diag(A)