DVectorBase< R > Class Template Reference Dynamic dense vectors.Class DVectorBase is a derived class of VectorBase adding automatic memory management to such objects. This allows to implement maths operations operator+() and operator-(). Further, it is possible to reset the dimension of a DVectorBase via method reDim(). However, this may render all references to values of a reDim()ed DVectorBase invalid. More...
Inheritance diagram for DVectorBase< R >:
![]()
Detailed Descriptiontemplate<class R>
|
|
explicit |
Default constructor. d
is the initial dimension.
Definition at line 73 of file dvectorbase.h.
|
explicit |
Copy constructor.
Definition at line 91 of file dvectorbase.h.
DVectorBase | ( | const DVectorBase< R > & | old | ) |
Copy constructor.
The redundancy with the copy constructor below is necessary since otherwise the compiler doesn't realize that it could use the more general one with S = R and generates a shallow copy constructor.
Definition at line 114 of file dvectorbase.h.
DVectorBase | ( | const DVectorBase< S > & | old | ) |
Copy constructor.
Definition at line 135 of file dvectorbase.h.
|
virtual |
Destructor.
Definition at line 225 of file dvectorbase.h.
|
private |
Default constructor with d
as the initial dimension (specialization for Real).
Definition at line 337 of file dvectorbase.h.
References VectorBase< R >::dimen, DVectorBase< R >::mem, DVectorBase< R >::memsize, soplex::spx_alloc(), and VectorBase< R >::val.
|
private |
Copy constructor (specialization for Real).
Definition at line 355 of file dvectorbase.h.
References VectorBase< R >::dim(), VectorBase< R >::dimen, DVectorBase< R >::mem, DVectorBase< R >::memsize, soplex::spx_alloc(), and VectorBase< R >::val.
|
private |
Copy constructor (specialization for Real).
Definition at line 373 of file dvectorbase.h.
References VectorBase< R >::dim(), VectorBase< R >::dimen, DVectorBase< R >::mem, DVectorBase< R >::memsize, soplex::spx_alloc(), and VectorBase< R >::val.
bool isConsistent | ( | ) | const |
Consistency check.
Definition at line 302 of file dvectorbase.h.
Referenced by DVectorBase< Real >::DVectorBase(), LPColSetBase< Real >::isConsistent(), SSVectorBase< Real >::isConsistent(), LPRowSetBase< Real >::isConsistent(), SPxSolver::isConsistent(), and DVectorBase< Real >::operator=().
int memSize | ( | ) | const |
Returns DVectorBase's memory size.
Definition at line 243 of file dvectorbase.h.
DVectorBase<R>& operator= | ( | const VectorBase< R > & | vec | ) |
Assignment operator.
Definition at line 155 of file dvectorbase.h.
Referenced by DVectorBase< Real >::operator=().
DVectorBase<R>& operator= | ( | const VectorBase< S > & | vec | ) |
Assignment operator.
Definition at line 172 of file dvectorbase.h.
DVectorBase<R>& operator= | ( | const DVectorBase< R > & | vec | ) |
Assignment operator.
Definition at line 188 of file dvectorbase.h.
DVectorBase<R>& operator= | ( | const DVectorBase< S > & | vec | ) |
Assignment operator.
Definition at line 205 of file dvectorbase.h.
DVectorBase< R > & operator= | ( | const SVectorBase< S > & | vec | ) |
Assignment operator.
Definition at line 377 of file basevectors.h.
References SVectorBase< R >::dim().
void reDim | ( | int | newdim, |
const bool | setZero = true |
||
) |
Resets DVectorBase's dimension to newdim
.
Definition at line 249 of file dvectorbase.h.
Referenced by SoPlex::_factorizeColumnRational(), SoPlex::_performOptIRStable(), SoPlex::_project(), SoPlex::_reconstructSolutionRational(), SoPlex::_storeLPReal(), SoPlex::_storeSolutionReal(), SoPlex::_transformFeasibility(), SoPlex::_transformUnbounded(), SoPlex::_untransformEquality(), SoPlex::_untransformFeasibility(), SoPlex::_untransformUnbounded(), LPColSetBase< Real >::add(), LPRowSetBase< Real >::add(), SPxDevexPR::addedCoVecs(), SPxWeightPR::addedCoVecs(), SPxSteepPR::addedCoVecs(), SPxDevexPR::addedVecs(), SPxWeightPR::addedVecs(), SPxSteepPR::addedVecs(), SLUFactorRational::assign(), CLUFactorRational::Temp::clear(), SLUFactorRational::clear(), LPColSetBase< Real >::clear(), LPRowSetBase< Real >::clear(), LPColSetBase< Real >::create(), LPRowSetBase< Real >::create(), CLUFactorRational::forestMinColMem(), SLUFactorRational::freeAll(), CLUFactorRational::Temp::init(), SPxWeightPR::load(), SLUFactor::load(), SLUFactorRational::load(), CLUFactorRational::minLMem(), CLUFactorRational::minRowMem(), DVectorBase< Real >::operator=(), SSVectorBase< Real >::operator=(), soplex::operator>>(), soplex::reconstructSol(), SSVectorBase< Real >::reDim(), SPxSolver::reDim(), LPColSetBase< Real >::remove(), LPRowSetBase< Real >::remove(), SPxWeightPR::removedCoVec(), SPxSteepPR::removedCoVec(), SPxWeightPR::removedCoVecs(), SPxSteepPR::removedCoVecs(), SPxWeightPR::removedVec(), SPxSteepPR::removedVec(), SPxWeightPR::removedVecs(), SPxSteepPR::removedVecs(), SPxWeightPR::setType(), SSVectorBase< Real >::setup_and_assign(), CLUFactorRational::setupColVals(), CLUFactorRational::setupRowVals(), SPxSumST::setupWeights(), SPxSteepPR::setupWeights(), SPxMainSM::simplify(), SLUFactorRational::SLUFactorRational(), and SPxMainSM::unsimplify().
void reSize | ( | int | newsize | ) |
Resets DVectorBase's memory size to newsize
.
Definition at line 266 of file dvectorbase.h.
Referenced by DVectorBase< Real >::reDim(), LPColSetBase< Real >::reMax(), LPRowSetBase< Real >::reMax(), and SSVectorBase< Real >::reMem().
void reSize | ( | int | newsize | ) |
Resets DVectorBase's memory size to newsize
(specialization for Real).
Definition at line 322 of file dvectorbase.h.
References VectorBase< R >::dim(), DVectorBase< R >::mem, DVectorBase< R >::memsize, soplex::spx_realloc(), and VectorBase< R >::val.
|
friend |
Definition at line 50 of file dvectorbase.h.
|
private |
Array of values.
Definition at line 62 of file dvectorbase.h.
Referenced by DVectorBase< Real >::DVectorBase(), DVectorBase< R >::DVectorBase(), DVectorBase< Real >::reSize(), and DVectorBase< R >::reSize().
|
private |
Length of array of values mem.
Definition at line 59 of file dvectorbase.h.
Referenced by DVectorBase< Real >::DVectorBase(), DVectorBase< R >::DVectorBase(), DVectorBase< Real >::memSize(), and DVectorBase< R >::reSize().