Go to the documentation of this file.
52 : p_(std::move(other.p_)), status_(std::move(other.status_)), C_(std::move(other.C_))
58 status_ = other.status_;
72 return p_ -
static_cast<int>(C_.cols());
87 out.noalias() = M.transpose() * C_.col(p_);
90 out.noalias() = -M.transpose() * C_.col(p_);
94 out = M.row(p_ - C_.cols()).transpose();
97 out = -M.row(p_ - C_.cols()).transpose();
111 return v.dot(C_.col(p_));
113 return -v.dot(C_.col(p_));
127 os <<
"{" << n.p_ <<
", " <<
static_cast<int>(n.status_) <<
", ";
Definition: SelectedConstraint.h:13
ConstraintNormal(const MatrixConstRef &C, const SelectedConstraint &sc)
Definition: ConstraintNormal.h:45
double dot(const VectorConstRef &v) const
Definition: ConstraintNormal.h:105
ConstraintNormal & operator=(const ConstraintNormal &other)
Definition: ConstraintNormal.h:55
Eigen::Ref< const Eigen::VectorXd > VectorConstRef
Definition: defs.h:13
Definition: ActiveSet.h:11
ActivationStatus
Definition: enums.h:14
ConstraintNormal()
Definition: ConstraintNormal.h:27
Eigen::Ref< const Eigen::MatrixXd > MatrixConstRef
Definition: defs.h:11
ConstraintNormal(const MatrixConstRef &C, int p, ActivationStatus status)
Definition: ConstraintNormal.h:38
ActivationStatus status() const
Definition: ConstraintNormal.h:75
int bndIndex() const
Definition: ConstraintNormal.h:69
int index() const
Definition: ConstraintNormal.h:64
ConstraintNormal(ConstraintNormal &&other) noexcept
Definition: ConstraintNormal.h:51
void preMultiplyByMt(VectorRef out, const MatrixConstRef &M) const
Definition: ConstraintNormal.h:81
Eigen::Ref< Eigen::VectorXd > VectorRef
Definition: defs.h:14
friend std::ostream & operator<<(std::ostream &os, const ConstraintNormal &n)
Definition: ConstraintNormal.h:125
Definition: toMatlab.h:23
ConstraintNormal(const ConstraintNormal &other)
Definition: ConstraintNormal.h:50
Definition: ConstraintNormal.h:23