ConstantScalarField.hpp
Go to the documentation of this file.
double Sample(const Vector< double, N > &x) const override
Returns the sampled value at given position x.
std::shared_ptr< ConstantScalarField3 > ConstantScalarField3Ptr
Shared pointer for the ConstantScalarField3 type.
Definition: ConstantScalarField.hpp:52
static Builder GetBuilder()
Returns builder for ConstantScalarField.
Definition: Matrix.hpp:27
Definition: pybind11Utils.hpp:20
ConstantScalarField(double value)
Constructs a constant scalar field with given value.
Front-end to create ConstantScalarField objects step by step.
Definition: ConstantScalarField.hpp:58
std::function< double(const Vector< double, N > &)> Sampler() const override
Returns the sampler function.
std::shared_ptr< ConstantScalarField2 > ConstantScalarField2Ptr
Shared pointer for the ConstantScalarField2 type.
Definition: ConstantScalarField.hpp:49