36 #include <visp3/core/vpException.h>
37 #include <visp3/core/vpSubColVector.h>
52 init(v, offset, nrows);
65 "sub-column vector from an "
66 "empty parent column vector"));
69 if ((offset + nrows) <= v.
getRows()) {
83 for (
unsigned int i = 0; i < nrows; ++i) {
91 "completely contained in the parent column vector"));
125 "Cannot initialize (%dx1) sub-column vector from "
126 "(%dx1) sub-column vector",
130 for (
unsigned int i = 0; i <
rowNum; ++i) {
146 "Cannot initialize (%dx1) sub-column vector from "
147 "(%dx1) column vector",
151 for (
unsigned int i = 0; i <
rowNum; ++i) {
171 for (
unsigned int i = 0; i <
rowNum; ++i) {
184 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.
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
vpSubColVector & operator=(const vpSubColVector &B)
vpColVector * m_parent
Parent vpColVector.
vpSubColVector()
Default constructor that creates an empty vector.
virtual ~vpSubColVector() VP_OVERRIDE
void init(vpColVector &v, const unsigned int &offset, const unsigned int &nrows)
unsigned int m_pRowNum
Number of row of parent vpColVector at initialization.
Class that consider the case of a translation vector.