Visual Servoing Platform  version 3.0.1
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
vpSubColVector Class Reference

#include <visp3/core/vpSubColVector.h>

+ Inheritance diagram for vpSubColVector:

Public Member Functions

 vpSubColVector ()
 
 vpSubColVector (vpColVector &v, const unsigned int &offset, const unsigned int &nrows)
 
virtual ~vpSubColVector ()
 
void checkParentStatus () const
 
void init (vpColVector &v, const unsigned int &offset, const unsigned int &nrows)
 
vpSubColVectoroperator= (const vpSubColVector &B)
 
vpSubColVectoroperator= (const vpPoseVector &p)
 
vpSubColVectoroperator= (const vpRotationVector &rv)
 
vpSubColVectoroperator= (const vpTranslationVector &tv)
 
vpSubColVectoroperator= (const vpColVector &B)
 
vpSubColVectoroperator= (const vpMatrix &B)
 
vpSubColVectoroperator= (const double &x)
 
void clear ()
 
std::ostream & cppPrint (std::ostream &os, const std::string &matrixName="A", bool octet=false) const
 
std::ostream & csvPrint (std::ostream &os) const
 
void deg2rad ()
 
double euclideanNorm () const
 
vpColVector extract (unsigned int r, unsigned int colsize) const
 
double infinityNorm () const
 
void init (const vpColVector &v, unsigned int r, unsigned int nrows)
 
void insert (unsigned int i, const vpColVector &v)
 
void insert (const vpColVector &v, unsigned int i)
 
std::ostream & maplePrint (std::ostream &os) const
 
std::ostream & matlabPrint (std::ostream &os) const
 
vpColVectornormalize ()
 
vpColVectornormalize (vpColVector &x) const
 
double & operator[] (unsigned int n)
 
const double & operator[] (unsigned int n) const
 
double operator* (const vpColVector &x) const
 
vpMatrix operator* (const vpRowVector &v) const
 
vpColVector operator* (const double x) const
 
vpColVectoroperator*= (double x)
 
vpColVector operator/ (const double x) const
 
vpColVectoroperator/= (double x)
 
vpColVector operator+ (const vpColVector &v) const
 
vpTranslationVector operator+ (const vpTranslationVector &t) const
 
vpColVectoroperator+= (vpColVector v)
 
vpColVector operator- (const vpColVector &v) const
 
vpColVector operator- () const
 
vpColVectoroperator-= (vpColVector v)
 
vpColVectoroperator<< (const vpColVector &v)
 
vpColVectoroperator<< (double *)
 
int print (std::ostream &s, unsigned int length, char const *intro=0) const
 
void rad2deg ()
 
void reshape (vpMatrix &M, const unsigned int &nrows, const unsigned int &ncols)
 
vpMatrix reshape (const unsigned int &nrows, const unsigned int &ncols)
 
void resize (const unsigned int i, const bool flagNullify=true)
 
void resize (const unsigned int nrows, const unsigned int ncols, const bool flagNullify)
 
void stack (const double &d)
 
void stack (const vpColVector &v)
 
double sum () const
 
double sumSquare () const
 
vpRowVector t () const
 
vpRowVector transpose () const
 
void transpose (vpRowVector &v) const
 
Inherited functionalities from vpArray2D
double getMinValue () const
 
double getMaxValue () const
 
unsigned int getRows () const
 
unsigned int getCols () const
 
unsigned int size () const
 

Static Public Member Functions

static vpColVector stack (const vpColVector &A, const vpColVector &B)
 
static void stack (const vpColVector &A, const vpColVector &B, vpColVector &C)
 
static vpColVector cross (const vpColVector &a, const vpColVector &b)
 
static vpColVector crossProd (const vpColVector &a, const vpColVector &b)
 
static double dotProd (const vpColVector &a, const vpColVector &b)
 
static vpColVector invSort (const vpColVector &v)
 
static double median (const vpColVector &v)
 
static double mean (const vpColVector &v)
 
static vpMatrix skew (const vpColVector &v)
 
static vpColVector sort (const vpColVector &v)
 
static double stdev (const vpColVector &v, const bool useBesselCorrection=false)
 
Inherited I/O from vpArray2D with Static Public Member Functions
static bool load (const std::string &filename, vpArray2D< double > &A, const bool binary=false, char *header=NULL)
 
static bool loadYAML (const std::string &filename, vpArray2D< double > &A, char *header=NULL)
 
static bool save (const std::string &filename, const vpArray2D< double > &A, const bool binary=false, const char *header="")
 
static bool saveYAML (const std::string &filename, const vpArray2D< double > &A, const char *header="")
 

Public Attributes

double * data
 

Protected Attributes

unsigned int pRowNum
 
vpColVectorparent
 
unsigned int rowNum
 
unsigned int colNum
 
double ** rowPtrs
 
unsigned int dsize
 

Related Functions

(Note that these are not member functions.)

vpColVector operator* (const double &x, const vpColVector &v)
 
enum  vpGEMMmethod
 

Deprecated functions

vp_deprecated void init ()
 
vp_deprecated void insert (const vpColVector &v, const unsigned int r, const unsigned int c=0)
 
vp_deprecated vpColVector rows (unsigned int first_row, unsigned int last_row) const
 
vp_deprecated void setIdentity (const double &val=1.0)
 
vp_deprecated void stackMatrices (const vpColVector &r)
 
static vp_deprecated vpColVector stackMatrices (const vpColVector &A, const vpColVector &B)
 
static vp_deprecated void stackMatrices (const vpColVector &A, const vpColVector &B, vpColVector &C)
 

Detailed Description

This class provides a mask on a vpColVector. It has internally a pointer to the parent vpColVector. All properties of vpColVector are available with a vpSubColVector.

Author
Jean Laneurit (IRISA - INRIA Rennes)
See Also
vpMatrix vpColvector vpRowVector

Definition at line 61 of file vpSubColVector.h.

Constructor & Destructor Documentation

vpSubColVector::vpSubColVector ( )

Default constructor that creates an empty vector.

Definition at line 44 of file vpSubColVector.cpp.

vpSubColVector::vpSubColVector ( vpColVector v,
const unsigned int &  offset,
const unsigned int &  nrows 
)

Construct a sub-column vector from a parent column vector.

Parameters
v: parent column vector.
offset: offset where the sub-column vector starts in the parent column vector.
nrows: size of the sub-column vector.

Definition at line 55 of file vpSubColVector.cpp.

References vpColVector::init().

vpSubColVector::~vpSubColVector ( )
virtual

Destructor that set the pointer to the parrent column vector to NULL.

Definition at line 101 of file vpSubColVector.cpp.

References vpArray2D< double >::data.

Member Function Documentation

void vpSubColVector::checkParentStatus ( ) const

This method can be used to detect if the parent column vector always exits or its size have not changed. If this not the case an exception is thrown.

Definition at line 110 of file vpSubColVector.cpp.

References vpArray2D< double >::data, vpException::dimensionError, vpException::fatalError, vpArray2D< Type >::getRows(), parent, and pRowNum.

void vpColVector::clear ( )
inlineinherited

Removes all elements from the vector (which are destroyed), leaving the container with a size of 0.

Examples:
testColVector.cpp.

Definition at line 106 of file vpColVector.h.

References vpArray2D< double >::colNum, vpArray2D< double >::data, vpArray2D< double >::dsize, vpArray2D< double >::rowNum, and vpArray2D< double >::rowPtrs.

Referenced by vpMbTracker::createCylinderBBox().

std::ostream & vpColVector::cppPrint ( std::ostream &  os,
const std::string &  matrixName = "A",
bool  octet = false 
) const
inherited

Print to be used as part of a C++ code later.

Parameters
os: the stream to be printed in.
matrixName: name of the column vector, "A" by default.
octet: if false, print using double, if true, print byte per byte each bytes of the double array.

The following code shows how to use this function:

#include <visp3/core/vpColVector.h>
int main()
{
for (unsigned int i=0; i<v.size(); i++)
v[i] = i;
v.cppPrint(std::cout, "v");
}

It produces the following output that could be copy/paste in a C++ code:

v[0] = 0;
v[1] = 1;
v[2] = 2;

Definition at line 1502 of file vpColVector.cpp.

References vpArray2D< double >::getRows().

static vpColVector vpColVector::cross ( const vpColVector a,
const vpColVector b 
)
inlinestaticinherited

Compute and return the cross product of two 3-dimension vectors: $a \times b$.

Parameters
a: 3-dimension column vector.
b: 3-dimension column vector.
Returns
The cross product $a \times b$.
Exceptions
vpException::dimensionErrorIf the vectors dimension is not equal to 3.

Definition at line 266 of file vpColVector.h.

Referenced by vpMbtDistanceLine::buildFrom(), vpPlane::init(), and vpPose::poseDementhonNonPlan().

vpColVector vpColVector::crossProd ( const vpColVector a,
const vpColVector b 
)
staticinherited

Compute and return the cross product of two vectors $a \times b$.

Parameters
a: 3-dimension column vector.
b: 3-dimension column vector.
Returns
The cross product $a \times b$.
Exceptions
vpException::dimensionErrorIf the vectors dimension is not equal to 3.

Definition at line 1104 of file vpColVector.cpp.

References vpException::dimensionError, vpArray2D< Type >::getRows(), and vpColVector::skew().

Referenced by vpMbTracker::addPolygon(), vpPose::coplanar(), vpMbTracker::createCylinderBBox(), and vpImageSimulator::setCameraPosition().

std::ostream & vpColVector::csvPrint ( std::ostream &  os) const
inherited

Print/save a column vector in csv format.

The following code

#include <visp3/core/vpColVector.h>
int main()
{
std::ofstream ofs("log.csv", std::ofstream::out);
for (unsigned int i=0; i<v.size(); i++)
v[i] = i;
v.csvPrint(ofs);
ofs.close();
}

produces log.csv file that contains:

0
1
2

Definition at line 1552 of file vpColVector.cpp.

References vpArray2D< double >::getRows().

double vpColVector::dotProd ( const vpColVector a,
const vpColVector b 
)
staticinherited

Compute end return the dot product of two column vectors:

\[ a \cdot b = \sum_{i=0}^n a_i * b_i\]

where n is the dimension of both vectors.

Exceptions
vpException::dimensionErrorIf the vector dimension differ.

Definition at line 713 of file vpColVector.cpp.

References vpArray2D< Type >::data, vpException::dimensionError, vpException::fatalError, vpArray2D< Type >::getRows(), and vpArray2D< Type >::size().

Referenced by vpPose::calculArbreDementhon(), vpMbtPolygon::isVisible(), vpPose::poseDementhonPlan(), and vpImageSimulator::setCameraPosition().

double vpColVector::euclideanNorm ( ) const
inherited

Compute and return the Euclidean norm $ ||x|| = \sqrt{ \sum{v_{i}^2}} $.

Returns
The Euclidean norm if the vector is initialized, 0 otherwise.

Definition at line 1438 of file vpColVector.cpp.

References vpColVector::sumSquare().

Referenced by vpServo::computeProjectionOperators(), vpMbTracker::createCylinderBBox(), and vpSimulatorAfma6::setPosition().

vpColVector vpColVector::extract ( unsigned int  r,
unsigned int  colsize 
) const
inlineinherited

Extract a sub-column vector from a column vector.

Parameters
r: Index of the row corresponding to the first element of the vector to extract.
colsize: Size of the vector to extract.
Exceptions
vpException::fatalErrorIf the vector to extract is not contained in the original one.
for (unsigned int i=0; i<4; i++)
v1.stack(i);
// v1 is equal to [0 1 2 3]^T
vpColVector v2 = v1.extract(1, 3);
// v2 is equal to [1 2 3]^T
Examples:
testColVector.cpp, and testForceTorqueAti.cpp.

Definition at line 149 of file vpColVector.h.

References vpException::fatalError, and vpArray2D< double >::rowNum.

double vpArray2D< double >::getMaxValue ( ) const
inherited

Return the array max value.

Examples:
servoMomentImage.cpp.
double vpArray2D< double >::getMinValue ( ) const
inherited

Return the array min value.

Examples:
servoMomentImage.cpp.
double vpColVector::infinityNorm ( ) const
inherited

Compute and return the infinity norm $ {||x||}_{\infty} = max\left({\mid x_{i} \mid}\right) $ with $i \in \{0, ..., m-1\}$ where m is the vector size and $x_i$ an element of the vector.

Returns
The infinity norm if the matrix is initialized, 0 otherwise.
See Also
euclideanNorm()

Definition at line 1461 of file vpColVector.cpp.

References vpArray2D< double >::rowNum.

void vpSubColVector::init ( vpColVector v,
const unsigned int &  offset,
const unsigned int &  nrows 
)

Initialize a sub-column vector from a parent column vector.

Parameters
v: parent column vector.
offset: offset where the sub-column vector starts in the parent column vector.
nrows: size of the sub-column vector.

Definition at line 67 of file vpSubColVector.cpp.

References vpArray2D< double >::colNum, vpArray2D< double >::data, vpArray2D< Type >::data, vpException::dimensionError, vpArray2D< double >::dsize, vpException::fatalError, vpArray2D< Type >::getRows(), parent, pRowNum, vpArray2D< double >::rowNum, and vpArray2D< double >::rowPtrs.

void vpColVector::init ( const vpColVector v,
unsigned int  r,
unsigned int  nrows 
)
inherited

Initialize the column vector from a part of an input column vector v.

Parameters
v: Input column vector used for initialization.
r: row index in v that corresponds to the first element of the column vector to contruct.
nrows: Number of rows of the constructed column vector.

The sub-vector starting from v[r] element and ending on v[r+nrows-1] element is used to initialize the contructed column vector.

The following code shows how to use this function:

#include <visp3/core/vpColVector.h>
int main()
{
int val = 0;
for(size_t i=0; i<v.getRows(); i++) {
v[i] = val++;
}
std::cout << "v: " << v.t() << std::endl;
w.init(v, 0, 2);
std::cout << "w: " << w.t() << std::endl;
}

It produces the following output:

v: 0 1 2 3
w: 1 2
Examples:
testColVector.cpp.

Definition at line 255 of file vpColVector.cpp.

References vpException::dimensionError, vpArray2D< Type >::getRows(), vpColVector::resize(), and vpArray2D< double >::rowPtrs.

vp_deprecated void vpColVector::init ( )
inlineinherited
Deprecated:
Provided only for compat with previous releases. This function does nothing.

Definition at line 295 of file vpColVector.h.

Referenced by vpColVector::vpColVector(), and vpSubColVector().

void vpColVector::insert ( unsigned int  i,
const vpColVector v 
)
inherited

Insert a column vector.

Parameters
i: Index of the first element to introduce. This index starts from 0.
v: Column vector to insert.

The following example shows how to use this function:

#include <visp3/core/vpColVector.h>
int main()
{
for (unsigned int i=0; i < v.size(); i++)
v[i] = i;
std::cout << "v: " << v.t() << std::endl;
for (unsigned int i=0; i < w.size(); i++)
w[i] = i+10;
std::cout << "w: " << w.t() << std::endl;
v.insert(1, w);
std::cout << "v: " << v.t() << std::endl;
}

It produces the following output:

v: 0 1 2 3
w: 10 11
v: 0 10 11 3
Examples:
testVirtuoseAfma6.cpp.

Definition at line 1236 of file vpColVector.cpp.

References vpException::dimensionError, vpArray2D< double >::size(), and vpArray2D< Type >::size().

Referenced by vpColVector::insert().

void vpColVector::insert ( const vpColVector v,
unsigned int  i 
)
inherited
void vpColVector::insert ( const vpColVector v,
const unsigned int  r,
const unsigned int  c = 0 
)
inherited
Deprecated:
You should rather use insert(unsigned int, const vpColVector &).

Insert column vector v at the given position r in the current column vector.

Warning
Throw vpMatrixException::incorrectMatrixSizeError if the dimensions of the matrices do not allow the operation.
Parameters
v: The column vector to insert.
r: The index of the row to begin to insert data.
c: Not used.

Definition at line 1660 of file vpColVector.cpp.

References vpColVector::insert().

vpColVector vpColVector::invSort ( const vpColVector v)
staticinherited

Return a column vector with elements of v that are reverse sorted.

See Also
sort()

Definition at line 779 of file vpColVector.cpp.

References vpArray2D< Type >::data, vpException::fatalError, and vpArray2D< Type >::getRows().

static bool vpArray2D< double >::load ( const std::string &  filename,
vpArray2D< double > &  A,
const bool  binary = false,
char *  header = NULL 
)
inlinestaticinherited

Load a matrix from a file.

Parameters
filename: Absolute file name.
A: Array to be loaded
binary: If true the matrix is loaded from a binary file, else from a text file.
header: Header of the file is loaded in this parameter.
Returns
Returns true if success.
See Also
save()

Definition at line 308 of file vpArray2D.h.

References vpException::badValue, and vpArray2D< Type >::resize().

static bool vpArray2D< double >::loadYAML ( const std::string &  filename,
vpArray2D< double > &  A,
char *  header = NULL 
)
inlinestaticinherited

Load an array from a YAML-formatted file.

Parameters
filename: absolute file name.
A: array to be loaded from the file.
header: header of the file is loaded in this parameter.
Returns
Returns true on success.
See Also
saveYAML()

Definition at line 417 of file vpArray2D.h.

References vpArray2D< Type >::resize().

std::ostream & vpColVector::maplePrint ( std::ostream &  os) const
inherited

Print using Maple syntax, to copy/paste in Maple later.

The following code

#include <visp3/core/vpColVector.h>
int main()
{
for (unsigned int i=0; i<v.size(); i++)
v[i] = i;
std::cout << "v = "; v.maplePrint(std::cout);
}

produces this output:

v = ([
[0, ],
[1, ],
[2, ],
])

that could be copy/paste in Maple.

Definition at line 1587 of file vpColVector.cpp.

References vpArray2D< double >::getRows().

std::ostream & vpColVector::matlabPrint ( std::ostream &  os) const
inherited

Print using Matlab syntax, to copy/paste in Matlab later.

The following code

#include <visp3/core/vpColVector.h>
int main()
{
for (unsigned int i=0; i<v.size(); i++)
v[i] = i;
std::cout << "v = "; v.matlabPrint(std::cout);
}

produces this output:

v = [ 0, ;
1, ;
2, ]

that could be copy/paste in Matlab:

>> v = [ 0, ;
1, ;
2, ]
v =
0
1
2
>>

Definition at line 1635 of file vpColVector.cpp.

References vpArray2D< double >::getRows().

double vpColVector::mean ( const vpColVector v)
staticinherited

Compute the mean value of all the elements of the vector.

Examples:
testColVector.cpp.

Definition at line 964 of file vpColVector.cpp.

References vpArray2D< Type >::data, vpException::fatalError, vpArray2D< Type >::getRows(), and vpColVector::sum().

Referenced by vpColVector::stdev().

double vpColVector::median ( const vpColVector v)
staticinherited

Compute the median value of all the elements of the vector.

Examples:
testColVector.cpp.

Definition at line 986 of file vpColVector.cpp.

References vpArray2D< Type >::data, vpException::fatalError, vpMath::getMedian(), and vpArray2D< Type >::size().

vpColVector & vpColVector::normalize ( vpColVector x) const
inherited

Normalise the vector:

\[ {\bf x}_i = \frac{{\bf x}_i}{\sqrt{\sum_{i=1}^{n}x^2_i}} \]

Definition at line 746 of file vpColVector.cpp.

References vpColVector::sumSquare().

double vpColVector::operator* ( const vpColVector v) const
inherited

Operator that performs the dot product between two column vectors.

Exceptions
vpException::dimensionErrorIf the vector dimension differ.
See Also
dotProd()

Definition at line 152 of file vpColVector.cpp.

References vpException::dimensionError, vpArray2D< double >::rowNum, vpArray2D< double >::size(), and vpArray2D< Type >::size().

vpMatrix vpColVector::operator* ( const vpRowVector v) const
inherited

Multiply a column vector by a row vector.

Parameters
v: Row vector.
Returns
The resulting matrix.

Definition at line 175 of file vpColVector.cpp.

References vpArray2D< Type >::getCols(), and vpArray2D< double >::rowNum.

vpColVector vpColVector::operator* ( const double  x) const
inherited

Operator that allows to multiply each element of a column vector by a scalar.

Parameters
x: The scalar.
Returns
The column vector multiplied by the scalar. The current column vector (*this) is unchanged.
v[0] = 1;
v[1] = 2;
v[2] = 3;
vpColVector w = v * 3;
// v is unchanged
// w is now equal to : [3, 6, 9]

Definition at line 386 of file vpColVector.cpp.

References vpArray2D< Type >::data, vpArray2D< double >::data, and vpArray2D< double >::rowNum.

vpColVector & vpColVector::operator*= ( double  x)
inherited

Operator that allows to multiply each element of a column vector by a scalar.

Parameters
x: The scalar.
Returns
The column vector multiplied by the scalar.
v[0] = 1;
v[1] = 2;
v[2] = 3;
v *= 3;
// v is now equal to : [3, 6, 9]

Definition at line 414 of file vpColVector.cpp.

References vpArray2D< double >::rowNum.

vpColVector vpColVector::operator+ ( const vpColVector v) const
inherited

Operator that allows to add two column vectors.

Definition at line 69 of file vpColVector.cpp.

References vpException::dimensionError, vpArray2D< Type >::getRows(), vpArray2D< double >::getRows(), and vpArray2D< double >::rowNum.

vpTranslationVector vpColVector::operator+ ( const vpTranslationVector t) const
inherited

Operator that allows to add a column vector to a translation vector.

Parameters
t: 3-dimension translation vector to add.
Returns
The sum of the current columnn vector (*this) and the translation vector to add.
v[0] = 4; v[1] = 5; v[2] = 6;
t2 = v + t1;
// t1 and v leave unchanged
// t2 is now equal to : 5, 7, 9

Definition at line 101 of file vpColVector.cpp.

References vpException::dimensionError, and vpArray2D< double >::getRows().

vpColVector & vpColVector::operator+= ( vpColVector  v)
inherited

Operator that allows to add two column vectors.

Definition at line 116 of file vpColVector.cpp.

References vpException::dimensionError, vpArray2D< Type >::getRows(), vpArray2D< double >::getRows(), and vpArray2D< double >::rowNum.

vpColVector vpColVector::operator- ( const vpColVector v) const
inherited

operator substraction of two vectors V = A-v

Definition at line 187 of file vpColVector.cpp.

References vpException::dimensionError, vpArray2D< Type >::getRows(), vpArray2D< double >::getRows(), and vpArray2D< double >::rowNum.

vpColVector vpColVector::operator- ( void  ) const
inherited

Operator that allows to negate all the column vector elements.

vpColVector r(3, 1);
// r contains [1 1 1]^T
vpColVector v = -r;
// v contains [-1 -1 -1]^T

Definition at line 347 of file vpColVector.cpp.

References vpArray2D< Type >::data, vpArray2D< double >::data, vpColVector::resize(), vpArray2D< double >::rowNum, and vpERROR_TRACE.

vpColVector & vpColVector::operator-= ( vpColVector  v)
inherited

Operator that allows to substract two column vectors.

Definition at line 130 of file vpColVector.cpp.

References vpException::dimensionError, vpArray2D< Type >::getRows(), vpArray2D< double >::getRows(), and vpArray2D< double >::rowNum.

vpColVector vpColVector::operator/ ( const double  x) const
inherited

Operator that allows to divide each element of a column vector by a scalar.

Parameters
x: The scalar.
Returns
The column vector divided by the scalar. The current column vector (*this) is unchanged.
v[0] = 8;
v[1] = 4;
v[2] = 2;
vpColVector w = v / 2;
// v is unchanged
// w is now equal to : [4, 2, 1]

Definition at line 464 of file vpColVector.cpp.

References vpArray2D< Type >::data, vpArray2D< double >::data, and vpArray2D< double >::rowNum.

vpColVector & vpColVector::operator/= ( double  x)
inherited

Operator that allows to divide each element of a column vector by a scalar.

Parameters
x: The scalar.
Returns
The column vector divided by the scalar.
v[0] = 8;
v[1] = 4;
v[2] = 2;
v /= 2;
// v is now equal to : [4, 2, 1]

Definition at line 438 of file vpColVector.cpp.

References vpArray2D< double >::rowNum.

vpColVector & vpColVector::operator<< ( const vpColVector v)
inherited

Copy operator. Allows operation such as A << v

#include <visp3/core/vpColVector.h>
int main()
{
vpColVector A, B(5);
for (unsigned int i=0; i<B.size(); i++)
B[i] = i;
A << B;
std::cout << "A: " << A.t() << std::endl;
}

In column vector A we get:

A: 0 1 2 3 4

Definition at line 616 of file vpColVector.cpp.

vpColVector & vpColVector::operator<< ( double *  x)
inherited

Assigment operator. Allow operation such as A = *v

The following example shows how to use this operator.

#include <visp3/core/vpColVector.h>
int main()
{
size_t n = 5;
double *B = new double [n];
for (unsigned int i = 0; i < n; i++)
B[i] = i;
A << B;
std::cout << "A: " << A.t() << std::endl;
delete [] B;
}

It produces the following output:

A: 0 1 2 3 4

Definition at line 646 of file vpColVector.cpp.

References vpArray2D< double >::colNum, vpArray2D< double >::rowNum, and vpArray2D< double >::rowPtrs.

vpSubColVector & vpSubColVector::operator= ( const vpSubColVector B)

Allow to initialize a sub-column vector from an other one using operation A = B. Notice that the sub-column vector is not resized to the dimension of B.

Parameters
B: a sub-column vector.

Definition at line 127 of file vpSubColVector.cpp.

References vpArray2D< double >::data, vpException::dimensionError, vpArray2D< Type >::getRows(), and vpArray2D< double >::rowNum.

vpSubColVector & vpSubColVector::operator= ( const vpPoseVector p)

Operator that allows to convert a pose vector into a column vector.

Definition at line 229 of file vpSubColVector.cpp.

References vpArray2D< double >::data, vpArray2D< Type >::data, vpArray2D< Type >::getRows(), vpColVector::resize(), and vpArray2D< double >::rowNum.

vpSubColVector & vpSubColVector::operator= ( const vpRotationVector rv)

Operator that allows to convert a rotation vector into a column vector.

Definition at line 210 of file vpSubColVector.cpp.

References vpArray2D< double >::data, vpArray2D< Type >::data, vpArray2D< Type >::getRows(), vpColVector::resize(), and vpArray2D< double >::rowNum.

vpSubColVector & vpSubColVector::operator= ( const vpTranslationVector tv)

Operator that allows to convert a translation vector into a column vector.

Definition at line 191 of file vpSubColVector.cpp.

References vpArray2D< double >::data, vpArray2D< Type >::data, vpArray2D< Type >::getRows(), vpColVector::resize(), and vpArray2D< double >::rowNum.

vpSubColVector & vpSubColVector::operator= ( const vpColVector B)

Allow to initialize a sub-column vector from a column vector using operation A = B. Notice that the sub-column vector is not resized to the dimension of B.

Parameters
B: a column vector.

Definition at line 145 of file vpSubColVector.cpp.

References vpArray2D< double >::data, vpException::dimensionError, vpArray2D< Type >::getRows(), and vpArray2D< double >::rowNum.

vpSubColVector & vpSubColVector::operator= ( const vpMatrix B)

Allow to initialize a sub-column vector from a m-by-1 matrix using operation A = B. Notice that the sub-column vector is not resized to the dimension of B.

Parameters
B: a matrix of size m-by-1.

Definition at line 164 of file vpSubColVector.cpp.

References vpArray2D< double >::data, vpException::dimensionError, vpArray2D< Type >::getCols(), vpArray2D< Type >::getRows(), and vpArray2D< double >::rowNum.

vpSubColVector & vpSubColVector::operator= ( const double &  x)

Set all the elements of the sub-column vector to x.

Parameters
x: a scalar value.

Definition at line 181 of file vpSubColVector.cpp.

References vpArray2D< double >::data, and vpArray2D< double >::rowNum.

double& vpColVector::operator[] ( unsigned int  n)
inlineinherited

Operator that allows to set a value of an element $v_i$: v[i] = x.

Definition at line 172 of file vpColVector.h.

References vpArray2D< double >::data.

const double& vpColVector::operator[] ( unsigned int  n) const
inlineinherited

Operator that allows to get the value of an element $v_i$: x = v[i].

Definition at line 174 of file vpColVector.h.

References vpArray2D< double >::data.

int vpColVector::print ( std::ostream &  s,
unsigned int  length,
char const *  intro = 0 
) const
inherited

Pretty print a column vector. The data are tabulated. The common widths before and after the decimal point are set with respect to the parameter maxlen.

Parameters
sStream used for the printing.
lengthThe suggested width of each vector element. The actual width grows in order to accomodate the whole integral part, and shrinks if the whole extent is not needed for all the numbers.
introThe introduction which is printed before the vector. Can be set to zero (or omitted), in which case the introduction is not printed.
Returns
Returns the common total width for all vector elements.
See Also
std::ostream &operator<<(std::ostream &s, const vpArray2D<Type> &A)
Examples:
servoSimu3D_cdMc_CamVelocity.cpp, servoSimu3D_cMcd_CamVelocity.cpp, testColVector.cpp, and testTwistMatrix.cpp.

Definition at line 1264 of file vpColVector.cpp.

References vpArray2D< double >::getRows(), and vpMath::maximum().

void vpColVector::rad2deg ( )
inlineinherited

Convert a column vector containing angles in radians into degrees.

See Also
deg2rad()

Definition at line 210 of file vpColVector.h.

Referenced by vpRobotViper650::setPosition(), vpRobotViper850::setPosition(), vpRobotViper650::setVelocity(), and vpRobotViper850::setVelocity().

void vpColVector::reshape ( vpMatrix M,
const unsigned int &  nrows,
const unsigned int &  ncols 
)
inherited

Reshape the column vector in a matrix.

Parameters
M: the reshaped matrix.
nrows: number of rows of the matrix.
ncols: number of columns of the matrix.
Exceptions
vpException::dimensionErrorIf the matrix and the column vector have not the same size.

The following example shows how to use this method.

#include <visp/vpColVector.h>
int main()
{
int var=0;
vpMatrix mat(3, 4);
for (int i = 0; i < 3; i++)
for (int j = 0; j < 4; j++)
mat[i][j] = ++var;
std::cout << "mat: \n" << mat << std::endl;
vpColVector col = mat.stackColumns();
std::cout << "column vector: \n" << col << std::endl;
vpMatrix remat = col.reshape(3, 4);
std::cout << "remat: \n" << remat << std::endl;
}

If you run the previous example, you get:

mat:
1 2 3 4
5 6 7 8
9 10 11 12
column vector:
1
5
9
2
6
10
3
7
11
4
8
12
remat:
1 2 3 4
5 6 7 8
9 10 11 12

Definition at line 1185 of file vpColVector.cpp.

References vpArray2D< double >::data, vpException::dimensionError, vpArray2D< double >::dsize, vpArray2D< Type >::getCols(), vpArray2D< Type >::getRows(), vpArray2D< Type >::resize(), and vpArray2D< double >::rowNum.

Referenced by vpColVector::reshape().

vpMatrix vpColVector::reshape ( const unsigned int &  nrows,
const unsigned int &  ncols 
)
inherited

Reshape the column vector in a matrix.

Parameters
nrows: number of rows of the matrix
ncols: number of columns of the matrix
Returns
The reshaped matrix.
See Also
reshape(vpMatrix &, const unsigned int &, const unsigned int &)

Definition at line 1124 of file vpColVector.cpp.

References vpColVector::reshape().

void vpColVector::resize ( const unsigned int  i,
const bool  flagNullify = true 
)
inlineinherited

Modify the size of the column vector.

Parameters
i: Size of the vector. This value corresponds to the vector number of rows.
flagNullify: If true, set the data to zero.
Exceptions
vpException::fatalErrorWhen ncols is not equal to 1.
Examples:
servoAfma4Point2DCamVelocityKalman.cpp, servoViper850Point2DCamVelocityKalman.cpp, testColVector.cpp, testSvd.cpp, and testThread2.cpp.

Definition at line 225 of file vpColVector.h.

References vpArray2D< Type >::resize().

Referenced by vpMatrix::add2Matrices(), vpPoint::changeFrame(), vpLine::changeFrame(), vpRobotAfma6::checkJointLimits(), vpServo::computeError(), vpMbTracker::computeJTR(), vpMbKltMultiTracker::computeVVS(), vpMbEdgeMultiTracker::computeVVS(), vpMbEdgeKltTracker::computeVVS(), vpMbEdgeKltMultiTracker::computeVVS(), vpMbKltTracker::computeVVS(), vpMbEdgeTracker::computeVVS(), vpMbEdgeMultiTracker::computeVVSSecondPhaseWeights(), vpMbEdgeTracker::computeVVSSecondPhaseWeights(), vpMbKltMultiTracker::computeVVSWeights(), vpMbKltTracker::computeVVSWeights(), vpFeatureMoment::duplicate(), vpFeatureLuminance::error(), vpThetaUVector::extract(), vpRobotPtu46::getDisplacement(), vpRobotBiclops::getDisplacement(), vpSimulatorAfma6::getDisplacement(), vpRobotAfma4::getDisplacement(), vpSimulatorViper850::getDisplacement(), vpRobotAfma6::getDisplacement(), vpRobotViper650::getDisplacement(), vpRobotViper850::getDisplacement(), vpRobotViper650::getForceTorque(), vpRobotViper850::getForceTorque(), vpAfma6::getInverseKinematics(), vpViper::getInverseKinematicsWrist(), vpPlane::getNormal(), vpRobotPtu46::getPosition(), vpSimulatorCamera::getPosition(), vpRobotCamera::getPosition(), vpSimulatorPioneer::getPosition(), vpSimulatorPioneerPan::getPosition(), vpRobotBiclops::getPosition(), vpSimulatorAfma6::getPosition(), vpSimulatorViper850::getPosition(), vpRobotAfma4::getPosition(), vpRobotAfma6::getPosition(), vpRobotViper650::getPosition(), vpRobotViper850::getPosition(), vpRobotPioneer::getVelocity(), vpRobotPtu46::getVelocity(), vpRobotBiclops::getVelocity(), vpSimulatorAfma6::getVelocity(), vpSimulatorViper850::getVelocity(), vpRobotAfma4::getVelocity(), vpRobotAfma6::getVelocity(), vpRobotViper650::getVelocity(), vpRobotViper850::getVelocity(), vpPoint::getWorldCoordinates(), vpCircle::init(), vpSphere::init(), vpMeTracker::init(), vpLine::init(), vpPoint::init(), vpFeatureVanishingPoint::init(), vpFeatureEllipse::init(), vpFeatureLuminance::init(), vpKalmanFilter::init(), vpRobotBiclops::init(), vpFeatureSegment::init(), vpTemplateTrackerTriangle::init(), vpColVector::init(), vpCylinder::init(), vpFeatureMoment::init(), vpFeatureDepth::init(), vpImageSimulator::init(), vpFeaturePoint::init(), vpFeatureLine::init(), vpFeaturePoint3D::init(), vpRobotAfma4::init(), vpSimulatorAfma6::init(), vpFeaturePointPolar::init(), vpFeatureThetaU::init(), vpRobotAfma6::init(), vpSimulatorViper850::init(), vpFeatureTranslation::init(), vpRobotViper650::init(), vpRobotViper850::init(), vpTemplateTrackerMIESM::initCompInverse(), vpTemplateTrackerZNCCInverseCompositional::initHessienDesired(), vpMbtDistanceCircle::initInteractionMatrixError(), vpMbtDistanceLine::initInteractionMatrixError(), vpMbtDistanceCylinder::initInteractionMatrixError(), vpMatrix::multMatrixVector(), vpColVector::operator-(), operator=(), vpColVector::operator=(), vpPose::poseDementhonNonPlan(), vpPose::poseVirtualVSrobust(), vpPoint::projection(), vpLine::projection(), vpMatrix::pseudoInverse(), vpSimulatorAfma6::readPosFile(), vpSimulatorViper850::readPosFile(), vpRobotAfma4::readPosFile(), vpRobotAfma6::readPosFile(), vpRobotViper650::readPosFile(), vpRobotViper850::readPosFile(), vpRobotPtu46::readPositionFile(), vpRobotBiclops::readPositionFile(), vpRobust::resize(), vpColVector::stack(), vpMatrix::stackColumns(), vpMatrix::sub2Matrices(), vpMatrix::svd(), vpMbEdgeKltTracker::trackFirstLoop(), vpMbEdgeKltMultiTracker::trackFirstLoop(), vpFeatureMoment::update(), vpGenericFeature::vpGenericFeature(), vpImageSimulator::vpImageSimulator(), vpRobotWireFrameSimulator::vpRobotWireFrameSimulator(), vpRobust::vpRobust(), vpSickLDMRS::vpSickLDMRS(), vpTemplateTracker::vpTemplateTracker(), vpTemplateTrackerMI::vpTemplateTrackerMI(), vpTemplateTrackerSSD::vpTemplateTrackerSSD(), vpTemplateTrackerSSDESM::vpTemplateTrackerSSDESM(), vpTemplateTrackerZNCC::vpTemplateTrackerZNCC(), and vpViper::vpViper().

void vpColVector::resize ( const unsigned int  nrows,
const unsigned int  ncols,
const bool  flagNullify 
)
inlineinherited

Resize the column vector to a nrows-dimension vector. This function can only be used with ncols = 1.

Parameters
nrows: Vector number of rows. This value corresponds to the size of the vector.
ncols: Vector number of columns. This value should be set to 1.
flagNullify: If true, set the data to zero.
Exceptions
vpException::fatalErrorWhen ncols is not equal to 1.

Definition at line 239 of file vpColVector.h.

References vpException::fatalError, and vpArray2D< Type >::resize().

vp_deprecated vpColVector vpColVector::rows ( unsigned int  first_row,
unsigned int  last_row 
) const
inlineinherited
Deprecated:
You should rather use extract().

Definition at line 299 of file vpColVector.h.

static bool vpArray2D< double >::save ( const std::string &  filename,
const vpArray2D< double > &  A,
const bool  binary = false,
const char *  header = "" 
)
inlinestaticinherited

Save a matrix to a file.

Parameters
filename: Absolute file name.
A: Array to be saved.
binary: If true the matrix is saved in a binary file, else a text file.
header: Optional line that will be saved at the beginning of the file.
Returns
Returns true if success.

Warning : If you save the matrix as in a text file the precision is less than if you save it in a binary file.

See Also
load()

Definition at line 499 of file vpArray2D.h.

References vpArray2D< Type >::getCols(), and vpArray2D< Type >::getRows().

static bool vpArray2D< double >::saveYAML ( const std::string &  filename,
const vpArray2D< double > &  A,
const char *  header = "" 
)
inlinestaticinherited

Save an array in a YAML-formatted file.

Parameters
filename: absolute file name.
A: array to be saved in the file.
header: optional lines that will be saved at the beginning of the file. Should be YAML-formatted and will adapt to the indentation if any.
Returns
Returns true if success.

Here is an example of outputs.

vpArray2D::saveYAML("matrix.yml", M, "example: a YAML-formatted header");
vpArray2D::saveYAML("matrixIndent.yml", M, "example:\n - a YAML-formatted header\n - with inner indentation");

Content of matrix.yml:

example: a YAML-formatted header
rows: 3
cols: 4
- [0, 0, 0, 0]
- [0, 0, 0, 0]
- [0, 0, 0, 0]

Content of matrixIndent.yml:

example:
- a YAML-formatted header
- with inner indentation
rows: 3
cols: 4
- [0, 0, 0, 0]
- [0, 0, 0, 0]
- [0, 0, 0, 0]
See Also
loadYAML()

Definition at line 588 of file vpArray2D.h.

References vpArray2D< Type >::getCols(), and vpArray2D< Type >::getRows().

vp_deprecated void vpColVector::setIdentity ( const double &  val = 1.0)
inherited
Deprecated:
You should rather use eye()
vpMatrix vpColVector::skew ( const vpColVector v)
staticinherited

Compute the skew symmetric matrix $[{\bf v}]_\times$ of vector v.

\[ \mbox{if} \quad {\bf V} = \left( \begin{array}{c} x \\ y \\ z \end{array}\right), \quad \mbox{then} \qquad [{\bf v}]_\times = \left( \begin{array}{ccc} 0 & -z & y \\ z & 0 & -x \\ -y & x & 0 \end{array}\right) \]

Parameters
v: Input vector used to compute the skew symmetric matrix.
Examples:
servoSimu3D_cMcd_CamVelocityWithoutVpServo.cpp, and testVirtuoseHapticBox.cpp.

Definition at line 1078 of file vpColVector.cpp.

References vpException::dimensionError, vpArray2D< Type >::getRows(), and vpArray2D< Type >::resize().

Referenced by vpCalibration::calibrationTsai(), vpColVector::crossProd(), and vpFeatureThetaU::interaction().

vpColVector vpColVector::sort ( const vpColVector v)
staticinherited

Return a column vector with elements of v that are sorted.

See Also
invSort()
Examples:
testSvd.cpp.

Definition at line 813 of file vpColVector.cpp.

References vpArray2D< Type >::data, vpException::fatalError, and vpArray2D< Type >::getRows().

void vpColVector::stack ( const vpColVector v)
inherited

Stack column vectors.

Parameters
v: Vector to stack to the existing one.
vpColVector v1(3, 1);
// v1 is equal to [1 1 1]^T
vpColVector v2(2, 3);
// v2 is equal to [3 3]^T
v1.stack(v2);
// v1 is equal to [1 1 1 3 3]^T
See Also
stack(const vpColVector &, const double &)
stack(const vpColVector &, const vpColVector &)
stack(const vpColVector &, const vpColVector &, vpColVector &)

Definition at line 883 of file vpColVector.cpp.

References vpColVector::stack().

vpColVector vpColVector::stack ( const vpColVector A,
const vpColVector B 
)
staticinherited

Stack column vectors.

Parameters
A: Initial vector.
B: Vector to stack at the end of A.
Returns
Stacked vector $[A B]^T$.
C = vpColVector::stack(A, B); // C = [A B]T
// C is now an 8 dimension column vector
See Also
stack(const vpColVector &)
stack(const vpColVector &, const vpColVector &, vpColVector &)

Definition at line 906 of file vpColVector.cpp.

References vpColVector::stack().

void vpColVector::stack ( const vpColVector A,
const vpColVector B,
vpColVector C 
)
staticinherited

Stack column vectors.

Parameters
A: Initial vector.
B: Vector to stack at the end of A.
C: Resulting stacked vector $C = [A B]^T$.
vpColVector::stack(A, B, C); // C = [A B]T
// C is now an 8 dimension column vector
See Also
stack(const vpColVector &)
stack(const vpColVector &, const vpColVector &)

Definition at line 931 of file vpColVector.cpp.

References vpArray2D< Type >::getRows(), and vpColVector::resize().

vp_deprecated void vpColVector::stackMatrices ( const vpColVector r)
inlineinherited
Deprecated:
You should rather use stack(const vpColVector &)

Definition at line 310 of file vpColVector.h.

References vpMatrix::stack().

static vp_deprecated vpColVector vpColVector::stackMatrices ( const vpColVector A,
const vpColVector B 
)
inlinestaticinherited
Deprecated:
You should rather use stack(const vpColVector &A, const vpColVector &B)

Definition at line 314 of file vpColVector.h.

References vpMatrix::stack().

static vp_deprecated void vpColVector::stackMatrices ( const vpColVector A,
const vpColVector B,
vpColVector C 
)
inlinestaticinherited
double vpColVector::stdev ( const vpColVector v,
const bool  useBesselCorrection = false 
)
staticinherited

Compute the standard deviation value of all the elements of the vector.

Examples:
testColVector.cpp.

Definition at line 1005 of file vpColVector.cpp.

References vpArray2D< Type >::data, vpException::fatalError, vpArray2D< Type >::getRows(), vpColVector::mean(), and vpArray2D< Type >::size().

double vpColVector::sum ( ) const
inherited

Return the sum of all the elements $v_{i}$ of the column vector v(m).

Returns
The value

\[\sum{i=0}^{m} v_i\]

.
Examples:
testColVector.cpp, and testThread2.cpp.

Definition at line 1352 of file vpColVector.cpp.

References vpArray2D< double >::data, and vpArray2D< double >::rowNum.

Referenced by vpColVector::mean().

vpRowVector vpColVector::t ( ) const
inherited

Transpose the column vector. The resulting vector becomes a row vector.

Examples:
movePtu46.cpp, servoAfma6Ellipse2DCamVelocity.cpp, servoBiclopsPoint2DArtVelocity.cpp, servoPtu46Point2DArtVelocity.cpp, servoSimu3D_cdMc_CamVelocity.cpp, servoSimu3D_cMcd_CamVelocity.cpp, servoSimu3D_cMcd_CamVelocityWithoutVpServo.cpp, servoSimuFourPoints2DPolarCamVelocityDisplay.cpp, servoSimuSphere2DCamVelocitySecondaryTask.cpp, testColVector.cpp, testComedi.cpp, testDisplacement.cpp, testForceTorqueAti.cpp, testKalmanAcceleration.cpp, testRobotViper650-frames.cpp, testRobotViper850-frames.cpp, testRobotViper850.cpp, testVirtuose.cpp, testVirtuoseAfma6.cpp, testVirtuosePeriodicFunction.cpp, tutorial-homography-from-points.cpp, and tutorial-pioneer-robot.cpp.

Definition at line 669 of file vpColVector.cpp.

References vpArray2D< Type >::data, vpArray2D< double >::data, and vpArray2D< double >::rowNum.

Referenced by vpPose::calculArbreDementhon(), vpServo::computeProjectionOperators(), vpRobotBiclops::getPosition(), vpRobotBiclops::getVelocity(), vpTemplateTrackerZNCCInverseCompositional::initHessienDesired(), vpSimulatorAfma6::initialiseCameraRelativeToObject(), vpSimulatorViper850::initialiseCameraRelativeToObject(), vpPose::poseDementhonPlan(), vpForwardProjection::print(), vpServo::print(), vpPose::printPoint(), vpServoData::save(), vpRobotBiclops::setVelocity(), vpRobotViper650::setVelocity(), vpRobotViper850::setVelocity(), vpTemplateTrackerSSDForwardAdditional::trackNoPyr(), vpTemplateTrackerMIForwardAdditional::trackNoPyr(), vpTemplateTrackerMIInverseCompositional::trackNoPyr(), and vpColVector::transpose().

vpRowVector vpColVector::transpose ( ) const
inherited

Transpose the column vector. The resulting vector becomes a row vector.

See Also
t()

Definition at line 680 of file vpColVector.cpp.

References vpColVector::t().

void vpColVector::transpose ( vpRowVector v) const
inherited

Transpose the column vector. The resulting vector v becomes a row vector.

See Also
t()

Definition at line 689 of file vpColVector.cpp.

References vpColVector::t().

Friends And Related Function Documentation

vpColVector operator* ( const double &  x,
const vpColVector v 
)
related

Allows to multiply a scalar by a column vector.

Definition at line 699 of file vpColVector.cpp.

enum vpGEMMmethod
related

Enumeration of the operations applied on matrices in vpGEMM() function.

Operations are :

  • VP_GEMM_A_T to use the transpose matrix of A instead of the matrix A
  • VP_GEMM_B_T to use the transpose matrix of B instead of the matrix B
  • VP_GEMM_C_T to use the transpose matrix of C instead of the matrix C

Definition at line 57 of file vpGEMM.h.

Member Data Documentation

double * vpArray2D< double >::data
inherited

Address of the first element of the data array.

Examples:
testDisplacement.cpp, testMatrix.cpp, testPoseVector.cpp, and testTranslationVector.cpp.

Definition at line 84 of file vpArray2D.h.

Referenced by vpMatrix::AtA(), vpHomogeneousMatrix::buildFrom(), vpRzyzVector::buildFrom(), vpRzyxVector::buildFrom(), vpRxyzVector::buildFrom(), vpThetaUVector::buildFrom(), checkParentStatus(), vpSubRowVector::checkParentStatus(), vpSubMatrix::checkParentStatus(), vpColVector::clear(), vpHomogeneousMatrix::convert(), vpTranslationVector::euclideanNorm(), vpRowVector::euclideanNorm(), vpMatrix::euclideanNorm(), vpMatrix::expm(), vpThetaUVector::extract(), vpThetaUVector::getTheta(), vpThetaUVector::getU(), init(), vpSubRowVector::init(), vpSubMatrix::init(), vpTranslationVector::operator*(), vpRowVector::operator*(), vpColVector::operator*(), vpHomography::operator*(), vpTranslationVector::operator-(), vpRowVector::operator-(), vpColVector::operator-(), vpTranslationVector::operator/(), vpRowVector::operator/(), vpColVector::operator/(), vpHomography::operator/(), vpHomography::operator/=(), operator=(), vpSubRowVector::operator=(), vpQuaternionVector::operator=(), vpTranslationVector::operator=(), vpRowVector::operator=(), vpRzyzVector::operator=(), vpRzyxVector::operator=(), vpRxyzVector::operator=(), vpColVector::operator=(), vpMatrix::operator=(), vpThetaUVector::operator=(), vpColVector::operator[](), vpRowVector::reshape(), vpColVector::reshape(), vpQuaternionVector::set(), vpMatrix::stackRows(), vpColVector::sum(), vpColVector::sumSquare(), vpRotationVector::t(), vpTranslationVector::t(), vpPoseVector::t(), vpRowVector::t(), vpColVector::t(), vpQuaternionVector::vpQuaternionVector(), vpRxyzVector::vpRxyzVector(), vpRzyxVector::vpRzyxVector(), vpRzyzVector::vpRzyzVector(), vpThetaUVector::vpThetaUVector(), vpQuaternionVector::w(), vpQuaternionVector::x(), vpQuaternionVector::y(), vpQuaternionVector::z(), ~vpSubColVector(), vpSubMatrix::~vpSubMatrix(), and vpSubRowVector::~vpSubRowVector().

vpColVector* vpSubColVector::parent
protected

Parent vpColvector.

Definition at line 73 of file vpSubColVector.h.

Referenced by checkParentStatus(), and init().

unsigned int vpSubColVector::pRowNum
protected

Number of row of parent vpColvector at initialization.

Definition at line 71 of file vpSubColVector.h.

Referenced by checkParentStatus(), and init().

unsigned int vpArray2D< double >::rowNum
protectedinherited

Number of rows in the array.

Definition at line 74 of file vpArray2D.h.

Referenced by vpMatrix::AAt(), vpMatrix::AtA(), vpColVector::clear(), vpMatrix::diag(), vpMatrix::eigenValues(), vpMatrix::expm(), vpColVector::extract(), vpMatrix::eye(), vpColVector::infinityNorm(), vpMatrix::infinityNorm(), init(), vpSubRowVector::init(), vpSubMatrix::init(), vpMatrix::insert(), vpMatrix::inverseByCholesky(), vpMatrix::inverseByLU(), vpMatrix::inverseByQR(), vpRotationMatrix::operator*(), vpTranslationVector::operator*(), vpHomogeneousMatrix::operator*(), vpColVector::operator*(), vpMatrix::operator*(), vpRotationMatrix::operator*=(), vpTranslationVector::operator*=(), vpColVector::operator*=(), vpMatrix::operator*=(), vpColVector::operator+(), vpColVector::operator+=(), vpMatrix::operator+=(), vpColVector::operator-(), vpColVector::operator-=(), vpMatrix::operator-=(), vpColVector::operator/(), vpMatrix::operator/(), vpTranslationVector::operator/=(), vpColVector::operator/=(), vpMatrix::operator/=(), vpMatrix::operator<<(), vpColVector::operator<<(), operator=(), vpSubRowVector::operator=(), vpSubMatrix::operator=(), vpTranslationVector::operator=(), vpRowVector::operator=(), vpColVector::operator=(), vpMatrix::operator=(), vpColVector::reshape(), vpMatrix::setIdentity(), vpMatrix::stack(), vpColVector::stack(), vpMatrix::stackColumns(), vpMatrix::stackRows(), vpColVector::sum(), vpMatrix::sum(), vpRotationVector::sumSquare(), vpTranslationVector::sumSquare(), vpColVector::sumSquare(), vpMatrix::sumSquare(), vpTranslationVector::t(), vpPoseVector::t(), vpColVector::t(), vpMatrix::t(), and vpMatrix::transpose().