Go to the documentation of this file.
23 #ifndef COM_DAFER45_TBTK_BACKWARD_DIFFERENCE
24 #define COM_DAFER45_TBTK_BACKWARD_DIFFERENCE
41 unsigned int subindex,
48 unsigned int subindex,
54 "BackwardDifference::BackwardDifference()",
55 "Invalid subindex. The subindex '" << subindex <<
"' is larger"
56 <<
" than the size of the Index '" << index.
getSize() <<
"'.",
61 "BackwardDifference::BackwardDifference()",
62 "Invalid subindex value. Unable to add a backward difference"
63 " for subindex '" << subindex <<
"' at '" << index.
toString()
64 <<
"' since the backward difference would contain a negative"
66 "Modify the domain of the differential equation to ensure that"
67 <<
" no negative subindices are needed."
70 Index backward = index;
List of HoppingAmplitudes .
List of HoppingAmplitudes .
Definition: HoppingAmplitudeList.h:34
HoppingAmplitudeList corresponding to a backward difference.
Definition: BackwardDifference.h:31
std::string toString() const
Definition: Index.h:349
BackwardDifference(unsigned int subindex, const Index &index, double dx=1.)
Definition: BackwardDifference.h:47
void add(const HoppingAmplitude &hoppingAmplitude)
Definition: HoppingAmplitudeList.h:85
Hopping amplitude from state 'from' to state 'to'.
Definition: HoppingAmplitude.h:53
unsigned int getSize() const
Definition: Index.h:482
Physical index.
Definition: Index.h:44