public abstract class MathVector extends java.lang.Object implements Module.Member
| Modifier and Type | Field and Description |
|---|---|
protected static int |
CLASS_SPECIFIC
Storage format identifier.
|
protected int |
N
The vector's dimension.
|
protected int |
storageFormat |
| Constructor and Description |
|---|
MathVector(int n)
Constructs a mathematical vector.
|
| Modifier and Type | Method and Description |
|---|---|
int |
dimension()
Returns the vector's dimension.
|
protected static java.lang.String |
getInvalidComponentMsg(int i)
Returns an "invalid component" error message.
|
abstract double |
norm()
Returns the norm (magnitude).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitscalarMultiplyadd, negate, subtractprotected static final int CLASS_SPECIFIC
protected int storageFormat
protected final int N
public MathVector(int n)
n - the dimension of the vector.public abstract double norm()
public final int dimension()
protected static java.lang.String getInvalidComponentMsg(int i)
i - index of the component