public static enum Vector.Norm extends java.lang.Enum<Vector.Norm>
| Enum Constant and Description |
|---|
Infinity
Largest entry in absolute value
|
One
Sum of the absolute values of the entries
|
Two
The root of sum of squares
|
TwoRobust
As the 2 norm may overflow, an overflow resistant version is also
available.
|
| Modifier and Type | Method and Description |
|---|---|
static Vector.Norm |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Vector.Norm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Vector.Norm One
public static final Vector.Norm Two
public static final Vector.Norm TwoRobust
public static final Vector.Norm Infinity
public static Vector.Norm[] values()
for (Vector.Norm c : Vector.Norm.values()) System.out.println(c);
public static Vector.Norm valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namejava.lang.NullPointerException - if the argument is null