ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
Namespaces | Functions
truncated_func.h File Reference
#include "source_base/libm/libm.h"
#include <cstdint>
#include <cstring>
#include <complex>
Include dependency graph for truncated_func.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  ModuleBase
 

Functions

template<typename FPTYPE >
FPTYPE ModuleBase::truncated_exp (FPTYPE x)
 Truncated exponential function to avoid underflow.
 
template<typename FPTYPE >
FPTYPE ModuleBase::truncated_erfc (FPTYPE x)
 Truncated complementary error function to avoid underflow for large arguments.
 
template<typename FPTYPE >
void ModuleBase::truncated_underflow (FPTYPE &x)
 Truncated value function to avoid underflow.
 
template<>
void ModuleBase::truncated_underflow (double &x)
 
template<>
void ModuleBase::truncated_underflow (float &x)
 
template<typename T >
void ModuleBase::truncated_underflow (std::complex< T > &x)