C-XSC - A C++ Class Library for Extended Scientific Computing
2.5.4
|
26 #ifndef _CXSC_LX_IVECTOR_HPP_INCLUDED
27 #define _CXSC_LX_IVECTOR_HPP_INCLUDED
30 #include "lx_interval.hpp"
69 explicit inline lx_ivector(
const lx_interval &) noexcept;
75 explicit inline lx_ivector(
const lx_real &) noexcept;
106 #if(CXSC_INDEX_CHECK)
111 inline const lx_interval &
operator [](
const int &i)
const
113 #if(CXSC_INDEX_CHECK)
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)
144 #if(CXSC_INDEX_CHECK)
155 inline void Resize(lx_ivector &rv,
int lb,
int ub)
156 #if(CXSC_INDEX_CHECK)
162 inline void Resize(lx_ivector &rv,
int len)
163 #if(CXSC_INDEX_CHECK)
172 #include "lx_ivector.inl"
friend int Ub(const lx_ivector &a) noexcept
Returns the upper bound of the vector.
lx_interval & operator[](const int &i) noexcept
Operator for accessing the single elements of the vector.
friend lx_ivector & SetLb(lx_ivector &a, int l) noexcept
Sets the lower bound of the vector.
The Multiple-Precision Data Type lx_ivector.
friend int Lb(const lx_ivector &a) noexcept
Returns the lower bound of the vector.
The Scalar Type interval.
lx_ivector() noexcept
Constructor of class lx_ivector.
friend void Resize(lx_ivector &rv, int lb, int ub) noexcept
Resizes the vector.
lx_ivector & operator=(const lx_ivector &) noexcept
Implementation of standard assigning operator.
The Multiple-Precision Data Type l_interval.
The namespace cxsc, providing all functionality of the class library C-XSC.
friend lx_ivector & SetUb(lx_ivector &a, int u) noexcept
Sets the upper bound of the vector.
friend int VecLen(const lx_ivector &a) noexcept
Returns the dimension of the vector.
The Multiple-Precision Data Type l_real.
void DoubleSize(cimatrix &A)
Doubles the size of the matrix.
void Resize(cimatrix &A) noexcept
Resizes the matrix.