Enum Class SVDJob
- All Implemented Interfaces:
Serializable, Comparable<SVDJob>, Constable
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 firstmin(m,n)singular vectors are computed.OVERWRITE— the firstmin(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 ConstantsEnum ConstantDescriptionAll 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 TypeMethodDescriptionReturns a human-readable description of this job option.static SVDJobfromLapack(byte value) Returns theSVDJobconstant corresponding to the given LAPACK byte value.bytelapack()Returns the byte value for LAPACK.static SVDJobof(boolean vectors) Returns the appropriateSVDJobfor a boolean flag.static SVDJobReturns the enum constant of this class with the specified name.static SVDJob[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALL
All left (or right) singular vectors are returned in the supplied matrix U (or Vt). -
COMPACT
The first min(m, n) singular vectors are returned in the supplied matrix U (or Vt). -
OVERWRITE
The first min(m, n) singular vectors are overwritten on the matrix A. -
NO_VECTORS
No singular vectors are computed.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
lapack
public byte lapack()Returns the byte value for LAPACK.- Returns:
- the byte value for LAPACK.
-
description
Returns a human-readable description of this job option.- Returns:
- a human-readable description.
-
fromLapack
Returns theSVDJobconstant corresponding to the given LAPACK byte value.- Parameters:
value- the LAPACK byte value ('A','S','O', or'N').- Returns:
- the matching
SVDJobconstant. - Throws:
IllegalArgumentException- if the value does not match any constant.
-
of
Returns the appropriateSVDJobfor a boolean flag. ChoosesCOMPACTwhen vectors are requested (the most common case), andNO_VECTORSotherwise.- Parameters:
vectors-trueto compute the compact set of singular vectors.- Returns:
COMPACTorNO_VECTORS.
-