ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
hybrid_image_domain.h
Go to the documentation of this file.
1#ifndef HYBRID_IMAGE_DOMAIN_H
2#define HYBRID_IMAGE_DOMAIN_H
3
4#include <RI/global/Tensor.h>
5#include <array>
6#include <complex>
7#include <map>
8#include <vector>
9
10namespace RI_2D_Comm
11{
12using ImageCell = std::array<int, 3>;
13
14ImageCell centered_image(const ImageCell& cell, const ImageCell& period);
15
16// Use the existing LibRI max-norm threshold, with no additional approximation.
17template <typename T>
18ImageCell retained_image_extent(std::map<int, std::map<std::pair<int, ImageCell>, RI::Tensor<T>>>& blocks,
19 const double threshold);
20
21ImageCell hybrid_image_period(const ImageCell& c_extent, const ImageCell& v_extent);
22
23template <typename T>
24void unfold_hybrid_images(std::vector<std::map<int, std::map<std::pair<int, ImageCell>, RI::Tensor<T>>>>& density,
25 const ImageCell& physical_period, const ImageCell& image_period,
26 const std::array<double, 3>& mesh_origin,
27 const std::array<double, 3>& input_phase_per_cell);
28
29template <typename T>
30void decode_hybrid_images(std::map<int, std::map<std::pair<int, ImageCell>, RI::Tensor<T>>>& blocks,
31 const ImageCell& period);
32} // namespace RI_2D_Comm
33#endif
Definition rpa_lri_coeff_v1.h:11
Definition hybrid_gauge_phase.cpp:10
ImageCell centered_image(const ImageCell &cell, const ImageCell &period)
Definition hybrid_image_domain.cpp:10
std::array< int, 3 > ImageCell
Definition hybrid_image_domain.h:12
void decode_hybrid_images(std::map< int, std::map< std::pair< int, ImageCell >, RI::Tensor< T > > > &blocks, const ImageCell &period)
Definition hybrid_image_domain.cpp:139
void unfold_hybrid_images(std::vector< std::map< int, std::map< std::pair< int, ImageCell >, RI::Tensor< T > > > > &density, const ImageCell &physical_period, const ImageCell &image_period, const std::array< double, 3 > &mesh_origin, const std::array< double, 3 > &input_phase_per_cell)
Definition hybrid_image_domain.cpp:80
ImageCell hybrid_image_period(const ImageCell &c_extent, const ImageCell &v_extent)
Definition hybrid_image_domain.cpp:62
ImageCell retained_image_extent(std::map< int, std::map< std::pair< int, ImageCell >, RI::Tensor< T > > > &blocks, const double threshold)
Definition hybrid_image_domain.cpp:27
#define threshold
Definition sph_bessel_rec_test.cpp:4