All Packages Class Hierarchy This Package Previous Next Index
Class JSci.physics.quantum.BraVector
java.lang.Object
|
+----JSci.maths.MathVector
|
+----JSci.physics.quantum.BraVector
- public final class BraVector
- extends MathVector
The BraVector class provides an object for encapsulating Dirac bra vectors.
-
BraVector(ComplexVector)
- Constructs a bra vector given a vector representation.
-
add(AbelianGroupMember)
- Returns the addition of this vector and another.
-
add(BraVector)
- Returns the addition of this vector and another.
-
dimension()
- Returns the dimension.
-
equals(Object)
- Compares two bra vectors for equality.
-
getRepresentation()
- Returns the representation.
-
hashCode()
- Returns a hashcode for this bra vector.
-
multiply(KetVector)
- Returns the multiplication of this bra vector and a ket vector.
-
multiply(Operator)
- Returns the multiplication of this bra vector and an operator.
-
negate()
- Returns the negative of this vector.
-
norm()
- Returns the norm.
-
scalarMultiply(RingMember)
- Returns the multiplication of this bra vector by a scalar.
-
subtract(AbelianGroupMember)
- Returns the subtraction of this vector by another.
-
subtract(BraVector)
- Returns the subtraction of this vector by another.
-
toKetVector()
- Map this bra vector to a ket vector.
-
toString()
- Returns a comma delimited string representing the value of this bra vector.
BraVector
public BraVector(ComplexVector rep)
- Constructs a bra vector given a vector representation.
- Parameters:
- rep - a vector representation
equals
public boolean equals(Object a)
- Compares two bra vectors for equality.
- Parameters:
- a - a bra vector
- Overrides:
- equals in class Object
toString
public String toString()
- Returns a comma delimited string representing the value of this bra vector.
- Overrides:
- toString in class Object
hashCode
public int hashCode()
- Returns a hashcode for this bra vector.
- Overrides:
- hashCode in class Object
toKetVector
public KetVector toKetVector()
- Map this bra vector to a ket vector.
getRepresentation
public ComplexVector getRepresentation()
- Returns the representation.
dimension
public int dimension()
- Returns the dimension.
- Overrides:
- dimension in class MathVector
norm
public double norm()
- Returns the norm.
- Overrides:
- norm in class MathVector
negate
public AbelianGroupMember negate()
- Returns the negative of this vector.
- Overrides:
- negate in class MathVector
add
public AbelianGroupMember add(AbelianGroupMember v)
- Returns the addition of this vector and another.
- Overrides:
- add in class MathVector
add
public BraVector add(BraVector v)
- Returns the addition of this vector and another.
- Parameters:
- v - a bra vector
- Throws: VectorDimensionException
- If the vectors are different sizes.
subtract
public AbelianGroupMember subtract(AbelianGroupMember v)
- Returns the subtraction of this vector by another.
- Overrides:
- subtract in class MathVector
subtract
public BraVector subtract(BraVector v)
- Returns the subtraction of this vector by another.
- Parameters:
- v - a bra vector
- Throws: VectorDimensionException
- If the vectors are different sizes.
scalarMultiply
public ModuleMember scalarMultiply(RingMember x)
- Returns the multiplication of this bra vector by a scalar.
- Overrides:
- scalarMultiply in class MathVector
multiply
public Complex multiply(KetVector ket)
- Returns the multiplication of this bra vector and a ket vector.
- Parameters:
- ket - a ket vector
- Throws: VectorDimensionException
- If the vectors have different dimensions.
multiply
public BraVector multiply(Operator op)
- Returns the multiplication of this bra vector and an operator.
- Parameters:
- op - an operator
- Throws: DimensionException
- If the operator and vector have different dimensions.
All Packages Class Hierarchy This Package Previous Next Index