|
template<class T > |
void | tinker::atomic_add (T value, T *buffer, size_t offset=0) |
|
template<class T , class = typename std::enable_if<std::is_same<T, float>::value || std::is_same<T, double>::value>::type> |
void | tinker::atomic_add (T value, fixed *buffer, size_t offset=0) |
|
template<class T > |
void | tinker::atomic_add (T vxx, T vyx, T vzx, T vyy, T vzy, T vzz, T(*buffer)[8], size_t offset=0) |
| Adds virial {xx,yx,zx,yy,zy,zz} to buffer[offset][0 to 7] . More...
|
|
template<class T , class = typename std::enable_if<std::is_same<T, float>::value || std::is_same<T, double>::value>::type> |
void | tinker::atomic_add (T vxx, T vyx, T vzx, T vyy, T vzy, T vzz, fixed(*buffer)[8], size_t offset=0) |
|
template<class G , class T > |
G | tinker::floatTo (T val) |
| Converts val of floating-point to type G . More...
|
|
template<class T > |
T | tinker::fixedTo (fixed val) |
| Converts val of fixed-point to floating-point. More...
|
|
template<class T > |
T | tinker::toFloatGrad (fixed g) |
| Converts a fixed-point value g to floating-point value. More...
|
|
template<class T > |
T | tinker::toFloatGrad (double g) |
| Converts a double-precision value g to floating-point value. More...
|
|
template<class T > |
T | tinker::toFloatGrad (float g) |
| Converts a single-precision value g to floating-point value. More...
|
|
template<class T , class U > |
constexpr bool | tinker::eq () |
| Used as eq<T1,T2>() for two type identifiers. More...
|
|
int2 | tinker::make_int2 (int x, int y) |
|
int3 | tinker::make_int3 (int x, int y, int z) |
|
int4 | tinker::make_int4 (int x, int y, int z, int w) |
|
float2 | tinker::make_float2 (float x, float y) |
|
float3 | tinker::make_float3 (float x, float y, float z) |
|
float4 | tinker::make_float4 (float x, float y, float z, float w) |
|
double2 | tinker::make_double2 (double x, double y) |
|
double3 | tinker::make_double3 (double x, double y, double z) |
|
double4 | tinker::make_double4 (double x, double y, double z, double w) |
|
template<class T , class = typename std::enable_if<std::is_same<T, float>::value || std::is_same<T, double>::value>::type>
void tinker::atomic_add |
( |
T |
vxx, |
|
|
T |
vyx, |
|
|
T |
vzx, |
|
|
T |
vyy, |
|
|
T |
vzy, |
|
|
T |
vzz, |
|
|
fixed(*) |
buffer[8], |
|
|
size_t |
offset = 0 |
|
) |
| |
|
inline |
Adds virial {xx,yx,zx,yy,zy,zz}
to buffer[offset][0 to 7]
via fixed-point arithmetic.