|
Ensign
Low-rank framework for multi-core CPUs and GPUs
|
Provides numerical helpers and utilities for arrays and indices. More...
#include <generic/common.hpp>Go to the source code of this file.
Namespaces | |
| namespace | Ensign |
| Core namespace for Ensign's numerical algorithms and data structures. | |
Functions | |
| template<class T , size_t d> | |
| T | Ensign::prod (array< T, d > a) |
| template<class T > | |
| T | Ensign::phi1 (T a) |
| Computes (exp(z)-1)/z. | |
| template<class T > | |
| T | Ensign::phi1_im (T a) |
| Computes (exp(i a)-1)/(i a) | |
| template<class T > | |
| T | Ensign::phi2_im (T a) |
| Computes (exp(i a)-1-i a)/((i a)^2) | |
| template<size_t d> | |
| array< Index, d > | Ensign::parse (string s) |
| Parser for command line arguments separated by whitespaces. | |
| template<class T > | |
| double | Ensign::max_err (T err, T diff) |
| Maximum function which treats NaNs correctly. | |
| template<class InputIt , class OutputIt > | |
| void | Ensign::remove_element (InputIt first, InputIt last, OutputIt d_first, const Index idx) |
Provides numerical helpers and utilities for arrays and indices.
Definition in file utility.hpp.