public interface IVector
Modifier and Type | Method and Description |
---|---|
void |
assignTo(double[] array)
Assigns the components of this vector to the elements of the given array.
|
double |
dot(IVector u)
Returns the dot product of this vector with the given one.
|
boolean |
equals(IVector v)
Returns true if all corresponding elements of this and the given vector
are equal; returns false otherwise.
|
int |
getD()
Dimension of the space occupied by the vector.
|
double |
getX(int i)
Vector components corresponding to the given index.
|
boolean |
isNaN()
Returns true if any element of the vector is not-a-number.
|
boolean |
isZero()
Returns true if all components of this vector are zero; false otherwise.
|
double |
Mv1Squared(IVector v1)
Returns square of vector resulting from subtracting given vector
from this one.
|
double |
squared()
Returns the square magnitude of this vector, e.g., x^2 + y^2 for D = 2.
|
int getD()
void assignTo(double[] array)
boolean equals(IVector v)
double getX(int i)
double squared()
boolean isZero()
double dot(IVector u)
boolean isNaN()
double Mv1Squared(IVector v1)