25 std::array x_magnitude = {0.0, 0.0, 0.0};
27 double const*
const x_ref = nodes[0]->getCoords();
28 for (
auto const& node : nodes)
30 auto const x = node->getCoords();
31 for (
int i = 0; i < 3; i++)
33 x_magnitude[i] += std::fabs(x[i] - x_ref[i]);
37 return static_cast<int>(std::count_if(
38 x_magnitude.begin(), x_magnitude.end(),
39 [](
const double x_i_magnitude)
40 { return x_i_magnitude > std::numeric_limits<double>::epsilon(); }));
Definition of the Node class.
int getSpaceDimension(std::vector< Node * > const &nodes)
Computes dimension of the embedding space containing the set of given points.