utils Namespace Reference
|
LibRPA
|
Classes | |
| struct | LevMarqFitting |
| Non-linear fitting using the Levenberg-Marquardt algorithm. More... | |
| class | CubicSpline |
| Class to perform cubic spline interolation. More... | |
Functions | |
| std::vector< double > | interp_cubic_spline (const std::vector< double > &xs, const std::vector< double > &ys, const std::vector< double > &xs_new) |
| Helper function to performance cubic spline interpolation. More... | |
| template<typename... Args> | |
| void | lib_printf (const char *format, Args &&... args) |
| printf that handles the stdout redirect | |
| void | display_free_mem () |
| Display the free memory of the system. | |
| void | release_free_mem () |
| Release system free memory. | |
| template<typename... Args> | |
| void | lib_printf_root (const char *format, Args &&... args) |
| simlar to lib_printf, but only proc 0 will dump | |
| template<typename... Args> | |
| void | lib_printf_coll (const char *format, Args &&... args) |
| simlar to lib_printf, but all processes will print in the order of myid | |
Detailed Description
Utilities functions
Function Documentation
◆ interp_cubic_spline()
| std::vector< double > LIBRPA::utils::interp_cubic_spline | ( | const std::vector< double > & | xs, |
| const std::vector< double > & | ys, | ||
| const std::vector< double > & | xs_new | ||
| ) |
Helper function to performance cubic spline interpolation.
- Parameters
-
[in] x values of avaiable data points [in] y values of avaiable data points [in] x values of points to interpolate
- Returns
- y values of points to interpolate
Here is the call graph for this function:
Here is the caller graph for this function:
Generated by