eigh Interface

public interface eigh

This interface overloads the eigh interface from stdlib_linalg to compute the eigenvalues and eigenvectors of the Poisson2D matrix .

Syntax

   call eigh(A, lambda, vectors)

Arguments

  • A : Matrix of Poisson2D type. It is an intent(in) argument.

  • lambda: Rank-1 real array returning the eigenvalues of A in increasing order. It is an intent(out) argument.

  • vectors: Rank-2 real array returning the eigenvectors of A. It is an intent(out) argument.

Note

Both the eigenvalues and eigenvectors of the Poisson2D matrix are known analytically and can thus be constructed efficiently.


Subroutines

private module subroutine eigh_rdp(A, lambda, vectors)

Arguments

Type IntentOptional Attributes Name
type(Poisson2D), intent(in) :: A

Input matrix.

real(kind=dp), intent(out), allocatable, target :: lambda(:)

Eigenvalues.

real(kind=dp), intent(out), allocatable :: vectors(:,:)