122 const std::vector<T>& arr,
const T val,
123 T atol = 1.e-8, T rtol = 1.e-5
126 if (std::abs(elem - val) > atol + rtol * std::abs(val)) {
return false;}
143 std::vector<double>& a,
bool check_lin,
bool check_loglin,
bool check_sign
153void extrap_lin(std::vector<double>& a,
int N_ext, std::vector<double>& a_ext);
163 std::vector<double>& a,
int N_ext, std::vector<double>& a_ext
176 std::vector<double>& a,
177 int N_ext,
double c_lower,
double c_upper,
178 std::vector<double>& a_ext
192 std::vector< std::vector<double> >& a,
193 int N_row_ext,
int N_col_ext,
194 std::vector< std::vector<double> >& a_ext
208 std::vector< std::vector<double> >& a,
209 int N_row_ext,
int N_col_ext,
210 std::vector< std::vector<double> >& a_ext
228 std::vector< std::vector<double> >& a,
229 int N_row_ext,
int N_col_ext,
230 double c_row_lower,
double c_row_upper,
231 double c_col_lower,
double c_col_upper,
232 std::vector< std::vector<double> >& a_ext
246std::vector<int> get_sorted_indices(std::vector<int> sorting_vector);
253#if defined(TRV_USE_HIP) || defined(TRV_USE_CUDA)
262void copy_complex_array_dtoh(
263 fft_double_complex* d_arr, fftw_complex* arr, std::size_t length
274void copy_complex_array_htod(
275 fftw_complex* arr, fft_double_complex* d_arr, std::size_t length
286void copy_complex_array_dtoh_mgpu(
287 fftHandle plan, libXtDesc* libxt_desc, fftw_complex* arr
298void copy_complex_array_htod_mgpu(
299 fftHandle plan, libXtDesc* libxt_desc, fftw_complex* arr