JSci.maths.algebras
Class HilbertSpace

java.lang.Object
  extended byJSci.maths.algebras.HilbertSpace
All Implemented Interfaces:
AbelianGroup, BanachSpace, Module, VectorSpace
Direct Known Subclasses:
Hilb.OperatorSpace

public class HilbertSpace
extends java.lang.Object
implements BanachSpace

The HilbertSpace class encapsulates Hilbert spaces.

PlanetMath references:
HilbertSpace

Nested Class Summary
static interface HilbertSpace.Member
          This interface defines a member of a Hilbert space.
 
Constructor Summary
HilbertSpace(int n)
          Constructs a Hilbert space.
 
Method Summary
 int dimension()
          Returns the dimension.
 VectorSpace.Member getVector(Complex[] array)
          Returns a vector from the Hilbert space.
 boolean isNegative(AbelianGroup.Member a, AbelianGroup.Member b)
          Returns true if one vector is the negative of the other.
 boolean isZero(AbelianGroup.Member v)
          Returns true if the vector is equal to zero.
 AbelianGroup.Member zero()
          Returns the zero vector.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HilbertSpace

public HilbertSpace(int n)
Constructs a Hilbert space.

Method Detail

getVector

public VectorSpace.Member getVector(Complex[] array)
Returns a vector from the Hilbert space.


dimension

public int dimension()
Returns the dimension.


zero

public AbelianGroup.Member zero()
Returns the zero vector.

Specified by:
zero in interface AbelianGroup

isZero

public boolean isZero(AbelianGroup.Member v)
Returns true if the vector is equal to zero.

Specified by:
isZero in interface AbelianGroup
Parameters:
v - a group member

isNegative

public boolean isNegative(AbelianGroup.Member a,
                          AbelianGroup.Member b)
Returns true if one vector is the negative of the other.

Specified by:
isNegative in interface AbelianGroup
Parameters:
a - a group member
b - a group member