22#include <shapes/Ellipsoid.hpp>
40 l = *std::ranges::max_element(m_semiaxes) *
ppos_e.
norm();
47 while ((eps >= 1
e-12)
and (
step < 100)) {
49 l -= newton_term(
ppos_e, l0);
50 eps = std::abs(l - l0);
55 for (
unsigned int i = 0; i < 3; i++) {
68 const double &l)
const {
70 for (
unsigned int i = 0; i < 3; i++) {
Vector implementation and trait types for boost qvm interoperability.
void calculate_dist(const Utils::Vector3d &pos, double &dist, Utils::Vector3d &vec) const override
cudaStream_t stream[1]
CUDA streams for parallel computing on CPU and GPU.
DEVICE_QUALIFIER constexpr T sqr(T x)
Calculates the SQuaRe of x.
auto hadamard_division(Vector< T, N > const &a, Vector< U, N > const &b)