Enum Class SVDJob

java.lang.Object
java.lang.Enum<SVDJob>
smile.linalg.SVDJob
All Implemented Interfaces:
Serializable, Comparable<SVDJob>, Constable

public enum SVDJob extends Enum<SVDJob>
The option controlling which singular vectors are computed by LAPACK routines such as dgesdd and dgesvd.
  • ALL — all left (or right) singular vectors are computed.
  • COMPACT — the first min(m,n) singular vectors are computed.
  • OVERWRITE — the first min(m,n) singular vectors overwrite matrix A.
  • NO_VECTORS — no singular vectors are computed (values only).
  • Nested Class Summary

    Nested classes/interfaces inherited from class Enum

    Enum.EnumDesc<E>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    All left (or right) singular vectors are returned in the supplied matrix U (or Vt).
    The first min(m, n) singular vectors are returned in the supplied matrix U (or Vt).
    No singular vectors are computed.
    The first min(m, n) singular vectors are overwritten on the matrix A.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a human-readable description of this job option.
    static SVDJob
    fromLapack(byte value)
    Returns the SVDJob constant corresponding to the given LAPACK byte value.
    byte
    Returns the byte value for LAPACK.
    static SVDJob
    of(boolean vectors)
    Returns the appropriate SVDJob for a boolean flag.
    static SVDJob
    Returns the enum constant of this class with the specified name.
    static SVDJob[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class Object

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

    • ALL

      public static final SVDJob ALL
      All left (or right) singular vectors are returned in the supplied matrix U (or Vt).
    • COMPACT

      public static final SVDJob COMPACT
      The first min(m, n) singular vectors are returned in the supplied matrix U (or Vt).
    • OVERWRITE

      public static final SVDJob OVERWRITE
      The first min(m, n) singular vectors are overwritten on the matrix A.
    • NO_VECTORS

      public static final SVDJob NO_VECTORS
      No singular vectors are computed.
  • Method Details

    • values

      public static SVDJob[] 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 SVDJob 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
    • lapack

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

      public String description()
      Returns a human-readable description of this job option.
      Returns:
      a human-readable description.
    • fromLapack

      public static SVDJob fromLapack(byte value)
      Returns the SVDJob constant corresponding to the given LAPACK byte value.
      Parameters:
      value - the LAPACK byte value ('A', 'S', 'O', or 'N').
      Returns:
      the matching SVDJob constant.
      Throws:
      IllegalArgumentException - if the value does not match any constant.
    • of

      public static SVDJob of(boolean vectors)
      Returns the appropriate SVDJob for a boolean flag. Chooses COMPACT when vectors are requested (the most common case), and NO_VECTORS otherwise.
      Parameters:
      vectors - true to compute the compact set of singular vectors.
      Returns:
      COMPACT or NO_VECTORS.