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()) {
70 data = v.data + offset;
83 for (
unsigned int i = 0; i < nrows; ++i) {
84 rowPtrs[i] = v.data + (i + offset);
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) {
233 unsigned int k = p.getRows();
243 memcpy(
data, p.data,
rowNum *
sizeof(
double));
unsigned int getCols() const
unsigned int getRows() const
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 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
unsigned int m_pRowNum
Number of row of parent vpColVector at initialization.
Class that consider the case of a translation vector.