11#ifndef FUNCTIONS_FUNCTION_AFFINE_PLANE_IN_RD_H_
12#define FUNCTIONS_FUNCTION_AFFINE_PLANE_IN_RD_H_
20namespace coxeter_triangulation {
32 Eigen::VectorXd
operator()(
const Eigen::VectorXd& p)
const {
33 Eigen::VectorXd result = normal_matrix_.transpose() * (p - off_);
38 std::size_t
amb_d()
const {
return d_; };
41 std::size_t
cod_d()
const {
return k_; };
44 Eigen::VectorXd
seed()
const {
45 Eigen::VectorXd result = off_;
60 : normal_matrix_(normal_matrix), d_(normal_matrix.rows()), k_(normal_matrix.cols()), off_(offset) {
61 normal_matrix_.colwise().normalize();
73 : normal_matrix_(normal_matrix),
74 d_(normal_matrix.rows()),
75 k_(normal_matrix.cols()),
76 off_(Eigen::VectorXd::Zero(d_)) {
77 normal_matrix_.colwise().normalize();
81 Eigen::MatrixXd normal_matrix_;
Gudhi namespace.
Definition: SimplicialComplexForAlpha.h:14
A class for the function that defines an m-dimensional implicit affine plane embedded in d-dimensiona...
Definition: Function_affine_plane_in_Rd.h:27
Eigen::VectorXd operator()(const Eigen::VectorXd &p) const
Value of the function at a specified point.
Definition: Function_affine_plane_in_Rd.h:32
std::size_t cod_d() const
Returns the codomain dimension. Same as the codimension of the sphere.
Definition: Function_affine_plane_in_Rd.h:41
Function_affine_plane_in_Rd(const Eigen::MatrixXd &normal_matrix)
Constructor of the function that defines an m-dimensional implicit affine plane in the d-dimensional ...
Definition: Function_affine_plane_in_Rd.h:72
Eigen::VectorXd seed() const
Returns a point on the affine plane.
Definition: Function_affine_plane_in_Rd.h:44
std::size_t amb_d() const
Returns the domain dimension. Same as the ambient dimension of the sphere.
Definition: Function_affine_plane_in_Rd.h:38
Function_affine_plane_in_Rd(const Eigen::MatrixXd &normal_matrix, const Eigen::VectorXd &offset)
Constructor of the function that defines an m-dimensional implicit affine plane in the d-dimensional ...
Definition: Function_affine_plane_in_Rd.h:59