|
Triumvirate C++ API 0.5.0
Three-point clustering measurements in large-scale structure analyses.
|
Classes | |
| class | ExtrapError |
| Exception raised when an extrapolation error occurs. More... | |
| class | InvalidDataError |
| Exception raised when the data to be operated on are invalid. More... | |
| class | InvalidParameterError |
| Exception raised when parameters are invalid. More... | |
| class | IOError |
| Exception raised when an input/output operation fails. More... | |
| class | Logger |
| Logger with logging level differentiation. More... | |
| class | ProgressBar |
| Progress bar for tracking tasks. More... | |
| class | UnimplementedError |
| Exception raised when a function or method is unimplemented. More... | |
Enumerations | |
| enum | LogLevel { NSET = 0 , DBUG = 10 , STAT = 20 , INFO = 30 , WARN = 40 , ERRO = 50 } |
| Logging levels. More... | |
Functions | |
| bool | if_filepath_is_set (const std::string &pathstr) |
| Check if a file path is set. | |
| void | make_write_dir (std::string dirstr) |
| Make write directory. | |
| template<typename T > | |
| double | size_in_gb (long long num) |
| Return size in gibibytes. | |
| template<typename T > | |
| double | size_in_gb (int num) |
| Return size in gibibytes. | |
| void | update_maxmem () |
| Update the maximum memory usage estimate. | |
| void | update_maxcntgrid () |
| Update the maximum 3-d grid counts. | |
| std::string | show_current_datetime () |
| Return the current date-time string in 'YYYY-MM-DD HH:MM:SS' format. | |
| std::string | show_elapsed_time (double duration_in_seconds) |
| Return the elapsed-time string in 'HH:MM:SS' format. | |
| std::string | show_timestamp () |
| Return the timestamp string including the elapsed time. | |
| void | display_prog_logo () |
Display program logo in stdout. | |
| void | display_prog_licence () |
Display program licence in stdout. | |
| void | display_prog_info () |
Display program information in stdout. | |
| void | display_prog_logbars (int endpoint) |
Display program log bars in stdout. | |
Variables | |
| int | currTask = 0 |
| current task | |
| double | gbytesMem = 0. |
| current memory usage in gibibytes | |
| double | gbytesMaxMem = 0. |
| maximum memory usage in gibibytes | |
| int | count_rgrid = 0 |
| number of 3-d real grids | |
| int | count_cgrid = 0 |
| number of 3-d complex grids | |
| float | count_grid = 0. |
| number of grids | |
| int | max_count_rgrid = 0 |
| maximum number of 3-d real grids | |
| int | max_count_cgrid = 0 |
| maximum number of 3-d complex grids | |
| float | max_count_grid = 0. |
| maximum number of grids | |
| int | count_fft = 0 |
| number of FFTs | |
| int | count_ifft = 0 |
| number of IFFTs | |
| bool | fftw_wisdom_f_imported = false |
| wisdom import status for forward transform | |
| bool | fftw_wisdom_b_imported = false |
| wisdom import status for backward transform | |
| Logger | logger |
default logger (at NSET logging level) | |
| auto | clockStart = std::chrono::steady_clock::now() |
| program starting time | |
Logging levels.
| Enumerator | |
|---|---|
| NSET | 0: unset |
| DBUG | 10: debugging |
| STAT | 20: status |
| INFO | 30: info |
| WARN | 40: warning |
| ERRO | 50: error/critical |
Definition at line 160 of file monitor.hpp.
| void trv::sys::make_write_dir | ( | std::string | dirstr | ) |
Make write directory.
| dirstr | Directory path string. |
| trv::sys::IOError | When write directory cannot be created. |
Definition at line 57 of file io.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| double trv::sys::size_in_gb | ( | long long | num | ) |
Return size in gibibytes.
| T | A typename. |
| num | Number of type-double elements. |
Definition at line 101 of file monitor.hpp.
Here is the caller graph for this function:| double trv::sys::size_in_gb | ( | int | num | ) |
Return size in gibibytes.
| T | A typename. |
| num | Number of type-double elements. |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 116 of file monitor.hpp.
| void trv::sys::update_maxmem | ( | ) |
Update the maximum memory usage estimate.
Definition at line 68 of file monitor.cpp.
Here is the caller graph for this function:| void trv::sys::update_maxcntgrid | ( | ) |
Update the maximum 3-d grid counts.
Definition at line 73 of file monitor.cpp.
Here is the caller graph for this function:| std::string trv::sys::show_current_datetime | ( | ) |
Return the current date-time string in 'YYYY-MM-DD HH:MM:SS' format.
Definition at line 85 of file monitor.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| std::string trv::sys::show_elapsed_time | ( | double | duration_in_seconds | ) |
Return the elapsed-time string in 'HH:MM:SS' format.
| duration_in_seconds | Duration in seconds. |
Definition at line 102 of file monitor.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| std::string trv::sys::show_timestamp | ( | ) |
Return the timestamp string including the elapsed time.
Definition at line 128 of file monitor.cpp.
Here is the call graph for this function:| void trv::sys::display_prog_logo | ( | ) |
Display program logo in stdout.
Definition at line 475 of file monitor.cpp.
Here is the caller graph for this function:| void trv::sys::display_prog_licence | ( | ) |
Display program licence in stdout.
Definition at line 489 of file monitor.cpp.
Here is the caller graph for this function:| void trv::sys::display_prog_info | ( | ) |
Display program information in stdout.
Definition at line 508 of file monitor.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Display program log bars in stdout.
| endpoint | Progress bar endpoint, either 0 (start) or 1 (finish). |
Definition at line 534 of file monitor.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| int trv::sys::currTask = 0 |
current task
Definition at line 44 of file monitor.cpp.
| double trv::sys::gbytesMem = 0. |
current memory usage in gibibytes
Definition at line 46 of file monitor.cpp.
| double trv::sys::gbytesMaxMem = 0. |
maximum memory usage in gibibytes
Definition at line 47 of file monitor.cpp.
| int trv::sys::count_rgrid = 0 |
number of 3-d real grids
Definition at line 49 of file monitor.cpp.
| int trv::sys::count_cgrid = 0 |
number of 3-d complex grids
Definition at line 50 of file monitor.cpp.
| float trv::sys::count_grid = 0. |
number of grids
Definition at line 51 of file monitor.cpp.
| int trv::sys::max_count_rgrid = 0 |
maximum number of 3-d real grids
Definition at line 52 of file monitor.cpp.
| int trv::sys::max_count_cgrid = 0 |
maximum number of 3-d complex grids
Definition at line 53 of file monitor.cpp.
| float trv::sys::max_count_grid = 0. |
maximum number of grids
Definition at line 54 of file monitor.cpp.
| int trv::sys::count_fft = 0 |
number of FFTs
Definition at line 56 of file monitor.cpp.
| int trv::sys::count_ifft = 0 |
number of IFFTs
Definition at line 57 of file monitor.cpp.
wisdom import status for forward transform
Definition at line 59 of file monitor.cpp.
wisdom import status for backward transform
Definition at line 60 of file monitor.cpp.
|
extern |
default logger (at NSET logging level)
| auto trv::sys::clockStart = std::chrono::steady_clock::now() |
program starting time
Definition at line 62 of file monitor.cpp.