1#ifndef __DENSITY_MATRIX_HPP__
2#define __DENSITY_MATRIX_HPP__
8 std::vector<sddk::mdarray<std::complex<double>, 3>> data_;
12 data_ = std::vector<sddk::mdarray<std::complex<double>, 3>>(uc__.
num_atoms());
13 for (
int ia = 0; ia < uc__.
num_atoms(); ia++) {
14 auto& atom = uc__.
atom(ia);
22 for (
auto& e : data_) {
30 auto& operator[](
int ia__)
34 auto const& operator[](
int ia__)
const
38 auto const begin()
const
42 auto const end()
const
51 for (
size_t i = 0; i < src__.size(); i++) {
52 copy(src__[i], dest__[i]);
Representation of a unit cell.
Atom const & atom(int id__) const
Return const atom instance by id.
int num_atoms() const
Number of atoms in the unit cell.
Multidimensional array with the column-major (Fortran) order.
Namespace of the SIRIUS library.