A set of HoppingAmplitudes , a SourceAmplitude, and an elimination Index, which together form a single linear equation that can be used to eliminate an Index from a larger set of linear equations.
More...
#include <BoundaryCondition.h>
|
| BoundaryCondition () |
|
| BoundaryCondition (const std::string &serializeation, Serializable::Mode mode) |
|
void | add (const HoppingAmplitude &hoppingAmplitude) |
|
const HoppingAmplitudeList & | getHoppingAmplitudeList () const |
|
void | set (const SourceAmplitude &sourceAmplitude) |
|
const SourceAmplitude & | getSourceAmplitude () const |
|
void | setEliminationIndex (const Index &eliminationIndex) |
|
const Index & | getEliminationIndex () const |
|
std::string | serialize (Serializable::Mode mode) const |
|
unsigned int | getSizeInBytes () const |
|
template<> |
std::string | serialize (const bool &data, Mode mode) |
|
template<> |
std::string | serialize (const double &data, Mode mode) |
|
template<> |
std::string | serialize (const std::complex< double > &data, Mode mode) |
|
template<> |
std::string | serialize (const int &data, Mode mode) |
|
template<> |
std::string | serialize (const unsigned int &data, Mode mode) |
|
template<> |
std::string | serialize (const SpinMatrix &data, Mode mode) |
|
template<> |
std::string | serialize (const Statistics &data, Mode mode) |
|
template<> |
std::string | serialize (const std::vector< std::complex< double >> &data, Mode mode) |
|
template<> |
int | deserialize (const std::string &serialization, Mode mode) |
|
|
enum | Mode { Debug,
Binary,
XML,
JSON
} |
|
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 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) |
|
template<typename DataType > |
static std::enable_if<!std::is_pointer< DataType >::value, std::string >::type | serialize (const DataType &data, Mode mode) |
|
template<typename DataType > |
static std::enable_if< std::is_pointer< DataType >::value, std::string >::type | serialize (const DataType &data, Mode mode) |
|
template<typename DataType > |
static DataType | deserialize (const std::string &serialization, Mode mode) |
|
static std::string | extract (const std::string &serialization, Mode mode, std::string component) |
|
A set of HoppingAmplitudes , a SourceAmplitude, and an elimination Index, which together form a single linear equation that can be used to eliminate an Index from a larger set of linear equations.
A BoundaryCondition consists of a set of HoppingAmplitudes and a SourceAmplitude, which together form a linear equation. I.e., if a matrix is written down using these HoppingAmplitudes and the SourceAmplitude, they form a single line in a matrix equation. The BoundaryCondition also contains an Index which indicates which Index the BoundaryCondition is supposed to eliminate in a linnear equation system.
◆ BoundaryCondition() [1/2]
TBTK::BoundaryCondition::BoundaryCondition |
( |
| ) |
|
|
inline |
◆ BoundaryCondition() [2/2]
TBTK::BoundaryCondition::BoundaryCondition |
( |
const std::string & |
serializeation, |
|
|
Serializable::Mode |
mode |
|
) |
| |
Constructor. Constructs the BoundaryCondition from a serialization string.
- Parameters
-
serialization | Serialization string from which to construct the BoundaryCondition. |
mode | Mode with which the string has been serialized. |
◆ add()
◆ getEliminationIndex()
const Index & TBTK::BoundaryCondition::getEliminationIndex |
( |
| ) |
const |
|
inline |
Get the Index that is to be eliminated by the boundary condition.
- Returns
- The Index that is to be eliminated by the boundary condition.
◆ getHoppingAmplitudeList()
◆ getSizeInBytes()
unsigned int TBTK::BoundaryCondition::getSizeInBytes |
( |
| ) |
const |
|
inline |
◆ getSourceAmplitude()
const SourceAmplitude & TBTK::BoundaryCondition::getSourceAmplitude |
( |
| ) |
const |
|
inline |
◆ serialize()
◆ set()
void TBTK::BoundaryCondition::set |
( |
const SourceAmplitude & |
sourceAmplitude | ) |
|
|
inline |
◆ setEliminationIndex()
void TBTK::BoundaryCondition::setEliminationIndex |
( |
const Index & |
eliminationIndex | ) |
|
|
inline |
Set the Index that is to be eliminated by the boundary condition.
- Parameters
-
eliminationIndex | Index that should be eliminated by the boundary condition. |
The documentation for this class was generated from the following file: