11#ifndef FUNCTIONS_CONSTANT_FUNCTION_H_
12#define FUNCTIONS_CONSTANT_FUNCTION_H_
20namespace coxeter_triangulation {
31 Eigen::VectorXd
operator()(
const Eigen::VectorXd& p)
const {
36 std::size_t
amb_d()
const {
return d_; };
39 std::size_t
cod_d()
const {
return k_; };
42 Eigen::VectorXd
seed()
const {
throw "Seed invoked on a constant function.\n"; }
53 Constant_function(std::size_t d, std::size_t k,
const Eigen::VectorXd& value) : d_(d), k_(k), value_(value) {}
57 Eigen::VectorXd value_;
A class that encodes a constant function from R^d to R^k. This class does not have any implicit manif...
Definition: Constant_function.h:27
Constant_function(std::size_t d, std::size_t k, const Eigen::VectorXd &value)
Constructor of a constant function from R^d to R^m.
Definition: Constant_function.h:53
Eigen::VectorXd seed() const
No seed point is available. Throws an exception on evocation.
Definition: Constant_function.h:42
Eigen::VectorXd operator()(const Eigen::VectorXd &p) const
Value of the function at a specified point. The value is constant.
Definition: Constant_function.h:31
std::size_t cod_d() const
Returns the codomain dimension. Same as the codimension of the sphere.
Definition: Constant_function.h:39
std::size_t amb_d() const
Returns the domain dimension. Same as the ambient dimension of the sphere.
Definition: Constant_function.h:36