Class DecompositionFactory_ZDRM

java.lang.Object
org.ejml.dense.row.factory.DecompositionFactory_ZDRM

public class DecompositionFactory_ZDRM extends Object

Contains operations related to creating and evaluating the quality of common matrix decompositions. Except in specialized situations, matrix decompositions should be instantiated from this factory instead of being directly constructed. Low level implementations are more prone to changes and new algorithms will be automatically placed here.

  • Constructor Details

    • DecompositionFactory_ZDRM

      public DecompositionFactory_ZDRM()
  • Method Details

    • lu

      public static LUDecomposition_F64<ZMatrixRMaj> lu(int numRows, int numCols)

      Returns a LUDecomposition that has been optimized for the specified matrix size.

      Parameters:
      numRows - Number of rows the returned decomposition is optimized for.
      numCols - Number of columns that the returned decomposition is optimized for.
      Returns:
      LUDecomposition
    • qr

      public static QRDecomposition<ZMatrixRMaj> qr(int numRows, int numCols)

      Returns a QRDecomposition that has been optimized for the specified matrix size.

      Parameters:
      numRows - Number of rows the returned decomposition is optimized for.
      numCols - Number of columns that the returned decomposition is optimized for.
      Returns:
      QRDecomposition
    • chol

      public static CholeskyDecomposition_F64<ZMatrixRMaj> chol(int size, boolean lower)

      Returns a CholeskyDecomposition_F64 that has been optimized for the specified matrix size.

      Parameters:
      size - Number of rows and columns it should be optimized for
      lower - if true then it will be a lower cholesky. false for upper. Try lower.
      Returns:
      QRDecomposition
    • decomposeSafe

      public static boolean decomposeSafe(DecompositionInterface<ZMatrixRMaj> decomposition, ZMatrixRMaj a)
      Decomposes the input matrix 'a' and makes sure it isn't modified.