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.


Constructor Index

 o BraVector(ComplexVector)
Constructs a bra vector given a vector representation.

Method Index

 o add(AbelianGroupMember)
Returns the addition of this vector and another.
 o add(BraVector)
Returns the addition of this vector and another.
 o dimension()
Returns the dimension.
 o equals(Object)
Compares two bra vectors for equality.
 o getRepresentation()
Returns the representation.
 o hashCode()
Returns a hashcode for this bra vector.
 o multiply(KetVector)
Returns the multiplication of this bra vector and a ket vector.
 o multiply(Operator)
Returns the multiplication of this bra vector and an operator.
 o negate()
Returns the negative of this vector.
 o norm()
Returns the norm.
 o scalarMultiply(RingMember)
Returns the multiplication of this bra vector by a scalar.
 o subtract(AbelianGroupMember)
Returns the subtraction of this vector by another.
 o subtract(BraVector)
Returns the subtraction of this vector by another.
 o toKetVector()
Map this bra vector to a ket vector.
 o toString()
Returns a comma delimited string representing the value of this bra vector.

Constructors

 o BraVector
 public BraVector(ComplexVector rep)
Constructs a bra vector given a vector representation.

Parameters:
rep - a vector representation

Methods

 o equals
 public boolean equals(Object a)
Compares two bra vectors for equality.

Parameters:
a - a bra vector
Overrides:
equals in class Object
 o toString
 public String toString()
Returns a comma delimited string representing the value of this bra vector.

Overrides:
toString in class Object
 o hashCode
 public int hashCode()
Returns a hashcode for this bra vector.

Overrides:
hashCode in class Object
 o toKetVector
 public KetVector toKetVector()
Map this bra vector to a ket vector.

 o getRepresentation
 public ComplexVector getRepresentation()
Returns the representation.

 o dimension
 public int dimension()
Returns the dimension.

Overrides:
dimension in class MathVector
 o norm
 public double norm()
Returns the norm.

Overrides:
norm in class MathVector
 o negate
 public AbelianGroupMember negate()
Returns the negative of this vector.

Overrides:
negate in class MathVector
 o add
 public AbelianGroupMember add(AbelianGroupMember v)
Returns the addition of this vector and another.

Overrides:
add in class MathVector
 o 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.
 o subtract
 public AbelianGroupMember subtract(AbelianGroupMember v)
Returns the subtraction of this vector by another.

Overrides:
subtract in class MathVector
 o 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.
 o scalarMultiply
 public ModuleMember scalarMultiply(RingMember x)
Returns the multiplication of this bra vector by a scalar.

Overrides:
scalarMultiply in class MathVector
 o 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.
 o 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