41 #include <visp3/core/vpException.h>
42 #include <visp3/core/vpSubColVector.h>
56 init(v, offset, nrows);
69 "sub-column vector from an "
70 "empty parent column vector"));
73 if (offset + nrows <= v.
getRows()) {
87 for (
unsigned int i = 0; i < nrows; i++)
93 "completely contained in the parrent column vector"));
126 "Cannot initialize (%dx1) sub-column vector from "
127 "(%dx1) sub-column vector",
131 for (
unsigned int i = 0; i <
rowNum; i++)
145 "Cannot initialize (%dx1) sub-column vector from "
146 "(%dx1) column vector",
150 for (
unsigned int i = 0; i <
rowNum; i++)
168 for (
unsigned int i = 0; i <
rowNum; i++)
179 for (
unsigned int i = 0; i <
rowNum; i++)
unsigned int getCols() const
Type * data
Address of the first element of the data array.
double ** rowPtrs
Address of the first element of each rows.
unsigned int rowNum
Number of rows in the array.
unsigned int dsize
Current array size (rowNum * colNum)
unsigned int getRows() const
unsigned int colNum
Number of columns in the array.
Implementation of column vector and the associated operations.
vp_deprecated void init()
void resize(unsigned int i, bool flagNullify=true)
error that can be emitted by ViSP classes.
@ dimensionError
Bad dimension.
Implementation of a matrix and operations on matrices.
Implementation of a pose vector and operations on poses.
Implementation of a generic rotation vector.
void checkParentStatus() const
vpColVector * parent
Parent vpColvector.
vpSubColVector & operator=(const vpSubColVector &B)
virtual ~vpSubColVector()
Destructor that set the pointer to the parrent column vector to NULL.
unsigned int pRowNum
Number of row of parent vpColvector at initialization.
vpSubColVector()
Default constructor that creates an empty vector.
Class that consider the case of a translation vector.