#include <discretization_helpers.hpp>
Discretizes a sphere with given radius uniformly with num_points
points on the great circle.
This is a class because C++ does not allow partial template specializations of functions.
dim | Dimension of the sphere. |
scalar_t | Data type for numeric computations, e.g. double or float . |
Definition at line 75 of file discretization_helpers.hpp.
Static Public Member Functions | |
template<typename generator_t > | |
static std::vector< Eigen::Matrix< scalar_t, dim, 1 >, Eigen::aligned_allocator< Eigen::Matrix< scalar_t, dim, 1 > > > | construct (scalar_t radius, int num_samples, generator_t &generator) |
Construct a randomized discretization. More... | |
static std::vector< Eigen::Matrix< scalar_t, dim, 1 >, Eigen::aligned_allocator< Eigen::Matrix< scalar_t, dim, 1 > > > | construct (scalar_t radius, int num_samples) |
Construct the discretization. More... | |
|
inlinestatic |
Construct the discretization.
Definition at line 110 of file discretization_helpers.hpp.
|
inlinestatic |
Construct a randomized discretization.
radius | Radius of the sphere. |
num_samples | Number of points on the equator, implies nodal spacing dp = 2*pi*r/n . |
generator | A random number generator. |
Definition at line 85 of file discretization_helpers.hpp.