public enum DependentVectorsHandler extends Enum<DependentVectorsHandler>
MatrixUtils.orthonormalize(List, double, DependentVectorsHandler)
and
MatrixUtils.orthonormalize(Field, List, CalculusFieldElement, DependentVectorsHandler)
.Enum Constant and Description |
---|
ADD_ZERO_VECTOR
Replace dependent vectors by vectors with norm 0.
|
GENERATE_EXCEPTION
Generate a
MathIllegalArgumentException if dependent vectors are found. |
REDUCE_BASE_TO_SPAN
Ignore dependent vectors.
|
Modifier and Type | Method and Description |
---|---|
abstract <T extends CalculusFieldElement<T>> |
manageDependent(Field<T> field,
int index,
List<FieldVector<T>> basis)
Manage a dependent vector.
|
abstract int |
manageDependent(int index,
List<RealVector> basis)
Manage a dependent vector.
|
static DependentVectorsHandler |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DependentVectorsHandler[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DependentVectorsHandler GENERATE_EXCEPTION
MathIllegalArgumentException
if dependent vectors are found.public static final DependentVectorsHandler ADD_ZERO_VECTOR
This behavior matches the Wolfram language API. It keeps the number of output vectors equal to the number of input vectors. The only two norms output vectors can have are 0 and 1.
public static final DependentVectorsHandler REDUCE_BASE_TO_SPAN
This behavior ensures the output vectors form an orthonormal basis, i.e. all vectors are independent and they all have norm 1. The number of output vectors may be smaller than the number of input vectors, this number corresponds to the dimension of the span of the input vectors.
public static DependentVectorsHandler[] values()
for (DependentVectorsHandler c : DependentVectorsHandler.values()) System.out.println(c);
public static DependentVectorsHandler valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract int manageDependent(int index, List<RealVector> basis)
index
- of the vector in the basisbasis
- placeholder for basis vectorspublic abstract <T extends CalculusFieldElement<T>> int manageDependent(Field<T> field, int index, List<FieldVector<T>> basis)
T
- type of the vectors componentsfield
- field to which the vectors belongindex
- of the vector in the basisbasis
- placeholder for basis vectorsCopyright © 2016-2022 CS GROUP. All rights reserved.