|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJSci.maths.vectors.MathVector
JSci.physics.quantum.BraVector
The BraVector class provides an object for encapsulating Dirac bra vectors.
Field Summary |
Fields inherited from class JSci.maths.vectors.MathVector |
N |
Constructor Summary | |
BraVector(AbstractComplexVector rep)
Constructs a bra vector given a vector representation. |
Method Summary | |
AbelianGroup.Member |
add(AbelianGroup.Member v)
Returns the addition of this vector and another. |
BraVector |
add(BraVector v)
Returns the addition of this vector and another. |
boolean |
equals(java.lang.Object a)
Compares two bra vectors for equality. |
AbstractComplexVector |
getRepresentation()
Returns the representation. |
int |
hashCode()
Returns a hashcode for this bra vector. |
Complex |
multiply(KetVector ket)
Returns the multiplication of this bra vector and a ket vector. |
BraVector |
multiply(Operator op)
Returns the multiplication of this bra vector and an operator. |
AbelianGroup.Member |
negate()
Returns the negative of this vector. |
double |
norm()
Returns the norm. |
Module.Member |
scalarMultiply(Ring.Member x)
Returns the multiplication of this bra vector by a scalar. |
AbelianGroup.Member |
subtract(AbelianGroup.Member v)
Returns the subtraction of this vector by another. |
BraVector |
subtract(BraVector v)
Returns the subtraction of this vector by another. |
KetVector |
toKetVector()
Map this bra vector to a ket vector. |
java.lang.String |
toString()
Returns a comma delimited string representing the value of this bra vector. |
Methods inherited from class JSci.maths.vectors.MathVector |
dimension, getInvalidComponentMsg |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public BraVector(AbstractComplexVector rep)
rep
- a vector representationMethod Detail |
public boolean equals(java.lang.Object a)
a
- a bra vectorpublic java.lang.String toString()
public int hashCode()
public KetVector toKetVector()
public AbstractComplexVector getRepresentation()
public double norm()
norm
in class MathVector
public AbelianGroup.Member negate()
public AbelianGroup.Member add(AbelianGroup.Member v)
v
- a group memberpublic BraVector add(BraVector v)
v
- a bra vector
VectorDimensionException
- If the vectors are different sizes.public AbelianGroup.Member subtract(AbelianGroup.Member v)
v
- a group memberpublic BraVector subtract(BraVector v)
v
- a bra vector
VectorDimensionException
- If the vectors are different sizes.public Module.Member scalarMultiply(Ring.Member x)
x
- a ring memberpublic Complex multiply(KetVector ket)
ket
- a ket vector
VectorDimensionException
- If the vectors have different dimensions.public BraVector multiply(Operator op)
op
- an operator
DimensionException
- If the operator and vector have different dimensions.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |