TBTK
TBTK::ForwardDifference Class Reference

HoppingAmplitudeList corresponding to a forward difference. More...

#include <ForwardDifference.h>

Inheritance diagram for TBTK::ForwardDifference:
TBTK::HoppingAmplitudeList TBTK::Serializable

Public Member Functions

 ForwardDifference (unsigned int subindex, const Index &index, double dx=1)
 
- Public Member Functions inherited from TBTK::HoppingAmplitudeList
 HoppingAmplitudeList ()
 
 HoppingAmplitudeList (const std::string &serializeation, Serializable::Mode mode)
 
void add (const HoppingAmplitude &hoppingAmplitude)
 
unsigned int getSize () const
 
const HoppingAmplitudeoperator[] (unsigned int n) const
 
std::string serialize (Serializable::Mode mode) const
 
unsigned int getSizeInBytes () const
 

Additional Inherited Members

- Public Types inherited from TBTK::Serializable
enum  Mode { Debug, Binary, XML, JSON }
 
- Static Public Member Functions inherited from TBTK::Serializable
static bool hasID (const std::string &serialization, Mode mode)
 
static std::string getID (const std::string &serialization, Mode mode)
 
static std::string extractComponent (const std::string &serialization, const std::string &containerID, const std::string &componentID, const std::string &componentName, Mode mode)
 
- Static Protected Member Functions inherited from TBTK::Serializable
static bool validate (const std::string &serialization, const std::string &id, Mode mode)
 
static std::string getContent (const std::string &serialization, Mode mode)
 
static std::vector< std::string > split (const std::string &content, Mode mode)
 
static std::string serialize (bool b, Mode mode)
 
static void deserialize (const std::string &serialization, bool *b, Mode mode)
 
static std::string serialize (int i, Mode mode)
 
static void deserialize (const std::string &serialization, int *i, Mode mode)
 
static std::string serialize (unsigned int u, Mode mode)
 
static void deserialize (const std::string &serialization, unsigned int *u, Mode mode)
 
static std::string serialize (double d, Mode mode)
 
static void deserialize (const std::string &serialization, double *d, Mode mode)
 
static std::string serialize (std::complex< double > c, Mode mode)
 
static void deserialize (const std::string &serialization, std::complex< double > *c, Mode mode)
 
static std::string serialize (Statistics s, Mode mode)
 
static void deserialize (const std::string &serialization, Statistics *s, Mode mode)
 
static std::string extract (const std::string &serialization, Mode mode, std::string component)
 

Detailed Description

HoppingAmplitudeList corresponding to a forward difference.

Constructor & Destructor Documentation

TBTK::ForwardDifference::ForwardDifference ( unsigned int  subindex,
const Index index,
double  dx = 1 
)
inline

Constructs a ForwardDifference.

Parameters
subindexSubindex corresponding to the direction of differentiation.
indexIndex at which the difference is taken.
dxStep length.

The documentation for this class was generated from the following file: