|
TRIQS/TRIQS 4.0.0
Researching Interacting Quantum Systems
|
#include <triqs/lattice/bravais_lattice.hpp>
Lattice point of a Bravais lattice.
A lattice point is defined by an index vector, \( \mathbf{n} = (n_1, \dots, n_d) \), and the Bravais lattice it belongs to.
The corresponding lattice vector, \( \mathbf{R}^{\mathbf{n}} = (R^{\mathbf{n}}_1, \dots, R^{\mathbf{n}}_d) \), can be obtained with
\[ \mathbf{R}^{\mathbf{n}} = \sum_{i=1}^{d} \mathbf{a}_i n_i \; , \]
where \( \{ \mathbf{a}_1, \dots, \mathbf{a}_d \} \) are the basis vectors of the underlying Bravais lattice.
Definition at line 97 of file bravais_lattice.hpp.
Public Member Functions | |
| point_t ()=default | |
| Default constructor leaves the lattice point uninitialized, i.e. belonging to no Bravais lattice. | |
| point_t (index_t const &n, bravais_lattice const *bl_ptr) | |
| Construct a lattice point with a given index vector on the given Bravais lattice. | |
| auto | index () const |
| Get the index vector \( \mathbf{n} \) of the lattice point. | |
| auto const & | lattice () const |
| Get the underlying Bravais lattice. | |
| operator r_t () const | |
| Conversion to the corresponding lattice vector \( \mathbf{R}^{\mathbf{n}} = \sum_{i=1}^{d} \mathbf{a}_i
n_i \). | |
| double | operator() (int d) const |
| Get the coordinate \( R^{\mathbf{n}}_i \) of the corresponding lattice vector \(\mathbf{R}^{\mathbf{n}} \). | |
| point_t | operator+ (point_t const &pt) const |
| Add two lattice points \( \mathbf{R}^{\mathbf{n}} \) and \( \mathbf{R}^{\mathbf{m}} \). | |
| point_t | operator- () const |
| Invert the lattice point \( \mathbf{R}^{\mathbf{n}} \). | |
| point_t | operator- (point_t const &pt) const |
| Subtract two lattice points \( \mathbf{R}^{\mathbf{n}} \) and \( \mathbf{R}^{\mathbf{m}} \). | |
| double | operator[] (int i) const |
| Get the coordinate \( R^{\mathbf{n}}_i \) of the corresponding lattice vector \(\mathbf{R}^{\mathbf{n}} \). | |
Friends | |
| std::ostream & | operator<< (std::ostream &sout, point_t const &pt) |
| Write a lattice point to a std::ostream. | |
|
inline |
Construct a lattice point with a given index vector on the given Bravais lattice.
| n | Index vector \( \mathbf{n} \). |
| bl_ptr | Pointer to the Bravais lattice. |
Definition at line 108 of file bravais_lattice.hpp.
|
inline |
Get the coordinate \( R^{\mathbf{n}}_i \) of the corresponding lattice vector \(\mathbf{R}^{\mathbf{n}} \).
Definition at line 133 of file bravais_lattice.hpp.
|
inlinenodiscard |
Add two lattice points \( \mathbf{R}^{\mathbf{n}} \) and \( \mathbf{R}^{\mathbf{m}} \).
| pt | Lattice point \( \mathbf{R}^{\mathbf{m}} \) (has to belong to the same Bravais lattice). |
Definition at line 151 of file bravais_lattice.hpp.
|
inlinenodiscard |
Invert the lattice point \( \mathbf{R}^{\mathbf{n}} \).
Definition at line 172 of file bravais_lattice.hpp.
|
inlinenodiscard |
Subtract two lattice points \( \mathbf{R}^{\mathbf{n}} \) and \( \mathbf{R}^{\mathbf{m}} \).
| pt | Lattice point \( \mathbf{R}^{\mathbf{m}} \) (has to belong to the same Bravais lattice). |
Definition at line 163 of file bravais_lattice.hpp.
|
inline |
Get the coordinate \( R^{\mathbf{n}}_i \) of the corresponding lattice vector \(\mathbf{R}^{\mathbf{n}} \).
| i | Dimension index \( i \). |
Definition at line 142 of file bravais_lattice.hpp.
|
friend |
Write a lattice point to a std::ostream.
| sout | std::ostream object. |
| pt | Lattice point to be written. |
Definition at line 181 of file bravais_lattice.hpp.