diag Interface

public interface diag

diag creates diagonal matrix or get the diagonal of a matrix.


Contents


Functions

private module function diag1_dp(A) result(diag)

Arguments

Type IntentOptional AttributesName
real(kind=dp), intent(in), dimension(:, :):: A

Return Value real(kind=dp), dimension(:), allocatable

private module function diag1_sp(A) result(diag)

Arguments

Type IntentOptional AttributesName
real(kind=sp), intent(in), dimension(:, :):: A

Return Value real(kind=sp), dimension(:), allocatable

private module function diag2_dp(x) result(diag)

Arguments

Type IntentOptional AttributesName
real(kind=dp), intent(in), dimension(:):: x

Return Value real(kind=dp), dimension(:, :), allocatable

private module function diag2_sp(x) result(diag)

Arguments

Type IntentOptional AttributesName
real(kind=sp), intent(in), dimension(:):: x

Return Value real(kind=sp), dimension(:, :), allocatable