Enum Class Diag

java.lang.Object
java.lang.Enum<Diag>
smile.math.blas.Diag
All Implemented Interfaces:
Serializable, Comparable<Diag>, Constable

public enum Diag extends Enum<Diag>
The flag if a triangular matrix has unit diagonal elements. Some LAPACK routines have an option to handle unit triangular matrices (that is, triangular matrices with diagonal elements = 1). If the matrix is unit triangular, the diagonal elements of the matrix need not be stored, and the corresponding array elements are not referenced by the LAPACK routines. The storage scheme for the rest of the matrix (whether conventional, packed or band) remains unchanged.
  • Enum Constant Details

    • NON_UNIT

      public static final Diag NON_UNIT
      Non-unit triangular.
    • UNIT

      public static final Diag UNIT
      Unit triangular.
  • Method Details

    • values

      public static Diag[] 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 Diag 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
    • blas

      public int blas()
      Returns the int value for BLAS.
      Returns:
      the int value for BLAS.
    • lapack

      public byte lapack()
      Returns the value for LAPACK.
      Returns:
      the value for LAPACK.