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