soth::ActiveSet< Indirect > Class Template Reference

#include <ActiveSet.hpp>

Inheritance diagram for soth::ActiveSet< Indirect >:
[legend]
Collaboration diagram for soth::ActiveSet< Indirect >:
[legend]

List of all members.

Public Member Functions

 ActiveSet (Index nr)
void reset (void)
void active (Index ref, Bound::bound_t type, const Index row)
Index activeRow (Index ref, Bound::bound_t type)
Index activeRow (const ConstraintRef &cst)
void unactiveRow (Index row)
void freeze (Index ref)
Index nbActive (void) const
Index size (void) const
bool isFreezed (Index ref) const
bool isActive (Index ref) const
bool wasActive (Index ref, const Bound::bound_t type) const
Bound::bound_t whichBound (Index ref, bool checkActive=false) const
double sign (Index ref) const
Index map (Index ref) const
Index mapInv (Index row) const
Matrix< Index, Dynamic, 1 > getIndirection (void) const
Index where (Index ref) const
Index whichConstraint (Index row) const
void dampBoundValue (const ConstraintRef &cst, const double &value)
std::pair< double, double > getBoundDamping (const Index &cst)
void disp (std::ostream &os, bool classic=true) const
void permuteRows (const VectorXi &P)
 operator Matrix< Index, Dynamic, 1 > (void) const

Protected Types

typedef std::vector< Index > mapinv_vector_t

Protected Member Functions

bool isRowFree (Index row)
Index getAFreeRow (void)
void freeARow (Index row)

Protected Attributes

cstref_vector_t cstMap
mapinv_vector_t cstMapInv
std::vector< bool > freerow
std::vector< bool > freezed
Matrix< Bound::bound_t,
Dynamic, 1 > 
activated
VectorXd dampingInf
VectorXd dampingSup
Index nba

template<typename Indirect>
class soth::ActiveSet< Indirect >


Member Typedef Documentation

template<typename Indirect >
typedef std::vector<Index> soth::ActiveSet< Indirect >::mapinv_vector_t [protected]

Constructor & Destructor Documentation

template<typename Indirect >
soth::ActiveSet< Indirect >::ActiveSet ( Index  nr) [inline]

Member Function Documentation

template<typename Indirect >
void soth::ActiveSet< Indirect >::active ( Index  ref,
Bound::bound_t  type,
const Index  row 
) [inline]
template<typename Indirect >
Index soth::ActiveSet< Indirect >::activeRow ( Index  ref,
Bound::bound_t  type 
) [inline]
template<typename Indirect >
Index soth::ActiveSet< Indirect >::activeRow ( const ConstraintRef cst) [inline]
template<typename Indirect >
void soth::ActiveSet< Indirect >::dampBoundValue ( const ConstraintRef cst,
const double &  value 
) [inline]
template<typename Indirect >
void soth::ActiveSet< Indirect >::disp ( std::ostream &  os,
bool  classic = true 
) const [inline]
template<typename Indirect >
void soth::ActiveSet< Indirect >::freeARow ( Index  row) [inline, protected]
template<typename Indirect >
void soth::ActiveSet< Indirect >::freeze ( Index  ref) [inline]
template<typename Indirect >
unsigned int soth::ActiveSet< Indirect >::getAFreeRow ( void  ) [inline, protected]
template<typename Indirect >
std::pair< double, double > soth::ActiveSet< Indirect >::getBoundDamping ( const Index &  cst) [inline]

Referenced by soth::Stage::checkBound().

template<typename Indirect >
VectorXi soth::ActiveSet< Indirect >::getIndirection ( void  ) const [inline]
template<typename Indirect >
bool soth::ActiveSet< Indirect >::isFreezed ( Index  ref) const [inline]
template<typename Indirect >
bool soth::ActiveSet< Indirect >::isRowFree ( Index  row) [inline, protected]
template<typename Indirect >
Index soth::ActiveSet< Indirect >::map ( Index  ref) const [inline]
template<typename Indirect >
Index soth::ActiveSet< Indirect >::mapInv ( Index  row) const [inline]
template<typename Indirect >
Index soth::ActiveSet< Indirect >::nbActive ( void  ) const [inline]
template<typename Indirect >
soth::ActiveSet< Indirect >::operator Matrix< Index, Dynamic, 1 > ( void  ) const [inline]
template<typename Indirect >
void soth::ActiveSet< Indirect >::permuteRows ( const VectorXi &  P)
template<typename Indirect >
void soth::ActiveSet< Indirect >::reset ( void  ) [inline]
template<typename Indirect >
double soth::ActiveSet< Indirect >::sign ( Index  ref) const [inline]
template<typename Indirect >
void soth::ActiveSet< Indirect >::unactiveRow ( Index  row) [inline]
template<typename Indirect >
bool soth::ActiveSet< Indirect >::wasActive ( Index  ref,
const Bound::bound_t  type 
) const [inline]
template<typename Indirect >
Index soth::ActiveSet< Indirect >::where ( Index  ref) const [inline]
template<typename Indirect >
Bound::bound_t soth::ActiveSet< Indirect >::whichBound ( Index  ref,
bool  checkActive = false 
) const [inline]
template<typename Indirect >
Index soth::ActiveSet< Indirect >::whichConstraint ( Index  row) const [inline]

Member Data Documentation

template<typename Indirect >
Matrix<Bound::bound_t,Dynamic,1> soth::ActiveSet< Indirect >::activated [protected]
template<typename Indirect >
VectorXd soth::ActiveSet< Indirect >::dampingInf [protected]
template<typename Indirect >
VectorXd soth::ActiveSet< Indirect >::dampingSup [protected]
template<typename Indirect >
std::vector<bool> soth::ActiveSet< Indirect >::freerow [protected]
template<typename Indirect >
std::vector<bool> soth::ActiveSet< Indirect >::freezed [protected]