|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.mathematics.algebraic.AbstractHypermatrix
org.jscience.mathematics.algebraic.AbstractMatrix
org.jscience.mathematics.algebraic.AbstractVector
org.jscience.mathematics.algebraic.matrices.AbstractComplexVector
org.jscience.mathematics.algebraic.matrices.Complex3Vector
public class Complex3Vector
An optimised implementation of a 3D complex vector.
| Field Summary | |
|---|---|
double |
xim
DOCUMENT ME! |
double |
xre
DOCUMENT ME! |
double |
yim
DOCUMENT ME! |
double |
yre
DOCUMENT ME! |
double |
zim
DOCUMENT ME! |
double |
zre
DOCUMENT ME! |
| Constructor Summary | |
|---|---|
Complex3Vector()
Constructs an empty 3-vector. |
|
Complex3Vector(Complex[] array)
Constructs a 3-vector. |
|
Complex3Vector(Complex3Vector vec)
Constructs a 3-vector. |
|
Complex3Vector(Complex x,
Complex y,
Complex z)
Constructs a 3-vector. |
|
Complex3Vector(double xRe,
double xIm,
double yRe,
double yIm,
double zRe,
double zIm)
Creates a new Complex3Vector object. |
|
| Method Summary | |
|---|---|
AbelianGroup.Member |
add(AbelianGroup.Member vec)
Returns the addition of this vector and another. |
AbstractComplexVector |
add(AbstractComplexVector vec)
Returns the addition of this vector and another. |
AbstractComplexVector |
add(AbstractDoubleVector vec)
Returns the addition of this vector and another. |
AbstractComplexVector |
add(AbstractIntegerVector vec)
Returns the addition of this vector and another. |
java.lang.Object |
clone()
Clone vector into a new vector. |
AbstractComplexVector |
conjugate()
Returns the complex conjugate of this vector. |
boolean |
equals(java.lang.Object obj)
Compares two complex vectors for equality. |
Complex |
getC1()
DOCUMENT ME! |
Complex |
getC2()
DOCUMENT ME! |
Complex |
getC3()
DOCUMENT ME! |
Complex |
getPrimitiveElement(int n)
Returns a component of this vector. |
AbstractDoubleVector |
imag()
Returns the imaginary part of this complex 3-vector. |
double |
infNorm()
Returns the l -norm. |
AbstractComplexVector |
mapElements(ComplexMapping mapping)
Applies a function on all the vector components. |
AbelianGroup.Member |
negate()
Returns the negative of this vector. |
double |
norm()
Returns the l2-norm (magnitude). |
AbstractDoubleVector |
real()
Returns the real part of this complex 3-vector. |
AbstractComplexVector |
scalarDivide(Complex z)
Returns the division of this vector by a scalar. |
AbstractComplexVector |
scalarDivide(double k)
Returns the division of this vector by a scalar. |
VectorSpace.Member |
scalarDivide(Field.Member x)
Returns the division of this vector by a scalar. |
AbstractComplexVector |
scalarMultiply(Complex z)
Returns the multiplication of this vector by a scalar. |
AbstractComplexVector |
scalarMultiply(double k)
Returns the multiplication of this vector by a scalar. |
Module.Member |
scalarMultiply(Ring.Member x)
Returns the multiplication of this vector by a scalar. |
Complex |
scalarProduct(AbstractComplexVector vec)
Returns the scalar product of this vector and another. |
Complex |
scalarProduct(Complex3Vector vec)
Returns the scalar product of this vector and another. |
Complex |
scalarProduct(HilbertSpace.Member vec)
Returns the scalar product of this vector and another. |
void |
setAllElements(Complex c)
Sets the value of all elements of the vector. |
void |
setC1(Complex c)
DOCUMENT ME! |
void |
setC2(Complex c)
DOCUMENT ME! |
void |
setC3(Complex c)
DOCUMENT ME! |
void |
setElement(int n,
Complex z)
Sets the value of a component of this vector. |
void |
setElement(int n,
double x,
double y)
Sets the value of a component of this vector. |
AbelianGroup.Member |
subtract(AbelianGroup.Member vec)
Returns the subtraction of this vector by another. |
AbstractComplexVector |
subtract(AbstractComplexVector vec)
Returns the subtraction of this vector by another. |
AbstractComplexVector |
subtract(AbstractDoubleVector vec)
Returns the subtraction of this vector by another. |
AbstractComplexVector |
subtract(AbstractIntegerVector vec)
Returns the subtraction of this vector by another. |
Complex[] |
toPrimitiveArray()
Projects the vector to an array. |
java.lang.String |
toString()
Returns a comma delimited string representing the value of this vector. |
Complex3Vector |
vectorProduct(Complex3Vector vec)
Returns the vector product of this vector and another. |
| Methods inherited from class org.jscience.mathematics.algebraic.matrices.AbstractComplexVector |
|---|
abs, equals, getColumn, getElement, getImagElement, getRealElement, getRow, getSubVector, hashCode, mass, multiply, normalize, read, reverse, setColumn, setRow, setSubVector, tensorProduct, toMatrix, transpose |
| Methods inherited from class org.jscience.mathematics.algebraic.AbstractVector |
|---|
getDimension, getElement, getInvalidElementMsg, toArray, toArray |
| Methods inherited from class org.jscience.mathematics.algebraic.AbstractMatrix |
|---|
getElement, getInvalidElementMsg, numColumns, numRows, print, print, print, print, toArray |
| Methods inherited from class org.jscience.mathematics.algebraic.AbstractHypermatrix |
|---|
getDimensions, numDimensions, numElements, numElements, toArray |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jscience.mathematics.algebraic.Matrix |
|---|
numColumns, numRows, toArray |
| Methods inherited from interface org.jscience.mathematics.algebraic.Hypermatrix |
|---|
getDimensions, getElement, numDimensions, numElements, numElements, toArray |
| Field Detail |
|---|
public double xre
public double xim
public double yre
public double yim
public double zre
public double zim
| Constructor Detail |
|---|
public Complex3Vector()
public Complex3Vector(Complex x,
Complex y,
Complex z)
x - x coordinate.y - y coordinate.z - z coordinate.
public Complex3Vector(double xRe,
double xIm,
double yRe,
double yIm,
double zRe,
double zIm)
xRe - DOCUMENT ME!xIm - DOCUMENT ME!yRe - DOCUMENT ME!yIm - DOCUMENT ME!zRe - DOCUMENT ME!zIm - DOCUMENT ME!public Complex3Vector(Complex[] array)
array - DOCUMENT ME!public Complex3Vector(Complex3Vector vec)
vec - DOCUMENT ME!| Method Detail |
|---|
public boolean equals(java.lang.Object obj)
equals in class AbstractComplexVectorobj - a complex 3-vector
public java.lang.String toString()
toString in class AbstractComplexVectorpublic AbstractDoubleVector real()
real in class AbstractComplexVectorpublic AbstractDoubleVector imag()
imag in class AbstractComplexVectorpublic Complex getPrimitiveElement(int n)
getPrimitiveElement in class AbstractComplexVectorn - index of the vector component
IllegalDimensionException - If attempting to access an invalid
component.
public void setElement(int n,
Complex z)
setElement in class AbstractComplexVectorn - index of the vector componentz - a complex number
IllegalDimensionException - If attempting to access an invalid
component.
public void setElement(int n,
double x,
double y)
setElement in class AbstractComplexVectorn - index of the vector componentx - the real part of a complex numbery - the imaginary part of a complex number
IllegalDimensionException - If attempting to access an invalid
component.public void setAllElements(Complex c)
setAllElements in class AbstractComplexVectorc - a Complex elementpublic double norm()
norm in interface BanachSpace.Membernorm in class AbstractComplexVectorpublic double infNorm()
-norm.
infNorm in class AbstractComplexVectorpublic Complex getC1()
public Complex getC2()
public Complex getC3()
public void setC1(Complex c)
c - DOCUMENT ME!public void setC2(Complex c)
c - DOCUMENT ME!public void setC3(Complex c)
c - DOCUMENT ME!public AbelianGroup.Member negate()
negate in interface AbelianGroup.Memberpublic AbstractComplexVector conjugate()
conjugate in class AbstractComplexVectorpublic AbelianGroup.Member add(AbelianGroup.Member vec)
add in interface AbelianGroup.Membervec - DOCUMENT ME!
java.lang.IllegalArgumentException - DOCUMENT ME!public AbstractComplexVector add(AbstractComplexVector vec)
add in class AbstractComplexVectorvec - a complex 3-vector
IllegalDimensionException - DOCUMENT ME!public AbstractComplexVector add(AbstractDoubleVector vec)
vec - a double 3-vector
IllegalDimensionException - DOCUMENT ME!public AbstractComplexVector add(AbstractIntegerVector vec)
vec - an integer 3-vector
IllegalDimensionException - DOCUMENT ME!public AbelianGroup.Member subtract(AbelianGroup.Member vec)
subtract in interface AbelianGroup.Membervec - DOCUMENT ME!
java.lang.IllegalArgumentException - DOCUMENT ME!public AbstractComplexVector subtract(AbstractComplexVector vec)
subtract in class AbstractComplexVectorvec - a complex 3-vector
IllegalDimensionException - DOCUMENT ME!public AbstractComplexVector subtract(AbstractDoubleVector vec)
vec - a double 3-vector
IllegalDimensionException - DOCUMENT ME!public AbstractComplexVector subtract(AbstractIntegerVector vec)
vec - an integer 3-vector
IllegalDimensionException - DOCUMENT ME!public Module.Member scalarMultiply(Ring.Member x)
scalarMultiply in interface Module.Memberx - DOCUMENT ME!
java.lang.IllegalArgumentException - DOCUMENT ME!public AbstractComplexVector scalarMultiply(Complex z)
scalarMultiply in class AbstractComplexVectorz - a complex number
public AbstractComplexVector scalarMultiply(double k)
scalarMultiply in class AbstractComplexVectork - a double
public VectorSpace.Member scalarDivide(Field.Member x)
scalarDivide in interface VectorSpace.Memberx - DOCUMENT ME!
java.lang.IllegalArgumentException - DOCUMENT ME!public AbstractComplexVector scalarDivide(Complex z)
scalarDivide in class AbstractComplexVectorz - a complex number
public AbstractComplexVector scalarDivide(double k)
scalarDivide in class AbstractComplexVectork - a double
public Complex scalarProduct(HilbertSpace.Member vec)
scalarProduct in interface HilbertSpace.Membervec - DOCUMENT ME!
java.lang.IllegalArgumentException - DOCUMENT ME!public Complex scalarProduct(AbstractComplexVector vec)
scalarProduct in class AbstractComplexVectorvec - a complex vector
IllegalDimensionException - If the vectors are different sizes.public Complex scalarProduct(Complex3Vector vec)
vec - a complex 3-vector
public Complex3Vector vectorProduct(Complex3Vector vec)
vec - a complex 3-vector
public AbstractComplexVector mapElements(ComplexMapping mapping)
mapElements in class AbstractComplexVectormapping - a user-defined function
public Complex[] toPrimitiveArray()
toPrimitiveArray in class AbstractComplexVectorpublic java.lang.Object clone()
clone in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||