eigvalsh Interface

public interface eigvalsh

This interface overloads the eigvalsh interface from stdlib_linalg to compute the eigenvalues of a Strang matrix. Note that these eigenvalues are known analytically.

Syntax

   lambda = eigvalsh(A)

Arguments

  • A : Matrix of type Strang. 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.


Functions

private pure module function eigvalsh_rdp(A) result(lambda)

Arguments

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

Input matrix.

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

Eigenvalues.