26 #ifndef _CXSC_LX_IVECTOR_HPP_INCLUDED 27 #define _CXSC_LX_IVECTOR_HPP_INCLUDED 30 #include "lx_interval.hpp" 63 throw(ERROR_IVECTOR_WRONG_BOUNDARIES,ERROR_IVECTOR_NO_MORE_MEMORY);
69 explicit inline lx_ivector(
const lx_interval &)
throw();
75 explicit inline lx_ivector(
const lx_real &)
throw();
106 #if(CXSC_INDEX_CHECK) 107 throw(ERROR_IVECTOR_ELEMENT_NOT_IN_VEC);
111 inline const lx_interval &
operator [](
const int &i)
const 113 #if(CXSC_INDEX_CHECK) 114 throw(ERROR_IVECTOR_ELEMENT_NOT_IN_VEC);
129 { a.l=l; a.u=l+a.size-1;
return a; }
132 { a.u=u; a.l=u-a.size+1;
return a; }
136 #if(CXSC_INDEX_CHECK) 137 throw(ERROR__WRONG_BOUNDARIES<lx_ivector>);
144 #if(CXSC_INDEX_CHECK) 145 throw(ERROR__WRONG_BOUNDARIES<lx_ivector>);
156 #if(CXSC_INDEX_CHECK) 157 throw(ERROR__WRONG_BOUNDARIES<lx_ivector>);
163 #if(CXSC_INDEX_CHECK) 164 throw(ERROR__WRONG_BOUNDARIES<lx_ivector>);
172 #include "lx_ivector.inl" The Multiple-Precision Data Type l_interval.
The Multiple-Precision Data Type l_real.
friend int Ub(const lx_ivector &a)
Returns the upper bound of the vector.
The namespace cxsc, providing all functionality of the class library C-XSC.
lx_ivector & operator=(const lx_ivector &)
Implementation of standard assigning operator.
The Scalar Type interval.
void DoubleSize(cimatrix &A)
Doubles the size of the matrix.
friend int VecLen(const lx_ivector &a)
Returns the dimension of the vector.
friend lx_ivector & SetLb(lx_ivector &a, int l)
Sets the lower bound of the vector.
friend int Lb(const lx_ivector &a)
Returns the lower bound of the vector.
The Multiple-Precision Data Type lx_ivector.
friend lx_ivector & SetUb(lx_ivector &a, int u)
Sets the upper bound of the vector.
lx_interval & operator[](const int &i)
Operator for accessing the single elements of the vector.
lx_ivector()
Constructor of class lx_ivector.
friend void Resize(lx_ivector &rv, int lb, int ub)
Resizes the vector.