41 #include <visp3/core/vpException.h> 42 #include <visp3/core/vpSubRowVector.h> 56 init(v, offset, ncols);
69 "vector from an empty parent " 73 if (offset + ncols <= v.
getCols()) {
85 rowPtrs = (
double **)malloc(1 *
sizeof(
double *));
86 for (
unsigned int i = 0; i < 1; i++)
92 "containt in the parrent row vector"));
128 for (
unsigned int i = 0; i <
rowNum; i++)
147 for (
unsigned int i = 0; i <
rowNum; i++)
166 for (
unsigned int i = 0; i <
rowNum; i++)
176 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
vp_deprecated void init()
Type * data
Address of the first element of the data array.
vpSubRowVector & operator=(const vpSubRowVector &B)
unsigned int getCols() const
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.