void initialize (const MATRIX &m,
bool expect_constrained_source = false);
+ /**
+ * Delete all constraints and the
+ * matrix pointer.
+ */
+ void clear ();
//@}
/**
* @name Managing constraints
template <class VECTOR>
inline
void
-FilteredMatrix<VECTOR>::
-add_constraint (const unsigned int index, const double value)
+FilteredMatrix<VECTOR>::add_constraint (const unsigned int index, const double value)
{
// add new constraint to end
constraints.push_back(IndexValuePair(index, value));
template <class ConstraintList>
inline
void
-FilteredMatrix<VECTOR>::
-add_constraints (const ConstraintList &new_constraints)
+FilteredMatrix<VECTOR>::add_constraints (const ConstraintList &new_constraints)
{
// add new constraints to end
const unsigned int old_size = constraints.size();
+template <class VECTOR>
+inline
+void
+FilteredMatrix<VECTOR>::clear ()
+{
+ clear_constraints();
+ matrix.reset();
+}
+
+
+
template <class VECTOR>
inline
void