Go to the documentation of this file.
30 return start_ +
static_cast<int>(v_.size());
45 assert(u.size() == size_);
46 u.head(start_).setZero();
47 u.segment(start_, v_.size()) = v_;
48 u.tail(size_ - v_.size() - start_).setZero();
53 assert(u.size() == size_);
54 return v_.dot(u.segment(start_, v_.size()));
void toFullVector(VectorRef u) const
Definition: SingleNZSegmentVector.h:43
const VectorConstRef & nzSegment() const
Definition: SingleNZSegmentVector.h:38
SingleNZSegmentVector(const VectorConstRef &v, int start, int size)
Definition: SingleNZSegmentVector.h:17
Eigen::Ref< const Eigen::VectorXd > VectorConstRef
Definition: defs.h:13
Definition: ActiveSet.h:11
int end() const
Definition: SingleNZSegmentVector.h:28
int start() const
Definition: SingleNZSegmentVector.h:23
Definition: SingleNZSegmentVector.h:10
double dot(const VectorConstRef &u) const
Definition: SingleNZSegmentVector.h:51
int size() const
Definition: SingleNZSegmentVector.h:33
Eigen::Ref< Eigen::VectorXd > VectorRef
Definition: defs.h:14