43 #include <visp/vpSubColVector.h>
44 #include <visp/vpException.h>
45 #include <visp/vpMatrixException.h>
46 #include <visp/vpDebug.h>
50 : pRowNum(0), parent(NULL)
61 : pRowNum(0), parent(NULL)
73 const unsigned int & offset,
74 const unsigned int & nrows){
77 vpERROR_TRACE(
"\n\t\t vpSubColvector parent vpColVector has been destroyed");
79 "\n\t\t \n\t\t vpSubColvector parent vpColVector has been destroyed")) ;
96 for(
unsigned int i=0;i<nrows;i++)
102 vpERROR_TRACE(
"SubColVector cannot be contain in parent ColVector") ;
118 vpERROR_TRACE(
"\n\t\t vpSubColvector parent vpColVector has been destroyed");
120 "\n\t\t \n\t\t vpSubColvector parent vpColVector has been destroyed")) ;
123 vpERROR_TRACE(
"\n\t\t vpSubColvector size of parent vpColVector has been changed");
136 vpERROR_TRACE(
"\n\t\t vpSubColVector mismatch in operator vpSubColVector=vpSubColVector") ;
138 "\n\t\t \n\t\t vpSubMatrix mismatch in operator vpSubColVector=vpSubColVector")) ;
141 for (
unsigned int i=0;i<
rowNum;i++)
153 vpERROR_TRACE(
"\n\t\t vpSubColVector mismatch in operator vpSubColVector=vpColVector") ;
155 "\n\t\t \n\t\t vpSubColVector mismatch in operator vpSubColVector=vpColVector")) ;
158 for (
unsigned int i=0;i<
rowNum;i++)
171 vpERROR_TRACE(
"\n\t\t vpSubColVector mismatch in operator vpSubColVector=vpMatrix") ;
173 "\n\t\t \n\t\t vpSubColVector mismatch in operator vpSubColVector=vpMatrix")) ;
176 for (
unsigned int i=0;i<
rowNum;i++)
186 for (
unsigned int i=0;i<
rowNum;i++)
Definition of the vpMatrix class.
void checkParentStatus()
Check is partent vpColVector has changed since initialization.
void init()
Initialization of the object matrix.
unsigned int pRowNum
Number of row of parent vpColvector at initialization.
~vpSubColVector()
Destructor.
double * data
address of the first element of the data array
unsigned int trsize
Total row space.
double ** rowPtrs
address of the first element of each rows
vpColVector * parent
Parent vpColvector.
Definition of the vpSubColVector vpSubColVector class provides a mask on a vpColVector all properties...
unsigned int rowNum
number of rows
vpSubColVector & operator=(const vpSubColVector &B)
Operation such as subA = subB.
Class that provides a data structure for the column vectors as well as a set of operations on these v...
unsigned int getCols() const
Return the number of columns of the matrix.
vpSubColVector()
Default constructor.
error that can be emited by the vpMatrix class and its derivates
unsigned int dsize
Current size (rowNum * colNum)
unsigned int colNum
number of columns
unsigned int getRows() const
Return the number of rows of the matrix.