DP3
SolverTools.h
Go to the documentation of this file.
1 // Copyright (C) 2023 ASTRON (Netherlands Institute for Radio Astronomy)
2 // SPDX-License-Identifier: GPL-3.0-or-later
3 
4 #ifndef DDECAL_SOLVER_TOOLS_H_
5 #define DDECAL_SOLVER_TOOLS_H_
6 
7 #include <memory>
8 #include <vector>
9 
10 #include "base/DPBuffer.h"
11 
12 namespace dp3::ddecal {
13 
31  const base::DPBuffer::WeightsType& weights);
32 
56  std::vector<std::unique_ptr<base::DPBuffer>>& unweighted_buffers,
57  const std::vector<std::string>& direction_names,
58  std::vector<base::DPBuffer>& weighted_buffers,
59  bool keep_unweighted_model_data, bool linear_weighting_mode);
60 
61 } // namespace dp3::ddecal
62 
63 #endif // DDECAL_SOLVER_TOOLS_H
Buffer holding the data of a timeslot/band.
xt::xtensor< float, 3 > WeightsType
Definition: DPBuffer.h:96
aocommon::xt::UTensor< std::complex< float >, 3 > DataType
Definition: DPBuffer.h:95
Definition: AmplitudeOnlyConstraint.h:12
void AssignAndWeight(std::vector< std::unique_ptr< base::DPBuffer >> &unweighted_buffers, const std::vector< std::string > &direction_names, std::vector< base::DPBuffer > &weighted_buffers, bool keep_unweighted_model_data, bool linear_weighting_mode)
void Weigh(const base::DPBuffer::DataType &in, base::DPBuffer::DataType &out, const base::DPBuffer::WeightsType &weights)