@@ -159,6 +159,11 @@ void Pwl::prepend(double x, double y, const double eps)
* \return True if there are no points in the function, false otherwise
*/
+/**
+ * \fn Pwl::clear()
+ * \brief Clear the piecewise linear function
+ */
+
/**
* \fn Pwl::size() const
* \brief Retrieve the number of points in the piecewise linear function
@@ -49,6 +49,7 @@ public:
void append(double x, double y, double eps = 1e-6);
bool empty() const { return points_.empty(); }
+ void clear() { points_.clear(); }
size_t size() const { return points_.size(); }
Interval domain() const;