9 #ifndef IMPALGEBRA_VECTOR_GENERATORS_H
10 #define IMPALGEBRA_VECTOR_GENERATORS_H
19 #include "internal/grid_range_d.h"
20 #include "internal/internal_vector_generators.h"
22 IMPALGEBRA_BEGIN_NAMESPACE
51 return internal::RandomVectorOnBB<D>::get(bb);
65 double r2= get_squared(s.get_radius());
69 norm= (s.get_center()- ret).get_squared_magnitude();
121 return internal::uniform_cover_sphere(n, s.get_center(),
122 s.get_radius(),
true);
132 int number_of_points);
141 return internal::uniform_cover_sphere(n, s.get_center(),
142 s.get_radius(),
false);
151 int number_of_cycles,
152 int number_of_points_on_cycle);
164 unsigned int number_of_points);
171 unsigned int number_of_points);
180 const unsigned int dim= bb.get_dimension();
184 for (
unsigned int i=0; i< dim; ++i) {
191 ns[i]=
static_cast<int>(std::floor(w/s));
201 for (i=0; i< dim; ++i) {
236 IMPALGEBRA_END_NAMESPACE