Class JSci.maths.VectorMath
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JSci.maths.VectorMath

java.lang.Object
   |
   +----JSci.maths.VectorMath

public final class VectorMath
extends Object
The vector math library. This class cannot be subclassed or instantiated because all methods are static.

Method Index

 o add(ComplexVector, ComplexVector)
Returns the addition of two vectors.
 o add(DoubleVector, DoubleVector)
Returns the addition of two vectors.
 o add(IntegerVector, IntegerVector)
Returns the addition of two vectors.
 o conjugate(ComplexVector)
Returns the complex conjugate of a vector.
 o crossProduct(ComplexVector, ComplexVector)
Returns the cross product of two 3D vectors.
 o crossProduct(DoubleVector, DoubleVector)
Returns the cross product of two 3D vectors.
 o crossProduct(IntegerVector, IntegerVector)
Returns the cross product of two 3D vectors.
 o mapComponents(ComplexVector, Mapping)
Applies a function on all the vector components.
 o mapComponents(DoubleVector, Mapping)
Applies a function on all the vector components.
 o mapComponents(IntegerVector, Mapping)
Applies a function on all the vector components.
 o scalarDivide(ComplexVector, Complex)
Returns the division of a vector by a scalar.
 o scalarDivide(DoubleVector, double)
Returns the division of a vector by a scalar.
 o scalarDivide(IntegerVector, int)
Returns the division of a vector by a scalar.
 o scalarMultiply(Complex, ComplexVector)
Returns the multiplication of a vector by a scalar.
 o scalarMultiply(double, DoubleVector)
Returns the multiplication of a vector by a scalar.
 o scalarMultiply(int, IntegerVector)
Returns the multiplication of a vector by a scalar.
 o scalarProduct(ComplexVector, ComplexVector)
Returns the scalar product of two vectors.
 o scalarProduct(DoubleVector, DoubleVector)
Returns the scalar product of two vectors.
 o scalarProduct(IntegerVector, IntegerVector)
Returns the scalar product of two vectors.
 o subtract(ComplexVector, ComplexVector)
Returns the subtraction of two vectors.
 o subtract(DoubleVector, DoubleVector)
Returns the subtraction of two vectors.
 o subtract(IntegerVector, IntegerVector)
Returns the subtraction of two vectors.

Methods

 o conjugate
  public static ComplexVector conjugate(ComplexVector v)
Returns the complex conjugate of a vector.
Parameters:
v - a complex vector
 o add
  public static IntegerVector add(IntegerVector a,
                                  IntegerVector b)
Returns the addition of two vectors.
Parameters:
a - an integer vector
b - an integer vector
Throws: VectorDimensionException
If the vectors are different sizes.
 o add
  public static DoubleVector add(DoubleVector a,
                                 DoubleVector b)
Returns the addition of two vectors.
Parameters:
a - a double vector
b - a double vector
Throws: VectorDimensionException
If the vectors are different sizes.
 o add
  public static ComplexVector add(ComplexVector a,
                                  ComplexVector b)
Returns the addition of two vectors.
Parameters:
a - a complex vector
b - a complex vector
Throws: VectorDimensionException
If the vectors are different sizes.
 o subtract
  public static IntegerVector subtract(IntegerVector a,
                                       IntegerVector b)
Returns the subtraction of two vectors.
Parameters:
a - an integer vector
b - an integer vector
Throws: VectorDimensionException
If the vectors are different sizes.
 o subtract
  public static DoubleVector subtract(DoubleVector a,
                                      DoubleVector b)
Returns the subtraction of two vectors.
Parameters:
a - a double vector
b - a double vector
Throws: VectorDimensionException
If the vectors are different sizes.
 o subtract
  public static ComplexVector subtract(ComplexVector a,
                                       ComplexVector b)
Returns the subtraction of two vectors.
Parameters:
a - a complex vector
b - a complex vector
Throws: VectorDimensionException
If the vectors are different sizes.
 o scalarMultiply
  public static IntegerVector scalarMultiply(int x,
                                             IntegerVector a)
Returns the multiplication of a vector by a scalar.
Parameters:
x - an integer
a - an integer vector
 o scalarMultiply
  public static DoubleVector scalarMultiply(double x,
                                            DoubleVector a)
Returns the multiplication of a vector by a scalar.
Parameters:
x - a double
a - a double vector
 o scalarMultiply
  public static ComplexVector scalarMultiply(Complex x,
                                             ComplexVector a)
Returns the multiplication of a vector by a scalar.
Parameters:
x - a complex number
a - a complex vector
 o scalarDivide
  public static IntegerVector scalarDivide(IntegerVector a,
                                           int x)
Returns the division of a vector by a scalar.
Parameters:
a - an integer vector
x - an integer
 o scalarDivide
  public static DoubleVector scalarDivide(DoubleVector a,
                                          double x)
Returns the division of a vector by a scalar.
Parameters:
a - a double vector
x - a double
 o scalarDivide
  public static ComplexVector scalarDivide(ComplexVector a,
                                           Complex x)
Returns the division of a vector by a scalar.
Parameters:
a - a complex vector
x - a complex number
 o scalarProduct
  public static int scalarProduct(IntegerVector a,
                                  IntegerVector b)
Returns the scalar product of two vectors.
Parameters:
a - an integer vector
b - an integer vector
Throws: VectorDimensionException
If the vectors are different sizes.
 o scalarProduct
  public static double scalarProduct(DoubleVector a,
                                     DoubleVector b)
Returns the scalar product of two vectors.
Parameters:
a - a double vector
b - a double vector
Throws: VectorDimensionException
If the vectors are different sizes.
 o scalarProduct
  public static Complex scalarProduct(ComplexVector a,
                                      ComplexVector b)
Returns the scalar product of two vectors.
Parameters:
a - a complex vector
b - a complex vector
Throws: VectorDimensionException
If the vectors are different sizes.
 o crossProduct
  public static IntegerVector crossProduct(IntegerVector a,
                                           IntegerVector b)
Returns the cross product of two 3D vectors.
Parameters:
a - an integer vector
b - an integer vector
Throws: VectorDimensionException
If using incompatible vectors.
 o crossProduct
  public static DoubleVector crossProduct(DoubleVector a,
                                          DoubleVector b)
Returns the cross product of two 3D vectors.
Parameters:
a - a double vector
b - a double vector
Throws: VectorDimensionException
If using incompatible vectors.
 o crossProduct
  public static ComplexVector crossProduct(ComplexVector a,
                                           ComplexVector b)
Returns the cross product of two 3D vectors.
Parameters:
a - a complex vector
b - a complex vector
Throws: VectorDimensionException
If using incompatible vectors.
 o mapComponents
  public static DoubleVector mapComponents(IntegerVector v,
                                           Mapping f)
Applies a function on all the vector components.
Parameters:
v - an integer vector
f - a user-defined function
Returns:
a double vector
 o mapComponents
  public static DoubleVector mapComponents(DoubleVector v,
                                           Mapping f)
Applies a function on all the vector components.
Parameters:
v - a double vector
f - a user-defined function
Returns:
a double vector
 o mapComponents
  public static ComplexVector mapComponents(ComplexVector v,
                                            Mapping f)
Applies a function on all the vector components.
Parameters:
v - a complex vector
f - a user-defined function
Returns:
a complex vector

All Packages  Class Hierarchy  This Package  Previous  Next  Index