Class JSci.physics.quantum.KetVector
All Packages Class Hierarchy This Package Previous Next Index
Class JSci.physics.quantum.KetVector
java.lang.Object
|
+----JSci.maths.Tensor
|
+----JSci.maths.Vector
|
+----JSci.physics.quantum.KetVector
- public final class KetVector
- extends Vector
The KetVector class provides an object for encapsulating Dirac ket vectors.
-
KetVector(ComplexVector)
- Constructs a ket vector given a vector representation.
-
clone()
- Creates a clone of this ket vector.
-
dimension()
- Returns the dimension.
-
equals(Object)
- Compares two ket vectors for equality.
-
getRepresentation()
- Returns the representation.
-
hashCode()
- Returns a hashcode for this ket vector.
-
norm()
- Returns the norm.
-
toBraVector()
- Map this ket vector to a bra vector.
-
toString()
- Returns a comma delimited string representing the value of this ket vector.
KetVector
public KetVector(ComplexVector rep)
- Constructs a ket vector given a vector representation.
- Parameters:
- rep - a vector representation
equals
public boolean equals(Object a)
- Compares two ket vectors for equality.
- Parameters:
- a - a ket vector
- Overrides:
- equals in class Object
clone
public Object clone()
- Creates a clone of this ket vector.
- Returns:
- a copy of this ket vector.
- Overrides:
- clone in class Object
toString
public String toString()
- Returns a comma delimited string representing the value of this ket vector.
- Overrides:
- toString in class Object
hashCode
public int hashCode()
- Returns a hashcode for this ket vector.
- Overrides:
- hashCode in class Object
toBraVector
public BraVector toBraVector()
- Map this ket vector to a bra vector.
getRepresentation
public ComplexVector getRepresentation()
- Returns the representation.
dimension
public int dimension()
- Returns the dimension.
- Overrides:
- dimension in class Vector
norm
public double norm()
- Returns the norm.
- Overrides:
- norm in class Vector
All Packages Class Hierarchy This Package Previous Next Index