explicit_mapmaking
 All Classes Files Pages
rhs_pol.hpp
Go to the documentation of this file.
1 
8 #ifndef EXPLICIT_MAPMAKING_RHS_POL_HPP
9 #define EXPLICIT_MAPMAKING_RHS_POL_HPP
10 
11 #include "rhs.hpp"
12 
13 namespace mapmaking {
14 // Squared matrix
15 class RHSPol : public RHS {
16  public:
17  RHSPol(const Matrix& matrix) : RHS(matrix) {}
18  RHSPol(Grid* grid, DataManager* data_manager) :
19  RHS(grid, data_manager, data_manager->n_pixel()*2) {}
20 
21  private:
22  inline void UpdateRHS(const double& contrib, const CES& ces, const int t, std::vector<double>& rhs) {
23  rhs[ces.pixel(t) * 2] += ces.cos(t) * contrib;
24  rhs[ces.pixel(t) * 2 + 1] += ces.sin(t) * contrib;
25  }
26 };
27 }
28 
29 #endif // EXPLICIT_MAPMAKING_RHS_POL_HPP
Definition: data_manager.hpp:21
Definition: grid.hpp:16
Definition: atfa.hpp:18
Definition: rhs_pol.hpp:15
Definition: rhs.hpp:15
Definition: ces.hpp:34
Definition: matrix.hpp:22
Abstract class for the RHS matrix construction.