Class DecompositionFactory
- java.lang.Object
-
- com.opengamma.strata.math.impl.linearalgebra.DecompositionFactory
-
public final class DecompositionFactory extends Object
Factory class for different types of decompositions.
-
-
Field Summary
Fields Modifier and Type Field Description static Decomposition<?>
LU_COMMONS
static String
LU_COMMONS_NAME
Commons LU decompositionstatic Decomposition<?>
QR_COMMONS
static String
QR_COMMONS_NAME
Commons QR decompositionstatic Decomposition<?>
SV_COMMONS
static String
SV_COMMONS_NAME
Commons SV decomposition
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Decomposition<?>
getDecomposition(String decompositionName)
Given a name, returns an instance of that decomposition method.static String
getDecompositionName(Decomposition<?> decomposition)
Given a decomposition method, returns its name.
-
-
-
Field Detail
-
LU_COMMONS_NAME
public static final String LU_COMMONS_NAME
Commons LU decomposition- See Also:
- Constant Field Values
-
QR_COMMONS_NAME
public static final String QR_COMMONS_NAME
Commons QR decomposition- See Also:
- Constant Field Values
-
SV_COMMONS_NAME
public static final String SV_COMMONS_NAME
Commons SV decomposition- See Also:
- Constant Field Values
-
LU_COMMONS
public static final Decomposition<?> LU_COMMONS
-
QR_COMMONS
public static final Decomposition<?> QR_COMMONS
-
SV_COMMONS
public static final Decomposition<?> SV_COMMONS
-
-
Method Detail
-
getDecomposition
public static Decomposition<?> getDecomposition(String decompositionName)
Given a name, returns an instance of that decomposition method.- Parameters:
decompositionName
- The name of the decomposition method- Returns:
- The decomposition method
- Throws:
IllegalArgumentException
- If the decomposition name is null or there is no decomposition method of that name
-
getDecompositionName
public static String getDecompositionName(Decomposition<?> decomposition)
Given a decomposition method, returns its name.- Parameters:
decomposition
- The decomposition method- Returns:
- The name of the decomposition method (null if not found)
-
-