36 #include <visp3/core/vpException.h>
37 #include <visp3/core/vpSubRowVector.h>
51 init(v, offset, ncols);
64 "vector from an empty parent row vector"));
67 if ((offset + ncols) <= v.
getCols()) {
80 rowPtrs = (
double **)malloc(1 *
sizeof(
double *));
81 for (
unsigned int i = 0; i < 1; ++i) {
89 "contained in the parent row vector"));
127 for (
unsigned int i = 0; i <
rowNum; ++i) {
147 for (
unsigned int i = 0; i <
rowNum; ++i) {
167 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.
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.
vp_deprecated void init()
vpRowVector * m_parent
Parent vpColVector.
virtual ~vpSubRowVector() vp_override
vpSubRowVector & operator=(const vpSubRowVector &B)
vpSubRowVector()
Default constructor that creates an empty vector.
void checkParentStatus() const
unsigned int m_pColNum
Number of row of parent vpColVector at initialization.