SoPlex Doxygen Documentation
DVector_exact Class Reference

Dynamic vectors of MpqReal.Class DVector_exact is a copy of class DVector replacing the floating point type Real with the exact MpqReal. More...

#include <dvector_exact.h>

Inheritance diagram for DVector_exact:

Public Member Functions

Access
void reDim (int newdim)
 resets DVector's dimension to newdim.
 
void reSize (int newsize)
 resets DVector's memory size to newsize.
 
void reSize (int newsize, int newdim)
 resets DVector's memory size to newsize and dimension to newdim.
 
int memSize () const
 returns DVector's memory size.
 
bool isConsistent () const
 consistency check.
 
Construction / destruction
 DVector_exact (int dim=0)
 default constructor. dim is the initial dimension.
 
 DVector_exact (const Vector &old)
 copy constructor.
 
 DVector_exact (const Vector_exact &old)
 copy constructor.
 
 DVector_exact (const DVector_exact &old)
 copy constructor.
 
DVector_exactoperator= (const DVector_exact &vec)
 assignment operator.
 
DVector_exactoperator= (const Vector_exact &vec)
 assignment operator.
 
DVector_exactoperator= (const Vector &vec)
 assignment operator.
 
DVector_exactoperator= (const SVector &vec)
 assignment operator.
 
 ~DVector_exact ()
 destructor.
 
- Public Member Functions inherited from Vector_exact
 Vector_exact (int p_dimen, MpqReal *p_val)
 construction
 
Vector_exactoperator= (const Vector_exact &vec)
 Assignment operator.
 
Vector_exactoperator= (const Vector &vec)
 Assignment operator.
 
Vector_exactoperator= (const SVector &vec)
 Assignment operator.
 
Vector_exactoperator+= (const Vector_exact &vec)
 vector addition
 
Vector_exactoperator+= (const Vector &vec)
 vector addition
 
Vector_exactoperator+= (const SVector &vec)
 vector addition
 
Vector_exactoperator-= (const Vector_exact &vec)
 vector difference
 
Vector_exactoperator-= (const Vector &vec)
 vector difference
 
Vector_exactoperator-= (const SVector &vec)
 vector difference
 
Vector_exactoperator*= (MpqReal x)
 scaling
 
MpqReal maxAbs () const
 absolute biggest element (infinity norm).
 
MpqReal minAbs () const
 absolute smallest element.
 
Vector_exactmultAdd (MpqReal x, const Vector_exact &vec)
 addition of scaled vector
 
Vector_exactmultAdd (MpqReal x, const Vector &vec)
 addition of scaled vector
 
Vector_exactmultAdd (MpqReal x, const SVector &vec)
 addition of scaled vector
 
int dim () const
 dimension of vector
 
MpqRealoperator[] (int n)
 return n 'th value by reference
 
MpqReal operator[] (int n) const
 return n 'th value
 
MpqRealget_ptr ()
 Conversion to C-style pointer.
 
const MpqRealget_const_ptr () const
 Conversion to C-style pointer.
 
bool isConsistent () const
 consistency check.
 
void clear ()
 set vector to 0.
 

Private Attributes

Data
int memsize
 length of array of values mem
 
MpqRealmem
 value array to be used
 

Additional Inherited Members

- Protected Attributes inherited from Vector_exact
int dimen
 dimension of vector
 
MpqRealval
 values of a vector
 
- Friends inherited from Vector_exact

Detailed Description

Dynamic vectors of MpqReal.

Class DVector_exact is a copy of class DVector replacing the floating point type Real with the exact MpqReal.

Definition at line 39 of file dvector_exact.h.

Constructor & Destructor Documentation

DVector_exact ( int  dim = 0)
explicit

default constructor. dim is the initial dimension.

Definition at line 118 of file dvector_exact.cpp.

References Vector_exact::dimen, DVector_exact::isConsistent(), DVector_exact::mem, DVector_exact::memsize, and Vector_exact::val.

destructor.

Definition at line 133 of file dvector_exact.cpp.

References DVector_exact::mem.

Member Function Documentation

int memSize ( ) const

returns DVector's memory size.

Definition at line 63 of file dvector_exact.h.

References DVector_exact::memsize.

DVector_exact& operator= ( const DVector_exact vec)

assignment operator.

Definition at line 85 of file dvector_exact.h.

References Vector_exact::dim(), DVector_exact::isConsistent(), Vector_exact::operator=(), and DVector_exact::reDim().

DVector_exact& operator= ( const Vector_exact vec)

assignment operator.

Definition at line 99 of file dvector_exact.h.

References Vector_exact::dim(), DVector_exact::isConsistent(), Vector_exact::operator=(), and DVector_exact::reDim().

DVector_exact& operator= ( const Vector vec)
DVector_exact& operator= ( const SVector vec)
void reDim ( int  newdim)

resets DVector's dimension to newdim.

Definition at line 55 of file dvector_exact.cpp.

References Vector_exact::dimen, DVector_exact::mem, DVector_exact::memsize, and DVector_exact::reSize().

Referenced by DVector_exact::operator=(), and SPxSolver::solve().

void reSize ( int  newsize)

resets DVector's memory size to newsize.

Definition at line 25 of file dvector_exact.cpp.

References Vector_exact::dim().

Referenced by DVector_exact::reDim().

void reSize ( int  newsize,
int  newdim 
)

resets DVector's memory size to newsize and dimension to newdim.

Definition at line 30 of file dvector_exact.cpp.

References Vector_exact::dimen, DVector_exact::mem, DVector_exact::memsize, and Vector_exact::val.

Member Data Documentation

int memsize
private