23 #ifndef COM_DAFER45_TBTK_CENTERED_DIFFERENCE
24 #define COM_DAFER45_TBTK_CENTERD_DIFFERENCE
41 unsigned int subindex,
48 unsigned int subindex,
54 "CenteredDifference::CenteredDifference()",
55 "Invalid subindex. The subindex '" << subindex <<
"' is larger"
56 <<
" than the size of the Index '" << index.
getSize() <<
"'.",
61 "CenteredDifference::CenteredDifference()",
62 "Invalid subindex value. Unable to add a centered difference"
63 " for subindex '" << subindex <<
"' at '" << index.
toString()
64 <<
"' since the centered 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;
72 Index forward = index;
List of HoppingAmplitudes .
List of HoppingAmplitudes .
Definition: HoppingAmplitudeList.h:34
std::string toString() const
Definition: Index.h:349
CenteredDifference(unsigned int subindex, const Index &index, double dx=1)
Definition: CenteredDifference.h:47
void add(const HoppingAmplitude &hoppingAmplitude)
Definition: HoppingAmplitudeList.h:85
Hopping amplitude from state 'from' to state 'to'.
Definition: HoppingAmplitude.h:53
HoppingAmplitudeList corresponding to a centered difference.
Definition: CenteredDifference.h:31
unsigned int getSize() const
Definition: Index.h:482
Physical index.
Definition: Index.h:44