Package org.ejml.data

Enum MatrixType

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

public enum MatrixType
extends java.lang.Enum<MatrixType>
Specifies that type of data structure a matrix is encoded with.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants 
    Enum Constant Description
    CDRM  
    CSCC  
    DDRM  
    DSCC  
    DTRIPLET  
    FDRM  
    FSCC  
    FTRIPLET  
    UNSPECIFIED  
    ZDRM  
    ZSCC  
  • Method Summary

    Modifier and Type Method Description
    Matrix create​(int rows, int cols)  
    int getBits()  
    java.lang.Class getClassType()  
    boolean isDense()  
    boolean isFixed()  
    boolean isReal()  
    static MatrixType lookup​(boolean dense, boolean real, int bits)
    Looks up the default matrix type for the specified features
    static MatrixType lookup​(java.lang.Class<?> type)  
    static MatrixType valueOf​(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    static MatrixType[] values()
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

  • Method Details

    • values

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

      public static MatrixType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
      java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
      java.lang.NullPointerException - if the argument is null
    • lookup

      public static MatrixType lookup​(java.lang.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 java.lang.Class getClassType()
    • create

      public Matrix create​(int rows, int cols)