summaryrefslogtreecommitdiff
path: root/src/Coxeter_triangulation/include/gudhi/Functions/Constant_function.h
diff options
context:
space:
mode:
authorROUVREAU Vincent <vincent.rouvreau@inria.fr>2020-09-22 18:12:31 +0200
committerROUVREAU Vincent <vincent.rouvreau@inria.fr>2020-09-22 18:12:31 +0200
commitbe7555abfb97f02c37de96736f7a0993d4d47f03 (patch)
tree180f618a1db3a8b866f43f66210ac38c028d74dd /src/Coxeter_triangulation/include/gudhi/Functions/Constant_function.h
parente0041b766b647f3906b52f861e97edba1f089312 (diff)
clang-format files
Diffstat (limited to 'src/Coxeter_triangulation/include/gudhi/Functions/Constant_function.h')
-rw-r--r--src/Coxeter_triangulation/include/gudhi/Functions/Constant_function.h26
1 files changed, 11 insertions, 15 deletions
diff --git a/src/Coxeter_triangulation/include/gudhi/Functions/Constant_function.h b/src/Coxeter_triangulation/include/gudhi/Functions/Constant_function.h
index c03a2a24..424bcbff 100644
--- a/src/Coxeter_triangulation/include/gudhi/Functions/Constant_function.h
+++ b/src/Coxeter_triangulation/include/gudhi/Functions/Constant_function.h
@@ -21,15 +21,14 @@ namespace Gudhi {
namespace coxeter_triangulation {
-/**
- * \class Constant_function
+/**
+ * \class Constant_function
* \brief A class that encodes a constant function from R^d to R^k.
* This class does not have any implicit manifold in correspondence.
*
* \ingroup coxeter_triangulation
*/
struct Constant_function : public Function {
-
/** \brief Value of the function at a specified point. The value is constant.
* @param[in] p The input point. The dimension needs to coincide with the ambient dimension.
*/
@@ -37,37 +36,34 @@ struct Constant_function : public Function {
Eigen::VectorXd result = value_;
return result;
}
-
+
/** \brief Returns the domain dimension. Same as the ambient dimension of the sphere. */
- virtual std::size_t amb_d() const override {return d_;};
+ virtual std::size_t amb_d() const override { return d_; };
/** \brief Returns the codomain dimension. Same as the codimension of the sphere. */
- virtual std::size_t cod_d() const override {return k_;};
+ virtual std::size_t cod_d() const override { return k_; };
/** \brief No seed point is available. Throws an exception on evocation. */
- virtual Eigen::VectorXd seed() const override {
- throw "Seed invoked on a constant function.\n";
- }
+ virtual Eigen::VectorXd seed() const override { throw "Seed invoked on a constant function.\n"; }
Constant_function() {}
-
- /**
+
+ /**
* \brief Constructor of a constant function from R^d to R^m.
*
* @param[in] d The domain dimension.
* @param[in] k The codomain dimension.
* @param[in] value The constant value of the function.
*/
- Constant_function(std::size_t d, std::size_t k, const Eigen::VectorXd& value)
- : d_(d), k_(k), value_(value) {}
+ Constant_function(std::size_t d, std::size_t k, const Eigen::VectorXd& value) : d_(d), k_(k), value_(value) {}
private:
std::size_t d_, k_;
Eigen::VectorXd value_;
};
-} // namespace coxeter_triangulation
+} // namespace coxeter_triangulation
-} // namespace Gudhi
+} // namespace Gudhi
#endif