|
Triumvirate C++ API 0.5.0
Three-point clustering measurements in large-scale structure analyses.
|
Enumerations | |
| enum | ExtrapOption { NONE = 0 , ZERO = 1 , PAD = 2 , LIN = 3 , LOGLIN = 4 } |
| Extrapolation scheme. More... | |
Functions | |
| template<typename T > | |
| bool | 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 | 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 | extrap_lin (std::vector< double > &a, int N_ext, std::vector< double > &a_ext) |
| Extrapolate a 1-d array linearly. | |
| void | 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 | 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 | 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 | 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 | 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 > | get_sorted_indices (std::vector< int > sorting_vector) |
| Get the sorted indices. | |
Extrapolation scheme.
| Enumerator | |
|---|---|
| NONE | 0: none |
| ZERO | 1: zero |
| PAD | 2: pad |
| LIN | 3: linear |
| LOGLIN | 4: log-linear |
Definition at line 83 of file arrayops.hpp.
| 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.
| T | A typename. |
| arr | 1-d array as a vector. |
| val | Value to check against. |
| atol | Absolute tolerance (default is 1.e-8). |
| rtol | Relative tolerance (default is 1.e-5). |
true if all elements are close to val, false otherwise. Definition at line 103 of file arrayops.hpp.
Here is the call graph for this function:
Here is the caller graph for this function:| 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.
| a | 1-d array as a vector. |
| check_lin | If true, check linearity. |
| check_loglin | If true, check log-linearity. This also checks for any sign change or zeros. |
| check_sign | If true, check for any sign change or zeros. |
Definition at line 58 of file arrayops.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void trv::array::extrap_lin | ( | std::vector< double > & | a, |
| int | N_ext, | ||
| std::vector< double > & | a_ext ) |
Extrapolate a 1-d array linearly.
| [in] | a | 1-d array as a vector. |
| [in] | N_ext | Number of extra elements on either side. |
| [out] | a_ext | Extrapolated 1-d array. |
Definition at line 92 of file arrayops.cpp.
Here is the caller graph for this function:| 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).
| [in] | a | 1-d array as a vector. |
| [in] | N_ext | Number of extra elements on either side. |
| [out] | a_ext | Extrapolated 1-d array. |
Definition at line 121 of file arrayops.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| 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.
| [in] | a | 1-d array as a vector. |
| [in] | N_ext | Number of extra elements on either side. |
| [in] | c_lower | Lower-end padding constant. |
| [in] | c_upper | Upper-end padding constant. |
| [out] | a_ext | Extrapolated 1-d array. |
Definition at line 180 of file arrayops.cpp.
Here is the caller graph for this function:| 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.
| [in] | a | 2-d array. |
| [in] | N_row_ext | Number of extra elements on either side of each row. |
| [in] | N_col_ext | Number of extra elements on either side of each column. |
| [out] | a_ext | Extrapolated 2-d array. |
Definition at line 203 of file arrayops.cpp.
| 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).
| [in] | a | 2-d array. |
| [in] | N_row_ext | Number of extra elements on either side of each row. |
| [in] | N_col_ext | Number of extra elements on either side of each column. |
| [out] | a_ext | Extrapolated 2-d array. |
Definition at line 214 of file arrayops.cpp.
| 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.
| [in] | a | 2-d array. |
| [in] | N_row_ext | Number of extra elements on either side of each row. |
| [in] | N_col_ext | Number of extra elements on either side of each column. |
| [in] | c_row_lower | Lower-end padding constant for each row. |
| [in] | c_row_upper | Upper-end padding constant for each row. |
| [in] | c_col_lower | Lower-end padding constant for each column. |
| [in] | c_col_upper | Upper-end padding constant for each column. |
| [out] | a_ext | Extrapolated 2-d array. |
Definition at line 225 of file arrayops.cpp.
| std::vector< int > trv::array::get_sorted_indices | ( | std::vector< int > | sorting_vector | ) |
Get the sorted indices.
| sorting_vector | Sorting vector. |
Definition at line 243 of file arrayops.cpp.