Documentation of 'org.ejml.interfaces.decomposition.SingularValueDecomposition' Java class
SingularValueDecomposition
org.ejml.interfaces.decomposition

Interface SingularValueDecomposition<T extends Matrix>

    • Method Detail

      • getSingularValues

        double[] getSingularValues()
        Returns the singular values. This is the diagonal elements of the W matrix in the decomposition. Ordering of singular values is not guaranteed..
        Returns:
        Singular values. Note this array can be longer than the number of singular values. Extra elements have no meaning.
      • numberOfSingularValues

        int numberOfSingularValues()
        The number of singular values in the matrix. This is equal to the length of the smallest side.
        Returns:
        Number of singular values in the matrix.
      • isCompact

        boolean isCompact()
        If true then compact matrices are returned.
        Returns:
        true if results use compact notation.
      • getU

        T getU(T U,
               boolean transposed)

        Returns the orthogonal 'U' matrix.

        Internally the SVD algorithm might compute U transposed or it might not. To avoid an unnecessary double transpose the option is provided to select if the transpose is returned.

        Parameters:
        U - Optional storage for U. If null a new instance or internally maintained matrix is returned. Modified.
        transposed - If the returned U is transposed.
        Returns:
        An orthogonal matrix.
      • getV

        T getV(T V,
               boolean transposed)

        Returns the orthogonal 'V' matrix.

        Internally the SVD algorithm might compute V transposed or it might not. To avoid an unnecessary double transpose the option is provided to select if the transpose is returned.

        Parameters:
        V - Optional storage for v. If null a new instance or internally maintained matrix is returned. Modified.
        transposed - If the returned V is transposed.
        Returns:
        An orthogonal matrix.
      • getW

        T getW(T W)
        Returns a diagonal matrix with the singular values. Order of the singular values is not guaranteed.
        Parameters:
        W - Optional storage for W. If null a new instance or internally maintained matrix is returned. Modified.
        Returns:
        Diagonal matrix with singular values along the diagonal.
      • numRows

        int numRows()
        Number of rows in the decomposed matrix.
        Returns:
        Number of rows in the decomposed matrix.
      • numCols

        int numCols()
        Number of columns in the decomposed matrix.
        Returns:
        Number of columns in the decomposed matrix.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.