Loading...
Searching...
No Matches
ConstantScalarField.hpp
Go to the documentation of this file.
Front-end to create ConstantScalarField objects step by step.
Definition ConstantScalarField.hpp:59
std::shared_ptr< ConstantScalarField > MakeShared() const
Builds shared pointer of ConstantScalarField instance.
Builder & WithValue(double value)
Returns builder with value.
ConstantScalarField Build() const
Builds ConstantScalarField.
ConstantScalarField(double value)
Constructs a constant scalar field with given value.
double Sample(const Vector< double, N > &x) const override
Returns the sampled value at given position x.
static Builder GetBuilder()
Returns builder for ConstantScalarField.
std::function< double(const Vector< double, N > &)> Sampler() const override
Returns the sampler function.
Definition Matrix.hpp:30
Definition pybind11Utils.hpp:21
std::shared_ptr< ConstantScalarField3 > ConstantScalarField3Ptr
Shared pointer for the ConstantScalarField3 type.
Definition ConstantScalarField.hpp:52
std::shared_ptr< ConstantScalarField2 > ConstantScalarField2Ptr
Shared pointer for the ConstantScalarField2 type.
Definition ConstantScalarField.hpp:49
1.9.8