STORMM Source Documentation
Loading...
Searching...
No Matches
stormm::stmath::JfErfc Class Reference

Implement Norbert Juffa's fast erfc(alpha * x) approximation for 32-bit floating point computations. In the most prominent case for molecular dynamics, alpha corresponds to the "Ewald coefficient.". More...

#include <juffa.h>

Public Member Functions

 JfErfc (float alpha_in=1.0)
 The constructor requires a pre-factor for the argument that the object will eventually take in order to return erfc(alpha * x).
 
float erfcJf (float x)
 Evaluate the approximate erfc(alpha * x) using all 32-bit floating-point arithmetic.
 

Detailed Description

Implement Norbert Juffa's fast erfc(alpha * x) approximation for 32-bit floating point computations. In the most prominent case for molecular dynamics, alpha corresponds to the "Ewald coefficient.".

Member Function Documentation

◆ erfcJf()

float stormm::stmath::JfErfc::erfcJf ( float x)

Evaluate the approximate erfc(alpha * x) using all 32-bit floating-point arithmetic.

Parameters
xThe function argument to evaluate

The documentation for this class was generated from the following files: