Class : Mn12Hamiltonian
Mn12Hamiltonian :
prototype: Mn12Hamiltonian (const ThierryChain& , double , double , double , double , double j4 )
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
j3p = coupling constant J3p
j4 = coupling constant J4
~Mn12Hamiltonian :
prototype: ~Mn12Hamiltonian ()
description:destructor
SetChain :
prototype: Mn12Hamiltonian& SetChain (const ThierryChain& 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: RealVector& LowLevelMultiply (RealVector& , RealVector& ,
int , int nbrComponent )
description:multiply a vector by the current hamiltonian for a given range of idinces
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
firstComponent = index of the first component to evaluate
nbrComponent = number of components to evaluate
return value: reference on vector where 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& , Mn12Hamiltonian& 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& , Mn12Hamiltonian& 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.