43 #include <visp/vpSubRowVector.h>
44 #include <visp/vpException.h>
45 #include <visp/vpMatrixException.h>
46 #include <visp/vpDebug.h>
79 vpERROR_TRACE(
"\n\t\t vpSubColvector parent vpRowVector has been destroyed");
81 "\n\t\t \n\t\t vpSubColvector parent vpRowVector has been destroyed")) ;
96 rowPtrs=(
double**) malloc(1 *
sizeof(
double*));
97 for(
unsigned int i=0;i<1;i++)
103 vpERROR_TRACE(
"SubRowVector cannot be contain in parent RowVector") ;
118 vpERROR_TRACE(
"\n\t\t vpSubColvector parent vpRowVector has been destroyed");
120 "\n\t\t \n\t\t vpSubColvector parent vpRowVector has been destroyed")) ;
123 vpERROR_TRACE(
"\n\t\t vpSubColvector size of parent vpRowVector has been changed");
125 "\n\t\t \n\t\t vpSubColvector size of parent vpRowVector has been changed")) ;
137 vpERROR_TRACE(
"\n\t\t vpSubRowVector mismatch in operator vpSubRowVector=vpSubRowVector") ;
139 "\n\t\t \n\t\t vpSubMatrix mismatch in operator vpSubRowVector=vpSubRowVector")) ;
142 for (
unsigned int i=0;i<
rowNum;i++)
155 vpERROR_TRACE(
"\n\t\t vpSubRowVector mismatch in operator vpSubRowVector=vpRowVector") ;
157 "\n\t\t \n\t\t vpSubMatrix mismatch in operator vpSubRowVector=vpRowVector")) ;
160 for (
unsigned int i=0;i<
rowNum;i++)
173 vpERROR_TRACE(
"\n\t\t vpSubRowVector mismatch in operator vpSubRowVector=vpMatrix") ;
175 "\n\t\t \n\t\t vpSubMatrix mismatch in operator vpSubRowVector=vpMatrix")) ;
178 for (
unsigned int i=0;i<
rowNum;i++)
187 for (
unsigned int i=0;i<
rowNum;i++)
Definition of the vpMatrix class.
void init()
Initialization of the object matrix.
Definition of the row vector class.
vpSubRowVector & operator=(const vpSubRowVector &B)
Operation such as subA = subB.
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
vpRowVector * parent
Parent vpColvector.
unsigned int pColNum
Number of row of parent vpColvector at initialization.
void checkParentStatus()
Check is parent vpRowVector has changed since initialization.
~vpSubRowVector()
Destructor.
unsigned int rowNum
number of rows
Definition of the vpSubRowVector vpSubRowVector class provides a mask on a vpRowVector all properties...
unsigned int getCols() const
Return the number of columns of the matrix.
error that can be emited by the vpMatrix class and its derivates
vpSubRowVector()
Default constructor.
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.