43 #include <visp/vpSubColVector.h>
44 #include <visp/vpException.h>
45 #include <visp/vpMatrixException.h>
46 #include <visp/vpDebug.h>
77 const unsigned int & offset,
78 const unsigned int & nrows){
81 vpERROR_TRACE(
"\n\t\t vpSubColvector parent vpColVector has been destroyed");
83 "\n\t\t \n\t\t vpSubColvector parent vpColVector has been destroyed")) ;
100 for(
unsigned int i=0;i<nrows;i++)
106 vpERROR_TRACE(
"SubColVector cannot be contain in parent ColVector") ;
122 vpERROR_TRACE(
"\n\t\t vpSubColvector parent vpColVector has been destroyed");
124 "\n\t\t \n\t\t vpSubColvector parent vpColVector has been destroyed")) ;
127 vpERROR_TRACE(
"\n\t\t vpSubColvector size of parent vpColVector has been changed");
140 vpERROR_TRACE(
"\n\t\t vpSubColVector mismatch in operator vpSubColVector=vpSubColVector") ;
142 "\n\t\t \n\t\t vpSubMatrix mismatch in operator vpSubColVector=vpSubColVector")) ;
145 for (
unsigned int i=0;i<
rowNum;i++)
157 vpERROR_TRACE(
"\n\t\t vpSubColVector mismatch in operator vpSubColVector=vpColVector") ;
159 "\n\t\t \n\t\t vpSubColVector mismatch in operator vpSubColVector=vpColVector")) ;
162 for (
unsigned int i=0;i<
rowNum;i++)
175 vpERROR_TRACE(
"\n\t\t vpSubColVector mismatch in operator vpSubColVector=vpMatrix") ;
177 "\n\t\t \n\t\t vpSubColVector mismatch in operator vpSubColVector=vpMatrix")) ;
180 for (
unsigned int i=0;i<
rowNum;i++)
190 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.