svdvals Interface

public interface svdvals

This interface overloads the svdvals interface from stdlib_linalg to compute the singular values of a Diagonal matrix .

Syntax

   s = svdvals(A)

Arguments

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

  • s : Vector of singular values sorted in decreasing order.


Functions

private pure module function svdvals_rdp(A) result(s)

Compute the singular values of a Diagonal matrix.

Arguments

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

Input matrix.

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

Singular values in descending order.