30 template <
typename Derived>
32 const Eigen::ArrayBase<Derived>& array) {
34 for (
size_type i = 0; i < array.derived().size(); ++i)
35 if (array.derived()[i]) res.push_back(
segment_t(i, 1));
41 #include <hpp/pinocchio/util.hh>
46 static std::ostream&
run(std::ostream& os,
std::vector< segment_t > segments_t
Definition: fwd.hh:84
Definition: active-set-differentiable-function.hh:36
static void shrink(segments_t &a)
static segments_t fromLogicalExpression(const Eigen::ArrayBase< Derived > &array)
Definition: matrix-view.hh:31
hpp::constraints::size_type size_type
Index of vector or matrix.
Definition: matrix-view.hh:51
hpp::constraints::segment_t segment_t
Interval of indices [first, first + second - 1].
Definition: matrix-view.hh:53
hpp::constraints::segments_t segments_t
vector of segments
Definition: matrix-view.hh:55
static void run(std::ostream &os, const BlockIndexType &bi)
Definition: matrix-view.hh:366
static std::ostream & run(std::ostream &os, const constraints::segments_t &segs)
Definition: matrix-view.hh:46