* @endcode
*/
void
- add_constraint(const size_type constrained_dof,
- const std::vector<std::pair<size_type, number>> &dependencies,
- const number inhomogeneity = 0);
+ add_constraint(
+ const size_type constrained_dof,
+ const ArrayView<const std::pair<size_type, number>> &dependencies,
+ const number inhomogeneity = 0);
/**
* Add a new line to the matrix. If the line already exists, then the
template <typename number>
inline void
AffineConstraints<number>::add_constraint(
- const size_type constrained_dof,
- const std::vector<std::pair<size_type, number>> &dependencies,
- const number inhomogeneity)
+ const size_type constrained_dof,
+ const ArrayView<const std::pair<size_type, number>> &dependencies,
+ const number inhomogeneity)
{
Assert(is_constrained(constrained_dof) == false,
ExcMessage("You cannot add a constraint for a degree of freedom "