40 #include <visp3/core/vpSubRowVector.h> 41 #include <visp3/core/vpException.h> 58 init(v, offset, ncols);
71 "Cannot initialize a sub-row vector from an empty parent row vector")) ;
86 rowPtrs=(
double**) malloc(1 *
sizeof(
double*));
87 for(
unsigned int i=0;i<1;i++)
93 "Cannot create a sub-row vector that is not completely containt in the parrent row vector")) ;
111 "The parent of the current sub-row vector has been destroyed")) ;
115 "The size of the parent sub-row vector has changed")) ;
129 "Cannot initialize (1x%d) sub-row vector from (1x%d) sub-row vector",
133 for (
unsigned int i=0;i<
rowNum;i++)
149 "Cannot initialize (1x%d) sub-row vector from (1x%d) row vector",
153 for (
unsigned int i=0;i<
rowNum;i++)
169 "Cannot initialize (1x%d) sub-column vector from (%dx%d) matrix",
173 for (
unsigned int i=0;i<
rowNum;i++)
183 for (
unsigned int i=0;i<
rowNum;i++)
Implementation of a matrix and operations on matrices.
Implementation of row vector and the associated operations.
error that can be emited by ViSP classes.
unsigned int getRows() const
Return the number of rows of the 2D array.
vp_deprecated void init()
Type * data
Address of the first element of the data array.
vpSubRowVector & operator=(const vpSubRowVector &B)
unsigned int getCols() const
Return the number of columns of the 2D array.
unsigned int rowNum
Number of rows in the array.
vpRowVector * parent
Parent vpColvector.
unsigned int pColNum
Number of row of parent vpColvector at initialization.
unsigned int colNum
Number of columns in the array.
virtual ~vpSubRowVector()
Destructor that set the pointer to the parrent row vector to NULL.
void checkParentStatus() const
vpSubRowVector()
Default constructor that creates an empty vector.
unsigned int dsize
Current array size (rowNum * colNum)
double ** rowPtrs
Address of the first element of each rows.