|
Triumvirate C++ API 0.5.0.post1.dev301+g026f21751
Three-point clustering measurements in large-scale structure analyses.
|
Array operations. More...
#include <fftw3.h>#include <algorithm>#include <cfenv>#include <cmath>#include <cstdarg>#include <stdexcept>#include <vector>#include "monitor.hpp"
Include dependency graph for arrayops.hpp:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| class | trv::sys::ExtrapError |
| Exception raised when an extrapolation error occurs. More... | |
Namespaces | |
| namespace | trv |
| namespace | trv::sys |
| namespace | trv::array |
Enumerations | |
| enum | trv::array::ExtrapOption { trv::array::NONE = 0 , trv::array::ZERO = 1 , trv::array::PAD = 2 , trv::array::LIN = 3 , trv::array::LOGLIN = 4 } |
| Extrapolation scheme. More... | |
Functions | |
| template<typename T> | |
| bool | trv::array::check_isclose (const std::vector< T > &arr, const T val, T atol=1.e-8, T rtol=1.e-5) |
| Check if all elements of a 1-d array are close to a given value. | |
| int | trv::array::check_1d_array (std::vector< double > &a, bool check_lin, bool check_loglin, bool check_sign) |
| Check the linearity or log-linearity of a 1-d array. | |
| void | trv::array::extrap_lin (std::vector< double > &a, int N_ext, std::vector< double > &a_ext) |
| Extrapolate a 1-d array linearly. | |
| void | trv::array::extrap_loglin (std::vector< double > &a, int N_ext, std::vector< double > &a_ext) |
| Extrapolate a 1-d array exponentially (i.e. log-linearly). | |
| void | trv::array::extrap_pad (std::vector< double > &a, int N_ext, double c_lower, double c_upper, std::vector< double > &a_ext) |
| Extrapolate a 1-d array by constant padding. | |
| void | trv::array::extrap2d_lin (std::vector< std::vector< double > > &a, int N_row_ext, int N_col_ext, std::vector< std::vector< double > > &a_ext) |
| Extrapolate a 2-d array bi-linearly. | |
| void | trv::array::extrap2d_loglin (std::vector< std::vector< double > > &a, int N_row_ext, int N_col_ext, std::vector< std::vector< double > > &a_ext) |
| Extrapolate a 2-d array bi-exponentially (i.e. log-bilinearly). | |
| void | trv::array::extrap2d_pad (std::vector< std::vector< double > > &a, int N_row_ext, int N_col_ext, double c_row_lower, double c_row_upper, double c_col_lower, double c_col_upper, std::vector< std::vector< double > > &a_ext) |
| Extrapolate a 2-d array by constant padding. | |
| std::vector< int > | trv::array::get_sorted_indices (std::vector< int > sorting_vector) |
| Get the sorted indices. | |
Array operations.
1- or 2-d array operations provided include:
Definition in file arrayops.hpp.