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

The Data Type cvector. More...

#include <cvector.hpp>

Collaboration diagram for cxsc::cvector:
Collaboration graph

Public Member Functions

 cvector () noexcept
 Constructor of class cvector.
 
 cvector (const cmatrix &) noexcept
 Constructor of class cvector.
 
 cvector (const cmatrix_slice &sl) noexcept
 Constructor of class cvector.
 
 cvector (const cmatrix_subv &) noexcept
 Constructor of class cvector.
 
 cvector (const complex &r) noexcept
 Constructor of class cvector.
 
 cvector (const cvector &v) noexcept
 Constructor of class cvector.
 
 cvector (const cvector_slice &rs) noexcept
 Constructor of class cvector.
 
 cvector (const int &i) noexcept
 Constructor of class cvector.
 
 cvector (const int &i1, const int &i2) noexcept
 Constructor of class cvector.
 
 cvector (const real &) noexcept
 Constructor of class cvector.
 
 cvector (const rmatrix &) noexcept
 Constructor of class cvector.
 
 cvector (const rmatrix_slice &sl) noexcept
 Constructor of class cvector.
 
 cvector (const rmatrix_subv &) noexcept
 Constructor of class cvector.
 
 cvector (const rvector &v) noexcept
 Constructor of class cvector.
 
 cvector (const rvector_slice &rs) noexcept
 Constructor of class cvector.
 
 cvector (const scvector &v)
 Constructor of class cvector.
 
 cvector (const scvector_slice &rs)
 Constructor of class cvector.
 
 cvector (const srvector &v)
 Constructor of class cvector.
 
 cvector (const srvector_slice &rs)
 Constructor of class cvector.
 
cvectoroperator() () noexcept
 Operator for accessing the whole vector.
 
cvector_slice operator() (const int &i) noexcept
 Operator for accessing a part of the vector.
 
cvector_slice operator() (const int &i1, const int &i2) noexcept
 Operator for accessing a part of the vector.
 
cvector operator() (const intmatrix &P)
 Computes permutation of vector according to permutation matrix, C=Px.
 
cvector operator() (const intvector &p)
 Computes permutation of vector according to permutation vector, C=Px.
 
cvectoroperator= (const cmatrix &m) noexcept
 Implementation of standard assigning operator.
 
cvectoroperator= (const cmatrix_slice &) noexcept
 Implementation of standard assigning operator.
 
cvectoroperator= (const cmatrix_subv &) noexcept
 Implementation of standard assigning operator.
 
cvectoroperator= (const complex &r) noexcept
 Implementation of standard assigning operator.
 
cvectoroperator= (const cvector &rv) noexcept
 Implementation of standard assigning operator.
 
cvectoroperator= (const cvector_slice &sl) noexcept
 Implementation of standard assigning operator.
 
cvectoroperator= (const real &r) noexcept
 Implementation of standard assigning operator.
 
cvectoroperator= (const rmatrix &m) noexcept
 Implementation of standard assigning operator.
 
cvectoroperator= (const rmatrix_slice &) noexcept
 Implementation of standard assigning operator.
 
cvectoroperator= (const rmatrix_subv &) noexcept
 Implementation of standard assigning operator.
 
cvectoroperator= (const rvector &rv) noexcept
 Implementation of standard assigning operator.
 
cvectoroperator= (const rvector_slice &sl) noexcept
 Implementation of standard assigning operator.
 
cvectoroperator= (const scvector &rv)
 Implementation of standard assigning operator.
 
cvectoroperator= (const scvector_slice &sl)
 Implementation of standard assigning operator.
 
cvectoroperator= (const srvector &rv)
 Implementation of standard assigning operator.
 
cvectoroperator= (const srvector_slice &sl)
 Implementation of standard assigning operator.
 
complexoperator[] (const int &i) const noexcept
 Operator for accessing the single elements of the vector (read-only)
 
complexoperator[] (const int &i) noexcept
 Operator for accessing the single elements of the vector.
 

Friends

int Lb (const cvector &rv) noexcept
 Returns the lower bound of the vector.
 
cvectorSetLb (cvector &rv, const int &l) noexcept
 Sets the lower bound of the vector.
 
cvectorSetUb (cvector &rv, const int &u) noexcept
 Sets the upper bound of the vector.
 
int Ub (const cvector &rv) noexcept
 Returns the upper bound of the vector.
 
int VecLen (const cvector &rv) noexcept
 Returns the dimension of the vector.
 

Detailed Description

The Data Type cvector.

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

See also
rvector

Definition at line 57 of file cvector.hpp.

Member Function Documentation

◆ operator()() [1/2]

INLINE cvector_slice cxsc::cvector::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 159 of file cvector.inl.

◆ operator()() [2/2]

INLINE cvector_slice cxsc::cvector::operator() ( const int & i1,
const int & i2 )
noexcept

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 179 of file cvector.inl.


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