C-XSC - A C++ Class Library for Extended Scientific Computing  2.5.4
cxsc::rvector Class Reference

The Data Type rvector. More...

#include <rvector.hpp>

List of all members.

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.
rvectoroperator() () 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.
rvectoroperator+= (const srvector &rv)
 Implementation of addition and allocation operation.
rvectoroperator+= (const srvector_slice &rv)
 Implementation of addition and allocation operation.
rvectoroperator-= (const srvector &rv)
 Implementation of addition and allocation operation.
rvectoroperator-= (const srvector_slice &rv)
 Implementation of addition and allocation operation.
rvectoroperator= (const rvector &rv) throw ()
 Implementation of standard assigning operator.
rvectoroperator= (const rvector_slice &sl) throw ()
 Implementation of standard assigning operator.
rvectoroperator= (const srvector &rv)
 Implementation of standard assigning operator.
rvectoroperator= (const srvector_slice &sl)
 Implementation of standard assigning operator.
rvectoroperator= (const real &r) throw ()
 Implementation of standard assigning operator.
rvectoroperator= (const rmatrix &) throw ()
 Implementation of standard assigning operator.
rvectoroperator= (const rmatrix_slice &) throw ()
 Implementation of standard assigning operator.
rvectoroperator= (const rmatrix_subv &) throw ()
 Implementation of standard assigning operator.
realoperator[] (const int &i) const throw ()
 Operator for accessing the single elements of the vector (read-only)
realoperator[] (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.
rvectorSetLb (rvector &rv, const int &l) throw ()
 Sets the lower bound of the vector.
rvectorSetUb (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.

Detailed Description

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 $ lb $ and an upper index bound $ ub $ of type int. Hence, the number $ n $ of components actually stored in a vector is

\[ n = ub - lb + 1 \]

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.

See also:
cxsc::dotprecision

Definition at line 57 of file rvector.hpp.


Constructor & Destructor Documentation

cxsc::rvector::rvector ( ) throw () [inline]

Constructor of class rvector.

Creation of a variable of type rvector with length $ n = 1 $ and index bounds $ lb = ub = 1 $. 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.

Parameters:
iDimension of vector

Creation of a variable of type rvector with length $ n = i $ and index bounds $ lb = 1 $, and $ ub = i $. 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.

Parameters:
i1Starting dimension of vector
i2Ending dimension of vector

Creation of a variable of type rvector with length $ n = i2 - i1 + 1 $ and index bounds $ lb = i1 $, and $ ub = i2 $. The values of the elements are undefined.

Definition at line 63 of file rvector.inl.


Member Function Documentation

rvector_slice cxsc::rvector::operator() ( const int &  i) throw () [inline]

Operator for accessing a part of the vector.

Parameters:
iThe maximum dimension of the wanted part of the vector
Returns:
The wanted part of the vector

Example:

You have the vector $ a = \left( \begin {array} {c} x_1 \\ x_2 \\ x_3 \\ x_4 \\ x_5 \end {array} \right) $ and then use the operation $ b = a(3) $ which results in $ b = \left( \begin {array} {c} x_1 \\ x_2 \\ x_3 \end {array} \right) $

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.

Parameters:
i1The starting dimension of the wanted part of the vector
i2The ending dimension of the wanted part of the vector
Returns:
The wanted part of the vector

Example:

You have the vector $ a = \left( \begin {array} {c} x_1 \\ x_2 \\ x_3 \\ x_4 \\ x_5 \end {array} \right) $ and then use the operation $ b = a(2,4) $ which results in $ b = \left( \begin {array} {c} x_2 \\ x_3 \\ x_4 \end {array} \right) $

Definition at line 187 of file rvector.inl.


The documentation for this class was generated from the following files: