43 #include <visp/vpSubRowVector.h>
44 #include <visp/vpException.h>
45 #include <visp/vpMatrixException.h>
46 #include <visp/vpDebug.h>
50 : pColNum(0), parent(NULL)
61 : pColNum(0), parent(NULL)
63 init(v, offset, ncols);
75 vpERROR_TRACE(
"\n\t\t vpSubColvector parent vpRowVector has been destroyed");
77 "\n\t\t \n\t\t vpSubColvector parent vpRowVector has been destroyed")) ;
92 rowPtrs=(
double**) malloc(1 *
sizeof(
double*));
93 for(
unsigned int i=0;i<1;i++)
99 vpERROR_TRACE(
"SubRowVector cannot be contain in parent RowVector") ;
114 vpERROR_TRACE(
"\n\t\t vpSubColvector parent vpRowVector has been destroyed");
116 "\n\t\t \n\t\t vpSubColvector parent vpRowVector has been destroyed")) ;
119 vpERROR_TRACE(
"\n\t\t vpSubColvector size of parent vpRowVector has been changed");
121 "\n\t\t \n\t\t vpSubColvector size of parent vpRowVector has been changed")) ;
133 vpERROR_TRACE(
"\n\t\t vpSubRowVector mismatch in operator vpSubRowVector=vpSubRowVector") ;
135 "\n\t\t \n\t\t vpSubMatrix mismatch in operator vpSubRowVector=vpSubRowVector")) ;
138 for (
unsigned int i=0;i<
rowNum;i++)
151 vpERROR_TRACE(
"\n\t\t vpSubRowVector mismatch in operator vpSubRowVector=vpRowVector") ;
153 "\n\t\t \n\t\t vpSubMatrix mismatch in operator vpSubRowVector=vpRowVector")) ;
156 for (
unsigned int i=0;i<
rowNum;i++)
169 vpERROR_TRACE(
"\n\t\t vpSubRowVector mismatch in operator vpSubRowVector=vpMatrix") ;
171 "\n\t\t \n\t\t vpSubMatrix mismatch in operator vpSubRowVector=vpMatrix")) ;
174 for (
unsigned int i=0;i<
rowNum;i++)
183 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.