Package org.ejml.data

Enum Class MatrixType

java.lang.Object
java.lang.Enum<MatrixType>
org.ejml.data.MatrixType
All Implemented Interfaces:
Serializable, Comparable<MatrixType>, Constable

public enum MatrixType extends Enum<MatrixType>
Specifies that type of data structure a matrix is encoded with.
  • Enum Constant Details

  • Method Details

    • values

      public static MatrixType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MatrixType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • lookup

      public static MatrixType lookup(Class<?> type)
    • lookup

      public static MatrixType lookup(boolean dense, boolean real, int bits)
      Looks up the default matrix type for the specified features
    • isReal

      public boolean isReal()
    • isFixed

      public boolean isFixed()
    • isDense

      public boolean isDense()
    • getBits

      public int getBits()
    • getClassType

      public Class getClassType()
    • create

      public Matrix create(int rows, int cols)