11#ifndef FUNCTIONS_NEGATION_H_
12#define FUNCTIONS_NEGATION_H_
20namespace coxeter_triangulation {
30template <
class Function_>
36 Eigen::VectorXd
operator()(
const Eigen::VectorXd& p)
const {
37 Eigen::VectorXd result = -fun_(p);
42 std::size_t
amb_d()
const {
return fun_.amb_d(); }
45 std::size_t
cod_d()
const {
return fun_.cod_d(); }
48 Eigen::VectorXd
seed()
const {
49 Eigen::VectorXd result = fun_.seed();
58 Negation(
const Function_& function) : fun_(function) {}
75template <
class Function_>
Negation< Function_ > negation(const Function_ &function)
Static constructor of the negative function.
Definition: Negation.h:76
Gudhi namespace.
Definition: SimplicialComplexForAlpha.h:14
Constructs the "minus" function. The zero-set is the same, but the values at other points are the neg...
Definition: Negation.h:31
Eigen::VectorXd operator()(const Eigen::VectorXd &p) const
Value of the function at a specified point.
Definition: Negation.h:36
Negation(const Function_ &function)
Constructor of the negative function.
Definition: Negation.h:58
std::size_t cod_d() const
Returns the codomain dimension.
Definition: Negation.h:45
std::size_t amb_d() const
Returns the domain (ambient) dimension.
Definition: Negation.h:42
Eigen::VectorXd seed() const
Returns a point on the zero-set.
Definition: Negation.h:48