73template <
typename ForceFactor>
74std::tuple<Utils::Vector3d, Utils::Vector3d, Utils::Vector3d>
77 auto const d1 =
vec1.norm();
78 auto const d2 =
vec2.norm();
Vector implementation and trait types for boost qvm interoperability.
std::tuple< Utils::Vector3d, Utils::Vector3d, Utils::Vector3d > angle_generic_force(Utils::Vector3d const &vec1, Utils::Vector3d const &vec2, ForceFactor forceFactor, bool sanitize_cosine)
Compute a three-body angle interaction force.
constexpr auto tiny_cos_angle_value
Tiny angle cutoff for cosine calculations.
double calc_cosine(Utils::Vector3d const &vec1, Utils::Vector3d const &vec2, bool sanitize_cosine=false)
Compute the cosine of the angle between three particles.
cudaStream_t stream[1]
CUDA streams for parallel computing on CPU and GPU.