ldsgen::SphereWrapper class

Wrapper class to make Sphere compatible with SphereGen interface.

Provides a wrapper around the Sphere class to make it compatible with the SphereGen interface.

Base classes

class SphereGen
Base class for sphere generators.

Constructors, destructors, conversion operators

SphereWrapper(std::span<const unsigned long> base) explicit
Construct a new SphereWrapper object.

Public functions

auto pop() -> std::vector<double> override
Generate the next point on the sphere.
void reseed(unsigned long seed) override
Reset the state of the SphereWrapper generator.

Function documentation

ldsgen::SphereWrapper::SphereWrapper(std::span<const unsigned long> base) explicit

Construct a new SphereWrapper object.

Parameters
base in span of uint64_t values representing the bases for the Sphere generator

Constructs a Sphere wrapper with the specified bases.

std::vector<double> ldsgen::SphereWrapper::pop() override

Generate the next point on the sphere.

Returns std::vector<double> the next point on the sphere

Returns the next point on the sphere as a vector of double values.

void ldsgen::SphereWrapper::reseed(unsigned long seed) override

Reset the state of the SphereWrapper generator.

Parameters
seed in the seed value to reset the sequence generator to

Resets the state of the sequence generator to a specific seed value.