Go to the documentation of this file.
23 #ifndef COM_DAFER45_TBTK_DENSITY
24 #define COM_DAFER45_TBTK_DENSITY
26 #include "TBTK/Property/AbstractProperty.h"
53 Density(
const std::vector<int> &ranges);
63 Density(
const std::vector<int> &ranges,
const double *data);
88 Density(
const std::string &serialization,
Mode mode);
156 virtual std::string
toString()
const;
175 return density += rhs;
187 return density -= rhs;
199 return density *= rhs;
211 return density /= rhs;
virtual std::string serialize(Mode mode) const
Density operator*(const double &rhs) const
Definition: Density.h:196
Density operator+(const Density &rhs) const
Definition: Density.h:172
AbstractProperty & operator-=(const AbstractProperty &rhs)
Definition: AbstractProperty.h:1266
AbstractProperty & operator*=(const DataType &rhs)
Definition: AbstractProperty.h:1321
Density & operator*=(const double &rhs)
Definition: Density.h:190
AbstractProperty & operator+=(const AbstractProperty &rhs)
Definition: AbstractProperty.h:1213
Density operator/(const double &rhs) const
Definition: Density.h:208
virtual std::string toString() const
AbstractProperty & operator/=(const DataType &rhs)
Definition: AbstractProperty.h:1334
Density & operator-=(const Density &rhs)
Definition: Density.h:178
Property container for density.
Definition: Density.h:43
friend Density operator*(const double &lhs, const Density &rhs)
Definition: Density.h:130
Density & operator/=(const double &rhs)
Definition: Density.h:202
Density operator-(const Density &rhs) const
Definition: Density.h:184
Density & operator+=(const Density &rhs)
Definition: Density.h:166
Data structure for mapping physical indices to linear indices.
Definition: IndexTree.h:35
Abstract Property class.
Definition: AbstractProperty.h:101
Density()
Definition: Density.h:163
Mode
Definition: Serializable.h:47
Data structure for mapping physical indices to a linear index.