Class : V15Hamiltonian

class deriving from AbstractHamiltonian

V15Hamiltonian :

prototype: V15Hamiltonian (const Spin1_2Chain& , double , double , double , double , double j5 )

description:contructor from default datas


input parameters:
chain = reference on Hilbert space of the associated system
j1 = coupling constant J1
j2 = coupling constant J2
j3 = coupling constant J3
j4 = coupling constant J4
j5 = coupling constant J5



~V15Hamiltonian :

prototype: ~V15Hamiltonian ()

description:destructor



SetChain :

prototype: V15Hamiltonian& SetChain (const Spin1_2Chain& chain )

description:set chain


input parameters:
chain = reference on Hilbert space of the associated system


return value: reference on current Hamiltonian



SetHilbertSpace :

prototype: void SetHilbertSpace (AbstractHilbertSpace* hilbertSpace )

description:set Hilbert space


input parameters:
hilbertSpace = pointer to Hilbert space to use



GetHilbertSpace :

prototype: AbstractHilbertSpace* GetHilbertSpace ()

description:get Hilbert space on which Hamiltonian acts


input parameters:


return value: pointer to used Hilbert space



GetHilbertSpaceDimension :

prototype: int GetHilbertSpaceDimension ()

description:return dimension of Hilbert space where Hamiltonian acts


input parameters:


return value: corresponding matrix elementdimension



ShiftHamiltonian :

prototype: void ShiftHamiltonian (double shift )

description:shift Hamiltonian from a given energy


input parameters:
shift = shift value



MatrixElement :

prototype: Complex MatrixElement (RealVector& , RealVector& V2 )

description:evaluate matrix element


input parameters:
V1 = vector to left multiply with current matrix
V2 = vector to right multiply with current matrix


return value: corresponding matrix element



MatrixElement :

prototype: Complex MatrixElement (ComplexVector& , ComplexVector& V2 )

description:evaluate matrix element


input parameters:
V1 = vector to left multiply with current matrix
V2 = vector to right multiply with current matrix


return value: corresponding matrix element



LowLevelMultiply :

prototype: RealVector& LowLevelMultiply (RealVector& , RealVector& vDestination )

description:multiply a vector by the current hamiltonian and store result in another vector
low level function (no architecture optimization)


input parameters:
vSource = vector to be multiplied
vDestination = vector where result has to be stored


return value: reference on vectorwhere result has been stored



LowLevelMultiply :

prototype: ComplexVector& LowLevelMultiply (ComplexVector& , ComplexVector& vDestination )

description:multiply a vector by the current hamiltonian and store result in another vector
low level function (no architecture optimization)


input parameters:
vSource = vector to be multiplied
vDestination = vector where result has to be stored


return value: reference on vectorwhere result has been stored



operator << :

prototype: friend ostream& operator << (ostream& , V15Hamiltonian& H )

description:Output Stream overload


input parameters:
Str = reference on output stream
H = Hamiltonian to print


return value: reference on output stream



operator << :

prototype: friend MathematicaOutput& operator << (MathematicaOutput& , V15Hamiltonian& H )

description:Mathematica Output Stream overload


input parameters:
Str = reference on Mathematica output stream
H = Hamiltonian to print


return value: reference on output stream



Back to index.