Returns the addition of this vector and another.
Parameters: v - a complex vector exception: VectorDimensionException - If the vectors are different sizes.
Compares two complex vectors for equality.
Two vectors are considered to be equal if the norm of their difference is within the zero tolerance.
Parameters: obj - a complex vector
equals
public boolean equals(Object obj, double tol)(Code)
Returns a component of this vector.
Parameters: n - index of the vector component exception: VectorDimensionException - If attempting to access an invalid component.
Returns the scalar product of this vector and another.
Parameters: v - a complex vector exception: VectorDimensionException - If the vectors are different sizes.
setComponent
abstractpublic void setComponent(int n, Complex z)(Code)
Sets the value of a component of this vector.
Should only be used to initialise this vector.
Parameters: n - index of the vector component Parameters: z - a complex number exception: VectorDimensionException - If attempting to access an invalid component.
setComponent
abstractpublic void setComponent(int n, double x, double y)(Code)
Sets the value of a component of this vector.
Should only be used to initialise this vector.
Parameters: n - index of the vector component Parameters: x - the real part of a complex number Parameters: y - the imaginary part of a complex number exception: VectorDimensionException - If attempting to access an invalid component.
Returns the subtraction of this vector by another.
Parameters: v - a complex vector exception: VectorDimensionException - If the vectors are different sizes.