36 #include <visp3/core/vpException.h>
37 #include <visp3/core/vpSubRowVector.h>
52 init(v, offset, ncols);
65 "vector from an empty parent row vector"));
68 if ((offset + ncols) <= v.
getCols()) {
81 rowPtrs = (
double **)malloc(1 *
sizeof(
double *));
82 for (
unsigned int i = 0; i < 1; ++i) {
90 "contained in the parent row vector"));
128 for (
unsigned int i = 0; i <
rowNum; ++i) {
148 for (
unsigned int i = 0; i <
rowNum; ++i) {
168 for (
unsigned int i = 0; i <
rowNum; ++i) {
180 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.
error that can be emitted by ViSP classes.
@ dimensionError
Bad dimension.
Implementation of a matrix and operations on matrices.
Implementation of row vector and the associated operations.
vpRowVector * m_parent
Parent vpColVector.
vpSubRowVector & operator=(const vpSubRowVector &B)
void init(vpRowVector &v, const unsigned int &offset, const unsigned int &ncols)
virtual ~vpSubRowVector() VP_OVERRIDE
void checkParentStatus() const
vpSubRowVector()
Default constructor that creates an empty vector.
unsigned int m_pColNum
Number of row of parent vpColVector at initialization.