39 dat=
new lx_cinterval[i];
51 l(i1),u(i2),size(i2-i1+1)
53 noexcept:l(i1),u(i2),size(i2-i1+1)
57 if(i1>i2) cxscthrow(ERROR_IVECTOR_WRONG_BOUNDARIES(
58 "lx_civector(const int &i1,const int &i2)"));
60 dat=
new lx_cinterval[size];
65 dat=
new lx_cinterval[1];
71 dat=
new lx_cinterval[1];
77 dat=
new lx_cinterval[1];
83 dat=
new lx_cinterval[1];
89 dat=
new lx_cinterval[1];
95 dat=
new lx_cinterval[1];
101 dat=
new lx_cinterval[1];
107 dat=
new lx_cinterval[1];
113 dat=
new lx_cinterval[1];
119 dat=
new lx_cinterval[1];
125 dat=
new lx_cinterval[1];
131 dat=
new lx_cinterval[1];
136 noexcept:l(v.l),u(v.u),size(v.size)
138 dat=
new lx_cinterval[size];
139 for (
int i=0;i<size;i++)
145 l = rv.l; u = rv.u; size = rv.size;
146 dat=
new lx_cinterval[size];
147 for (
int i=0;i<size;i++)
154 lx_cinterval *newdat =
new lx_cinterval[size];
155 for (
int i=0;i<size;i++)
164 lx_cinterval *newdat =
new lx_cinterval[size];
165 for (
int i=0;i<size;i++)
174 lx_cinterval *newdat =
new lx_cinterval[size];
175 for (
int i=0;i<size;i++)
184 lx_cinterval *newdat =
new lx_cinterval[size];
185 for (
int i=0;i<size;i++)
194 lx_cinterval *newdat =
new lx_cinterval[size];
195 for (
int i=0;i<size;i++)
204 lx_cinterval *newdat =
new lx_cinterval[size];
205 for (
int i=0;i<size;i++)
214 lx_cinterval *newdat =
new lx_cinterval[size];
215 for (
int i=0;i<size;i++)
224 lx_cinterval *newdat =
new lx_cinterval[size];
225 for (
int i=0;i<size;i++)
234 lx_cinterval *newdat =
new lx_cinterval[size];
235 for (
int i=0;i<size;i++)
244 lx_cinterval *newdat =
new lx_cinterval[size];
245 for (
int i=0;i<size;i++)
254 lx_cinterval *newdat =
new lx_cinterval[size];
255 for (
int i=0;i<size;i++)
264 lx_cinterval *newdat =
new lx_cinterval[size];
265 for (
int i=0;i<size;i++)
280 if(i<l||i>u) cxscthrow(ERROR_IVECTOR_ELEMENT_NOT_IN_VEC(
281 "lx_cinterval & lx_civector::operator [](const int &i)"));
294 if(i<l || i>u) cxscthrow(ERROR_IVECTOR_ELEMENT_NOT_IN_VEC(
295 "lx_cinterval & lx_civector::operator [](const int &i)"));
313 cxscthrow(ERROR__WRONG_BOUNDARIES(
314 "Resize(lx_civector &rv, int len)"));
316 lx_cinterval *ndat =
new lx_cinterval[len];
318 beg = (rv.l>1)? rv.l : 1;
319 end = (rv.u<len)? rv.u : len;
320 for(
int i=beg-1;i<end;i++)
321 ndat[i]=rv.dat[i-rv.l+1];
336 if (rv.size == ub-lb+1)
343 cxscthrow(ERROR__WRONG_BOUNDARIES(
344 "Resize(lx_civector &rv, int lb, int ub)"));
346 lx_cinterval *ndat =
new lx_cinterval[rv.size];
348 beg = (rv.l>lb)? rv.l : lb;
349 end = (rv.u<ub)? rv.u : ub;
350 for(
int i=0;i<=rv.size-1;i++)
352 for(
int i=beg;i<=end;i++)
353 ndat[i-lb]=rv.dat[i-rv.l];
The Scalar Type cinterval.
The Scalar Type interval.
The Multiple-Precision Data Type l_cinterval.
The Multiple-Precision Data Type l_complex.
The Multiple-Precision Data Type l_interval.
The Multiple-Precision Data Type l_real.
The Multiple-Precision Data Type lx_civector.
lx_civector & operator=(const lx_civector &) noexcept
Implementation of standard assigning operator.
lx_cinterval & operator[](const int &i) noexcept
Operator for accessing the single elements of the vector.
lx_civector() noexcept
Constructor of class lx_civector.
The namespace cxsc, providing all functionality of the class library C-XSC.
int Ub(const cimatrix &rm, const int &i) noexcept
Returns the upper bound index.
cimatrix & SetLb(cimatrix &m, const int &i, const int &j) noexcept
Sets the lower bound index.
void DoubleSize(cimatrix &A)
Doubles the size of the matrix.
void Resize(cimatrix &A) noexcept
Resizes the matrix.
cimatrix & SetUb(cimatrix &m, const int &i, const int &j) noexcept
Sets the upper bound index.
int Lb(const cimatrix &rm, const int &i) noexcept
Returns the lower bound index.