quadgrid 0.1
simple cartesian quad grid with particles for c++/octave
Loading...
Searching...
No Matches
abs_no_nan Struct Reference

#include <taylor_dispersion.h>

Public Member Functions

HOST DEVICE real_t operator() (real_t value) const

Detailed Description

Definition at line 25 of file taylor_dispersion.h.

Member Function Documentation

◆ operator()()

HOST DEVICE real_t abs_no_nan::operator() ( real_t value) const
inline

Definition at line 27 of file taylor_dispersion.h.

27 {
28 return value == value ? (value < 0.0 ? -value : value) : 0.0;
29 }

The documentation for this struct was generated from the following file: