![]() |
PURIFY
Next-generation radio interferometric imaging
|
Classes | |
class | IndexMapping |
class | YamlParser |
Typedefs | |
typedef std::complex< float > | t_complexf |
typedef Eigen::Triplet< t_complex > | t_tripletList |
Root of the type hierarchy for triplet lists. More... | |
template<class T = t_real, class I = t_int> | |
using | Sparse = Eigen::SparseMatrix< T, Eigen::RowMajor, I > |
A matrix of a given type. More... | |
template<class T = t_real, class I = t_int> | |
using | SparseVector = Eigen::SparseVector< T, Eigen::RowMajor, I > |
Enumerations | |
enum class | diff_func_type { L2Norm , L2Norm_with_CRR } |
enum class | nondiff_func_type { L1Norm , Denoiser , RealIndicator } |
enum class | stokes { I , Q , U , V , XX , YY , XY , YX , LL , RR , LR , RL , P } |
enum class | dde_type { wkernel_radial , wkernel_2d } |
Types of DDEs in purify. More... | |
Functions | |
std::vector< t_int > | all_to_all_send_sizes (const std::vector< t_int > &recv_sizes, const sopt::mpi::Communicator &comm) |
std::string | version () |
Returns library version. More... | |
std::tuple< uint8_t, uint8_t, uint8_t > | version_tuple () |
Returns library version. More... | |
std::string | gitref () |
Returns library git reference, if known. More... | |
std::string | default_logging_level () |
Default logging level. More... | |
template<class T0 , class STORAGE_INDEX_TYPE = t_int> | |
std::set< STORAGE_INDEX_TYPE > | non_empty_outers (Eigen::SparseMatrixBase< T0 > const &matrix) |
Indices of non empty outer indices. More... | |
template<class T0 > | |
Sparse< typename T0::Scalar > | compress_outer (T0 const &matrix) |
Indices of non empty outer indices. More... | |
std::tuple< std::function< t_real(t_real)>, std::function< t_real(t_real)>, std::function< t_real(t_real)>, std::function< t_real(t_real)> > | create_kernels (const kernels::kernel kernel_name_, const t_uint Ju_, const t_uint Jv_, const t_real imsizey_, const t_real imsizex_, const t_real oversample_ratio) |
std::tuple< std::function< t_real(t_real)>, std::function< t_real(t_real)> > | create_radial_ftkernel (const kernels::kernel kernel_name_, const t_uint Ju_, const t_real oversample_ratio) |
std::vector< std::string > | split (const std::string &s, char delim) |
splits string into vector More... | |
void | mkdir_recursive (const std::string &path) |
recursively create directories when they do not exist More... | |
template<class T > | |
void | mkdir_recursive (const T &path) |
boost wrapper More... | |
template<typename T > | |
void | split (const std::string &s, char delim, T result) |
adds split string to container More... | |
template<typename T > | |
T | get_vector (const YAML::Node &node_map, const std::initializer_list< const char * > indicies) |
template<class T > | |
std::enable_if< std::is_scalar< T >::value, std::vector< T > >::type | read_data (const std::string &filename) |
read real values from data file More... | |
template<class T > | |
std::enable_if< std::is_same< t_complex, T >::value, std::vector< T > >::type | read_data (const std::string &filename) |
read complex values from data file More... | |
std::vector< t_complex > | read_data (const std::vector< t_real > &input) |
std::string | data_directory () |
Holds data and such. More... | |
std::string | models_directory () |
Holds TF models. More... | |
std::string | output_directory () |
Where test outputs go. More... | |
std::string | data_filename (std::string const &filename) |
Holds data and such. More... | |
std::string | image_filename (std::string const &filename) |
Image filename. More... | |
std::string | visibility_filename (std::string const &filename) |
Visibility filename. More... | |
std::string | vla_filename (std::string const &filename) |
Specific vla data. More... | |
std::string | atca_filename (std::string const &filename) |
Specific atca data. More... | |
std::string | mwa_filename (std::string const &filename) |
Specific mwa data. More... | |
std::string | gridding_filename (std::string const &filename) |
Some gridding regression data. More... | |
std::string | degridding_filename (std::string const &filename) |
Some degridding regression data. More... | |
std::string | output_filename (std::string const &filename) |
Test output file. More... | |
std::string | ngc3256_ms () |
Variables | |
const std::map< std::string, diff_func_type > | diff_type_string |
const std::map< std::string, nondiff_func_type > | nondiff_type_string |
const std::map< stokes, t_int > | stokes_int |
const std::map< std::string, stokes > | stokes_string |
YamlParser definition for the purify project
YamlParser header for purify project
It browses and searches through the config.yaml file in the data folder and sets the class variable members accordingly, to be used by the purify algorithm.
filepath | path to the config file |
using purify::Sparse = typedef Eigen::SparseMatrix<T, Eigen::RowMajor, I> |
using purify::SparseVector = typedef Eigen::SparseVector<T, Eigen::RowMajor, I> |
typedef std::complex<float> purify::t_complexf |
typedef Eigen::Triplet<t_complex> purify::t_tripletList |
|
strong |
|
strong |
|
strong |
|
strong |
std::vector<t_int> purify::all_to_all_send_sizes | ( | const std::vector< t_int > & | recv_sizes, |
const sopt::mpi::Communicator & | comm | ||
) |
Definition at line 5 of file AllToAllSparseVector.cc.
|
inline |
Specific atca data.
Definition at line 32 of file directories.in.h.
References data_filename().
Referenced by TEST_CASE().
Sparse<typename T0::Scalar> purify::compress_outer | ( | T0 const & | matrix | ) |
Indices of non empty outer indices.
Definition at line 71 of file IndexMapping.h.
References non_empty_outers().
Referenced by TEST_CASE().
std::tuple< std::function< t_real(t_real)>, std::function< t_real(t_real)>, std::function< t_real(t_real)>, std::function< t_real(t_real)> > purify::create_kernels | ( | const kernels::kernel | kernel_name_, |
const t_uint | Ju_, | ||
const t_uint | Jv_, | ||
const t_real | imsizey_, | ||
const t_real | imsizex_, | ||
const t_real | oversample_ratio | ||
) |
Definition at line 249 of file kernels.cc.
References purify::kernels::box, purify::kernels::ft_gaussian(), purify::kernels::ft_gaussian_general(), purify::kernels::ft_kaiser_bessel(), purify::kernels::ft_kaiser_bessel_general(), purify::kernels::ft_pill_box(), purify::kernels::ft_pswf(), purify::kernels::gauss, purify::kernels::gauss_alt, purify::kernels::gaussian(), purify::kernels::gaussian_general(), purify::kernels::kaiser_bessel(), purify::kernels::kaiser_bessel_general(), purify::kernels::kb, purify::kernels::kb_presample, purify::kernels::kbmin, purify::kernels::kernel_samples(), purify::kernels::kernel_zero_interp(), purify::constant::pi, purify::kernels::pill_box(), purify::kernels::pswf, PURIFY_ERROR, and PURIFY_MEDIUM_LOG.
Referenced by purify::operators::base_degrid_operator_2d(), GridOperatorFixture::SetUp(), and TEST_CASE().
std::tuple< std::function< t_real(t_real)>, std::function< t_real(t_real)> > purify::create_radial_ftkernel | ( | const kernels::kernel | kernel_name_, |
const t_uint | Ju_, | ||
const t_real | oversample_ratio | ||
) |
Definition at line 347 of file kernels.cc.
References purify::kernels::box, purify::kernels::ft_gaussian(), purify::kernels::ft_kaiser_bessel(), purify::kernels::ft_kaiser_bessel_general(), purify::kernels::ft_pill_box(), purify::kernels::ft_pswf(), purify::kernels::gauss, purify::kernels::gaussian(), purify::kernels::kaiser_bessel(), purify::kernels::kaiser_bessel_general(), purify::kernels::kb, purify::kernels::kbmin, purify::constant::pi, purify::kernels::pill_box(), purify::kernels::pswf, PURIFY_ERROR, and PURIFY_MEDIUM_LOG.
Referenced by purify::operators::base_degrid_operator_2d().
|
inline |
|
inline |
Holds data and such.
Definition at line 16 of file directories.in.h.
References data_directory().
Referenced by atca_filename(), degridding_filename(), gridding_filename(), image_filename(), mwa_filename(), StochasticAlgoFixture::SetUp(), TEST_CASE(), visibility_filename(), and vla_filename().
|
inline |
|
inline |
Some degridding regression data.
Definition at line 44 of file directories.in.h.
References data_filename().
T purify::get_vector | ( | const YAML::Node & | node_map, |
const std::initializer_list< const char * > | indicies | ||
) |
Definition at line 74 of file yaml-parser.cc.
|
inline |
Returns library git reference, if known.
Definition at line 49 of file config.in.h.
|
inline |
Some gridding regression data.
Definition at line 40 of file directories.in.h.
References data_filename().
|
inline |
Image filename.
Definition at line 20 of file directories.in.h.
References data_filename().
Referenced by main().
void purify::mkdir_recursive | ( | const std::string & | path | ) |
recursively create directories when they do not exist
Definition at line 151 of file read_measurements.cc.
References purify::read_measurements::dir_exists(), and split().
Referenced by main(), mkdir_recursive(), TEST_CASE(), and purify::YamlParser::writeOutput().
void purify::mkdir_recursive | ( | const T & | path | ) |
boost wrapper
Definition at line 45 of file read_measurements.h.
References mkdir_recursive().
|
inline |
Holds TF models.
Definition at line 11 of file directories.in.h.
|
inline |
Specific mwa data.
Definition at line 36 of file directories.in.h.
References data_filename().
Referenced by main(), and TEST_CASE().
|
inline |
std::set<STORAGE_INDEX_TYPE> purify::non_empty_outers | ( | Eigen::SparseMatrixBase< T0 > const & | matrix | ) |
Indices of non empty outer indices.
Definition at line 61 of file IndexMapping.h.
Referenced by compress_outer(), and TEST_CASE().
|
inline |
Where test outputs go.
Definition at line 13 of file directories.in.h.
Referenced by output_filename().
|
inline |
Test output file.
Definition at line 49 of file directories.in.h.
References output_directory().
Referenced by main(), padmm(), and TEST_CASE().
std::enable_if<std::is_scalar<T>::value, std::vector<T> >::type purify::read_data | ( | const std::string & | filename | ) |
std::enable_if<std::is_same<t_complex, T>::value, std::vector<T> >::type purify::read_data | ( | const std::string & | filename | ) |
std::vector<t_complex> purify::read_data | ( | const std::vector< t_real > & | input | ) |
std::vector< std::string > purify::split | ( | const std::string & | s, |
char | delim | ||
) |
splits string into vector
Definition at line 146 of file read_measurements.cc.
Referenced by mkdir_recursive().
void purify::split | ( | const std::string & | s, |
char | delim, | ||
T | result | ||
) |
adds split string to container
Definition at line 50 of file read_measurements.h.
|
inline |
Returns library version.
Definition at line 40 of file config.in.h.
Referenced by main(), and TEST_CASE().
|
inline |
Returns library version.
Definition at line 42 of file config.in.h.
|
inline |
Visibility filename.
Definition at line 24 of file directories.in.h.
References data_filename().
Referenced by b_utilities::random_measurements().
|
inline |
Specific vla data.
Definition at line 28 of file directories.in.h.
References data_filename().
Referenced by main(), and TEST_CASE().
const std::map<std::string, diff_func_type> purify::diff_type_string |
Definition at line 27 of file types.h.
Referenced by purify::YamlParser::parseAndSetAlgorithmOptions().
const std::map<std::string, nondiff_func_type> purify::nondiff_type_string |
Definition at line 32 of file types.h.
Referenced by purify::YamlParser::parseAndSetAlgorithmOptions().
const std::map<stokes, t_int> purify::stokes_int |
Definition at line 45 of file types.h.
Referenced by purify::pfitsio::header_params::header_params(), and TEST_CASE().
const std::map<std::string, stokes> purify::stokes_string |
Definition at line 49 of file types.h.
Referenced by purify::YamlParser::parseAndSetGeneralConfiguration(), and TEST_CASE().