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

The Data Type intvector. More...

#include <intvector.hpp>

Collaboration diagram for cxsc::intvector:
Collaboration graph

Public Member Functions

 intvector () noexcept
 Constructor of class intvector.
 
 intvector (const int &) noexcept
 Constructor of class intvector.
 
 intvector (const int &i1, const int &i2) noexcept
 Constructor of class intvector.
 
 intvector (const intmatrix &) noexcept
 Constructor of class intvector.
 
 intvector (const intmatrix_slice &sl) noexcept
 Constructor of class intvector.
 
 intvector (const intmatrix_subv &) noexcept
 Constructor of class intvector.
 
 intvector (const intvector &v) noexcept
 Constructor of class intvector.
 
 intvector (const intvector_slice &rs) noexcept
 Constructor of class intvector.
 
intvectoroperator() () noexcept
 Operator for accessing the whole vector.
 
intvector_slice operator() (const int &i) noexcept
 Operator for accessing a part of the vector.
 
intvector_slice operator() (const int &i1, const int &i2) noexcept
 Operator for accessing a part of the vector.
 
intvectoroperator= (const int &r) noexcept
 Implementation of standard assigning operator.
 
intvectoroperator= (const intmatrix &) noexcept
 Implementation of standard assigning operator.
 
intvectoroperator= (const intmatrix_slice &) noexcept
 Implementation of standard assigning operator.
 
intvectoroperator= (const intmatrix_subv &) noexcept
 Implementation of standard assigning operator.
 
intvectoroperator= (const intvector &rv) noexcept
 Implementation of standard assigning operator.
 
intvectoroperator= (const intvector_slice &sl) noexcept
 Implementation of standard assigning operator.
 
const int & operator[] (const int &i) const noexcept
 Operator for accessing the single elements of the vector.
 
int & operator[] (const int &i) noexcept
 Operator for accessing the single elements of the vector.
 

Friends

int Lb (const intvector &rv) noexcept
 Returns the lower bound of the vector.
 
intvectorSetLb (intvector &rv, const int &l) noexcept
 Sets the lower bound of the vector.
 
intvectorSetUb (intvector &rv, const int &u) noexcept
 Sets the upper bound of the vector.
 
int Ub (const intvector &rv) noexcept
 Returns the upper bound of the vector.
 
int VecLen (const intvector &rv) noexcept
 Returns the dimension of the vector.
 

Detailed Description

The Data Type intvector.

The vectors of C-XSC are one dimensional arrays of the corresponding scalar base type.

See also
rvector

Definition at line 51 of file intvector.hpp.

Member Function Documentation

◆ operator()() [1/2]

intvector_slice cxsc::intvector::operator() ( const int & i)
inlinenoexcept

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
See also
rvector::operator ()(const int &i)

Definition at line 134 of file intvector.inl.

◆ operator()() [2/2]

intvector_slice cxsc::intvector::operator() ( const int & i1,
const int & i2 )
inlinenoexcept

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
See also
rvector::operator ()(const int &i1,const int &i2)

Definition at line 154 of file intvector.inl.


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