C-XSC - A C++ Class Library for Extended Scientific Computing
2.5.4
|
The Data Type rvector. More...
#include <rvector.hpp>
Public Member Functions | |
rvector | operator() (const intvector &p) |
Computes permutation of vector according to permutation vector, C=Px. | |
rvector | operator() (const intmatrix &P) |
Computes permutation of vector according to permutation matrix, C=Px. | |
rvector & | operator() () throw () |
Operator for accessing the whole vector. | |
rvector_slice | operator() (const int &i) throw () |
Operator for accessing a part of the vector. | |
rvector_slice | operator() (const int &i1, const int &i2) throw () |
Operator for accessing a part of the vector. | |
rvector & | operator+= (const srvector &rv) |
Implementation of addition and allocation operation. | |
rvector & | operator+= (const srvector_slice &rv) |
Implementation of addition and allocation operation. | |
rvector & | operator-= (const srvector &rv) |
Implementation of addition and allocation operation. | |
rvector & | operator-= (const srvector_slice &rv) |
Implementation of addition and allocation operation. | |
rvector & | operator= (const rvector &rv) throw () |
Implementation of standard assigning operator. | |
rvector & | operator= (const rvector_slice &sl) throw () |
Implementation of standard assigning operator. | |
rvector & | operator= (const srvector &rv) |
Implementation of standard assigning operator. | |
rvector & | operator= (const srvector_slice &sl) |
Implementation of standard assigning operator. | |
rvector & | operator= (const real &r) throw () |
Implementation of standard assigning operator. | |
rvector & | operator= (const rmatrix &) throw () |
Implementation of standard assigning operator. | |
rvector & | operator= (const rmatrix_slice &) throw () |
Implementation of standard assigning operator. | |
rvector & | operator= (const rmatrix_subv &) throw () |
Implementation of standard assigning operator. | |
real & | operator[] (const int &i) const throw () |
Operator for accessing the single elements of the vector (read-only) | |
real & | operator[] (const int &i) throw () |
Operator for accessing the single elements of the vector. | |
rvector () throw () | |
Constructor of class rvector. | |
rvector (const int &i) throw () | |
Constructor of class rvector. | |
rvector (const int &i1, const int &i2) throw () | |
Constructor of class rvector. | |
rvector (const rmatrix_subv &) throw () | |
Constructor of class rvector. | |
rvector (const real &) throw () | |
Constructor of class rvector. | |
rvector (const rmatrix &) throw () | |
Constructor of class rvector. | |
rvector (const rmatrix_slice &sl) throw () | |
Constructor of class rvector. | |
rvector (const intvector &) | |
Constructor of class rvector. | |
rvector (const rvector_slice &rs) throw () | |
Constructor of class rvector. | |
rvector (const rvector &v) throw () | |
Constructor of class rvector. | |
rvector (const srvector &v) | |
Constructor of class rvector. | |
rvector (const srvector_slice &v) | |
Constructor of class rvector. | |
Friends | |
rvector | InfIm (const civector &v) throw () |
Returns componentwise the infimum of the imaginary part. | |
rvector | InfIm (const civector_slice &v) throw () |
Returns componentwise the infimum of the imaginary part. | |
rvector | InfRe (const civector &v) throw () |
Returns componentwise the infimum of the real part. | |
rvector | InfRe (const civector_slice &v) throw () |
Returns componentwise the infimum of the real part. | |
int | Lb (const rvector &rv) throw () |
Returns the lower bound of the vector. | |
rvector & | SetLb (rvector &rv, const int &l) throw () |
Sets the lower bound of the vector. | |
rvector & | SetUb (rvector &rv, const int &u) throw () |
Sets the upper bound of the vector. | |
rvector | SupIm (const civector &v) throw () |
Returns componentwise the supremum of the imaginary part. | |
rvector | SupIm (const civector_slice &v) throw () |
Returns componentwise the supremum of the imaginary part. | |
rvector | SupRe (const civector &v) throw () |
Returns componentwise the supremum of the real part. | |
rvector | SupRe (const civector_slice &v) throw () |
Returns componentwise the supremum of the real part. | |
int | Ub (const rvector &rv) throw () |
Returns the upper bound of the vector. | |
int | VecLen (const rvector &rv) throw () |
Returns the dimension of the vector. |
The Data Type rvector.
The vectors of C-XSC are one dimensional arrays of the corresponding scalar base type. Every vector has a lower index bound and an upper index bound of type int. Hence, the number of components actually stored in a vector is
All matrix and vector operators which require dot product computations use higher precision dot products provided by the dotprecision classes. The precision to be used for these implicit dot products can be choosen by setting the global variable opdotprec accordingly. A value of 0 means maximum accuracy (the default, always used by all older C-XSC versions), a value of 1 means double accuracy, a value of 2 or higher means k-fold double accuracy. Lower accuracy leads to (significantly) faster computing times, but also to less exact results. For all dot products with an interval result, error bounds are computed to guarantee a correct enclosure. For all other dot products approximations without error bounds are computed.
Definition at line 57 of file rvector.hpp.
cxsc::rvector::rvector | ( | ) | throw () [inline] |
Constructor of class rvector.
Creation of a variable of type rvector with length and index bounds . The value of the element is undefined.
Definition at line 37 of file rvector.inl.
cxsc::rvector::rvector | ( | const int & | i | ) | throw () [inline, explicit] |
Constructor of class rvector.
i | Dimension of vector |
Creation of a variable of type rvector with length and index bounds , and . The values of the elements are undefined.
Definition at line 46 of file rvector.inl.
cxsc::rvector::rvector | ( | const int & | i1, |
const int & | i2 | ||
) | throw () [inline, explicit] |
Constructor of class rvector.
i1 | Starting dimension of vector |
i2 | Ending dimension of vector |
Creation of a variable of type rvector with length and index bounds , and . The values of the elements are undefined.
Definition at line 63 of file rvector.inl.
rvector_slice cxsc::rvector::operator() | ( | const int & | i | ) | throw () [inline] |
Operator for accessing a part of the vector.
i | The maximum dimension of the wanted part of the vector |
Example:
You have the vector and then use the operation which results in
Definition at line 164 of file rvector.inl.
rvector_slice cxsc::rvector::operator() | ( | const int & | i1, |
const int & | i2 | ||
) | throw () [inline] |
Operator for accessing a part of the vector.
i1 | The starting dimension of the wanted part of the vector |
i2 | The ending dimension of the wanted part of the vector |
Example:
You have the vector and then use the operation which results in
Definition at line 187 of file rvector.inl.