Visual Servoing Platform
version 3.0.0
|
#include <visp3/core/vpSubColVector.h>
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) |
vpSubColVector & | operator= (const vpSubColVector &B) |
vpSubColVector & | operator= (const vpPoseVector &p) |
vpSubColVector & | operator= (const vpRotationVector &rv) |
vpSubColVector & | operator= (const vpTranslationVector &tv) |
vpSubColVector & | operator= (const vpColVector &B) |
vpSubColVector & | operator= (const vpMatrix &B) |
vpSubColVector & | operator= (const double &x) |
void | clear () |
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) |
vpColVector & | normalize () |
vpColVector & | normalize (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 |
vpColVector & | operator*= (double x) |
vpColVector | operator/ (const double x) const |
vpColVector & | operator/= (double x) |
vpColVector | operator+ (const vpColVector &v) const |
vpColVector & | operator+= (vpColVector v) |
vpColVector | operator- (const vpColVector &v) const |
vpColVector | operator- () const |
vpColVector & | operator-= (vpColVector v) |
vpColVector & | operator<< (const vpColVector &v) |
vpColVector & | operator<< (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 | 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 |
vpColVector * | parent |
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 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) |
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.
Definition at line 61 of file vpSubColVector.h.
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.
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().
|
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.
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.
|
inlineinherited |
Removes all elements from the vector (which are destroyed), leaving the container with a size of 0.
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().
|
inlinestaticinherited |
Compute and return the cross product of two 3-dimension vectors: .
a | : 3-dimension column vector. |
b | : 3-dimension column vector. |
vpException::dimensionError | If the vectors dimension is not equal to 3. |
Definition at line 257 of file vpColVector.h.
Referenced by vpMbtDistanceLine::buildFrom(), vpPlane::init(), and vpPose::poseDementhonNonPlan().
|
staticinherited |
Compute and return the cross product of two vectors .
a | : 3-dimension column vector. |
b | : 3-dimension column vector. |
vpException::dimensionError | If the vectors dimension is not equal to 3. |
Definition at line 1027 of file vpColVector.cpp.
References vpException::dimensionError, vpArray2D< Type >::getRows(), and vpColVector::skew().
Referenced by vpMbTracker::addPolygon(), vpPose::coplanar(), vpMbTracker::createCylinderBBox(), and vpImageSimulator::setCameraPosition().
|
inlineinherited |
Convert a column vector containing angles in degrees into radians.
Definition at line 124 of file vpColVector.h.
Referenced by vpRobotViper650::getPosition(), vpRobotViper850::getPosition(), vpRobotViper850::getVelocity(), vpRobotViper650::getVelocity(), vpRobotViper650::init(), vpRobotViper850::init(), vpSimulatorViper850::readPosFile(), vpRobotViper850::readPosFile(), vpRobotViper650::readPosFile(), vpRobotViper850::setPosition(), and vpRobotViper650::setPosition().
|
staticinherited |
Compute end return the dot product of two column vectors:
where n is the dimension of both vectors.
vpException::dimensionError | If the vector dimension differ. |
Definition at line 677 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().
|
inherited |
Compute and return the Euclidean norm .
Definition at line 1242 of file vpColVector.cpp.
References vpArray2D< double >::data, and vpArray2D< double >::dsize.
Referenced by vpServo::computeProjectionOperators(), vpMbTracker::createCylinderBBox(), and vpSimulatorAfma6::setPosition().
|
inlineinherited |
Extract a sub-column vector from a column vector.
r | : Index of the row corresponding to the first element of the vector to extract. |
colsize | : Size of the vector to extract. |
vpException::fatalError | If the vector to extract is not contained in the original one. |
Definition at line 146 of file vpColVector.h.
References vpException::fatalError, and vpArray2D< double >::rowNum.
|
inlineinherited |
Return the number of columns of the 2D array.
Definition at line 154 of file vpArray2D.h.
References vpArray2D< Type >::colNum.
Referenced by vpMatrix::csvPrint(), vpRotationMatrix::getCol(), vpHomogeneousMatrix::getCol(), vpMatrix::getCol(), vpMatrix::getRow(), vpMatrix::inverseByQRLapack(), vpMatrix::kernel(), vpMatrix::maplePrint(), vpRowVector::operator*(), vpRowVector::operator+(), vpRowVector::operator+=(), vpRowVector::operator-(), vpRowVector::operator-=(), vpForceTwistMatrix::print(), vpVelocityTwistMatrix::print(), vpRowVector::print(), vpMatrix::print(), vpMatrix::pseudoInverse(), and vpMatrix::svd().
|
inherited |
Return the array max value.
|
inherited |
Return the array min value.
|
inlineinherited |
Return the number of rows of the 2D array.
Definition at line 152 of file vpArray2D.h.
References vpArray2D< Type >::rowNum.
Referenced by vpMatrix::cppPrint(), vpMatrix::csvPrint(), vpRotationMatrix::getCol(), vpHomogeneousMatrix::getCol(), vpMatrix::getCol(), vpMatrix::getRow(), vpMatrix::inverseByCholeskyLapack(), vpMatrix::inverseByQRLapack(), vpMatrix::kernel(), vpMatrix::maplePrint(), vpMatrix::matlabPrint(), vpColVector::operator+(), vpColVector::operator+=(), vpColVector::operator-(), vpColVector::operator-=(), vpForceTwistMatrix::print(), vpVelocityTwistMatrix::print(), vpPoseVector::print(), vpColVector::print(), vpMatrix::print(), and vpMatrix::pseudoInverse().
|
inherited |
Compute and return the infinity norm with where m is the vector size and an element of the vector.
Definition at line 1263 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.
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.
|
inherited |
Initialize the column vector from a part of an input column vector v.
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:
It produces the following output:
Definition at line 219 of file vpColVector.cpp.
References vpException::dimensionError, vpArray2D< Type >::getRows(), vpColVector::resize(), and vpArray2D< double >::rowPtrs.
|
inlineinherited |
Definition at line 286 of file vpColVector.h.
Referenced by vpColVector::vpColVector(), and vpSubColVector().
|
inherited |
Insert a column vector.
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:
It produces the following output:
Definition at line 1107 of file vpColVector.cpp.
References vpException::dimensionError, vpArray2D< double >::size(), and vpArray2D< Type >::size().
|
staticinherited |
Return a column vector with elements of v that are reverse sorted.
Definition at line 743 of file vpColVector.cpp.
References vpArray2D< Type >::data, vpException::fatalError, and vpArray2D< Type >::getRows().
|
inlinestaticinherited |
Load a matrix from a file.
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. |
Definition at line 308 of file vpArray2D.h.
References vpException::badValue, and vpArray2D< Type >::resize().
|
inlinestaticinherited |
Load an array from a YAML-formatted file.
filename | : absolute file name. |
A | : array to be loaded from the file. |
header | : header of the file is loaded in this parameter. |
Definition at line 392 of file vpArray2D.h.
References vpArray2D< Type >::resize().
|
staticinherited |
Compute the mean value of all the elements of the vector.
Definition at line 928 of file vpColVector.cpp.
References vpArray2D< Type >::data, vpException::fatalError, and vpArray2D< Type >::getRows().
Referenced by vpColVector::stdev().
|
staticinherited |
Compute the median value of all the elements of the vector.
Definition at line 946 of file vpColVector.cpp.
References vpArray2D< Type >::data, vpException::fatalError, vpMath::getMedian(), and vpArray2D< Type >::size().
|
inherited |
Normalise the vector:
Definition at line 725 of file vpColVector.cpp.
References vpColVector::sumSquare().
Referenced by vpCameraParameters::computeFov(), vpMbTracker::createCylinderBBox(), vpMbtDistanceKltPoints::init(), vpMbtPolygon::isVisible(), vpPose::poseDementhonNonPlan(), and vpMbKltTracker::setPose().
|
inherited |
Normalise the vector:
Definition at line 710 of file vpColVector.cpp.
References vpColVector::sumSquare().
|
inherited |
Operator that performs the dot product between two column vectors.
vpException::dimensionError | If the vector dimension differ. |
Definition at line 116 of file vpColVector.cpp.
References vpException::dimensionError, vpArray2D< double >::rowNum, vpArray2D< double >::size(), and vpArray2D< Type >::size().
|
inherited |
Multiply a column vector by a row vector.
v | : Row vector. |
Definition at line 139 of file vpColVector.cpp.
References vpArray2D< Type >::getCols(), and vpArray2D< double >::rowNum.
|
inherited |
Operator that allows to multiply each element of a column vector by a scalar.
x | : The scalar. |
Definition at line 350 of file vpColVector.cpp.
References vpArray2D< Type >::data, vpArray2D< double >::data, and vpArray2D< double >::rowNum.
|
inherited |
Operator that allows to multiply each element of a column vector by a scalar.
x | : The scalar. |
Definition at line 378 of file vpColVector.cpp.
References vpArray2D< double >::rowNum.
|
inherited |
Operator that allows to add two column vectors.
Definition at line 64 of file vpColVector.cpp.
References vpException::dimensionError, vpArray2D< Type >::getRows(), vpArray2D< double >::getRows(), and vpArray2D< double >::rowNum.
|
inherited |
Operator that allows to add two column vectors.
Definition at line 80 of file vpColVector.cpp.
References vpException::dimensionError, vpArray2D< Type >::getRows(), vpArray2D< double >::getRows(), and vpArray2D< double >::rowNum.
|
inherited |
operator substraction of two vectors V = A-v
Definition at line 151 of file vpColVector.cpp.
References vpException::dimensionError, vpArray2D< Type >::getRows(), vpArray2D< double >::getRows(), and vpArray2D< double >::rowNum.
|
inherited |
Operator that allows to negate all the column vector elements.
Definition at line 311 of file vpColVector.cpp.
References vpArray2D< Type >::data, vpArray2D< double >::data, vpColVector::resize(), vpArray2D< double >::rowNum, and vpERROR_TRACE.
|
inherited |
Operator that allows to substract two column vectors.
Definition at line 94 of file vpColVector.cpp.
References vpException::dimensionError, vpArray2D< Type >::getRows(), vpArray2D< double >::getRows(), and vpArray2D< double >::rowNum.
|
inherited |
Operator that allows to divide each element of a column vector by a scalar.
x | : The scalar. |
Definition at line 428 of file vpColVector.cpp.
References vpArray2D< Type >::data, vpArray2D< double >::data, and vpArray2D< double >::rowNum.
|
inherited |
Operator that allows to divide each element of a column vector by a scalar.
x | : The scalar. |
Definition at line 402 of file vpColVector.cpp.
References vpArray2D< double >::rowNum.
|
inherited |
Copy operator. Allows operation such as A << v
In column vector A we get:
Definition at line 580 of file vpColVector.cpp.
|
inherited |
Assigment operator. Allow operation such as A = *v
The following example shows how to use this operator.
It produces the following output:
Definition at line 610 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.
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.
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.
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.
x | : a scalar value. |
Definition at line 181 of file vpSubColVector.cpp.
References vpArray2D< double >::data, and vpArray2D< double >::rowNum.
|
inlineinherited |
Operator that allows to set a value of an element : v[i] = x.
Definition at line 165 of file vpColVector.h.
References vpArray2D< double >::data.
|
inlineinherited |
Operator that allows to get the value of an element : x = v[i].
Definition at line 167 of file vpColVector.h.
References vpArray2D< double >::data.
|
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.
s | Stream used for the printing. |
length | The 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. |
intro | The introduction which is printed before the vector. Can be set to zero (or omitted), in which case the introduction is not printed. |
Definition at line 1135 of file vpColVector.cpp.
References vpArray2D< double >::getRows(), and vpMath::maximum().
|
inlineinherited |
Convert a column vector containing angles in radians into degrees.
Definition at line 202 of file vpColVector.h.
Referenced by vpRobotViper850::setPosition(), vpRobotViper650::setPosition(), vpRobotViper850::setVelocity(), and vpRobotViper650::setVelocity().
|
inherited |
Reshape the column vector in a matrix.
M | : the reshaped matrix. |
nrows | : number of rows of the matrix. |
ncols | : number of columns of the matrix. |
Definition at line 1057 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().
|
inherited |
Reshape the column vector in a matrix.
nrows | : number of rows of the matrix |
ncols | : number of columns of the matrix |
Definition at line 1045 of file vpColVector.cpp.
References vpColVector::reshape().
|
inlineinherited |
Modify the size of the column vector.
i | : Size of the vector. This value corresponds to the vector number of rows. |
flagNullify | : If true, set the data to zero. |
vpException::fatalError | When ncols is not equal to 1. |
Definition at line 217 of file vpColVector.h.
References vpArray2D< Type >::resize().
Referenced by vpMatrix::add2Matrices(), vpPoint::changeFrame(), vpLine::changeFrame(), vpRobotAfma6::checkJointLimits(), vpServo::computeError(), vpMbTracker::computeJTR(), vpMbEdgeKltTracker::computeVVS(), vpMbKltTracker::computeVVS(), vpMbEdgeTracker::computeVVS(), vpFeatureMoment::duplicate(), vpFeatureLuminance::error(), vpThetaUVector::extract(), vpRobotPtu46::getDisplacement(), vpRobotBiclops::getDisplacement(), vpSimulatorAfma6::getDisplacement(), vpRobotAfma4::getDisplacement(), vpSimulatorViper850::getDisplacement(), vpRobotAfma6::getDisplacement(), vpRobotViper850::getDisplacement(), vpRobotViper650::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(), vpRobotViper850::getVelocity(), vpRobotViper650::getVelocity(), vpPoint::getWorldCoordinates(), vpCircle::init(), vpSphere::init(), vpFeatureEllipse::init(), vpFeatureVanishingPoint::init(), vpMeTracker::init(), vpFeatureLuminance::init(), vpPoint::init(), vpLine::init(), vpKalmanFilter::init(), vpRobotBiclops::init(), vpFeatureSegment::init(), vpColVector::init(), vpTemplateTrackerTriangle::init(), vpFeatureDepth::init(), vpCylinder::init(), vpFeaturePoint::init(), vpFeatureMoment::init(), vpFeatureLine::init(), vpImageSimulator::init(), vpFeaturePoint3D::init(), vpFeatureThetaU::init(), vpRobotAfma4::init(), vpSimulatorAfma6::init(), vpFeaturePointPolar::init(), vpSimulatorViper850::init(), vpFeatureTranslation::init(), vpRobotAfma6::init(), vpRobotViper850::init(), vpRobotViper650::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(), vpRobotViper850::readPosFile(), vpRobotViper650::readPosFile(), vpRobotPtu46::readPositionFile(), vpRobotBiclops::readPositionFile(), vpRobust::resize(), vpColVector::stack(), vpMatrix::stackColumns(), vpMatrix::sub2Matrices(), vpMatrix::svd(), vpMbEdgeKltTracker::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().
|
inlineinherited |
Resize the column vector to a nrows-dimension vector. This function can only be used with ncols = 1.
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. |
vpException::fatalError | When ncols is not equal to 1. |
Definition at line 231 of file vpColVector.h.
References vpException::fatalError, and vpArray2D< Type >::resize().
|
inlineinherited |
Definition at line 290 of file vpColVector.h.
|
inlinestaticinherited |
Save a matrix to a file.
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. |
Warning : If you save the matrix as in a text file the precision is less than if you save it in a binary file.
Definition at line 468 of file vpArray2D.h.
References vpArray2D< Type >::getCols(), and vpArray2D< Type >::getRows().
|
inlinestaticinherited |
Save an array in a YAML-formatted file.
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. |
Here is an example of outputs.
Content of matrix.yml:
Content of matrixIndent.yml:
Definition at line 560 of file vpArray2D.h.
References vpArray2D< Type >::getCols(), and vpArray2D< Type >::getRows().
|
inherited |
|
inlineinherited |
Return the number of elements of the 2D array.
Definition at line 156 of file vpArray2D.h.
References vpArray2D< Type >::rowNum.
Referenced by vpRowVector::insert(), vpColVector::insert(), and vpColVector::operator*().
|
staticinherited |
Compute the skew symmetric matrix of vector v.
v | : Input vector used to compute the skew symmetric matrix. |
Definition at line 1001 of file vpColVector.cpp.
References vpException::dimensionError, vpArray2D< Type >::getRows(), and vpArray2D< Type >::resize().
Referenced by vpCalibration::calibrationTsai(), vpColVector::crossProd(), and vpFeatureThetaU::interaction().
|
staticinherited |
Return a column vector with elements of v that are sorted.
Definition at line 777 of file vpColVector.cpp.
References vpArray2D< Type >::data, vpException::fatalError, and vpArray2D< Type >::getRows().
|
inherited |
Stack column vector with a new element at the end of the vector.
d | : Element to stack to the existing vector. |
Definition at line 822 of file vpColVector.cpp.
References vpColVector::resize(), and vpArray2D< double >::rowNum.
Referenced by vpCalibration::calibrationTsai(), vpMbEdgeKltTracker::computeVVS(), vpFeatureSegment::error(), vpFeatureEllipse::error(), vpFeatureVanishingPoint::error(), vpFeatureMomentAlpha::error(), vpGenericFeature::error(), vpFeaturePoint::error(), vpFeatureLine::error(), vpFeaturePoint3D::error(), vpFeatureThetaU::error(), vpFeaturePointPolar::error(), vpFeatureTranslation::error(), vpBasicFeature::get_s(), vpColVector::stack(), and vpMatrix::stackMatrices().
|
inherited |
Stack column vectors.
v | : Vector to stack to the existing one. |
Definition at line 847 of file vpColVector.cpp.
References vpColVector::stack().
|
staticinherited |
Stack column vectors.
A | : Initial vector. |
B | : Vector to stack at the end of A. |
Definition at line 870 of file vpColVector.cpp.
References vpColVector::stack().
|
staticinherited |
Stack column vectors.
A | : Initial vector. |
B | : Vector to stack at the end of A. |
C | : Resulting stacked vector . |
Definition at line 895 of file vpColVector.cpp.
References vpArray2D< Type >::getRows(), and vpColVector::resize().
|
inlineinherited |
Definition at line 301 of file vpColVector.h.
References vpMatrix::stack().
|
inlinestaticinherited |
Definition at line 305 of file vpColVector.h.
References vpMatrix::stack().
|
inlinestaticinherited |
Definition at line 309 of file vpColVector.h.
References vpMatrix::stack().
|
staticinherited |
Compute the standard deviation value of all the elements of the vector.
Definition at line 965 of file vpColVector.cpp.
References vpArray2D< Type >::data, vpException::fatalError, vpColVector::mean(), and vpArray2D< Type >::size().
|
inherited |
Return the sum square of all the elements of the column vector v(m).
.
Definition at line 1223 of file vpColVector.cpp.
References vpArray2D< double >::rowNum, and vpArray2D< double >::rowPtrs.
Referenced by vpPose::calculArbreDementhon(), vpCalibration::calibrationTsai(), vpMbEdgeKltTracker::computeVVS(), vpMbKltTracker::computeVVS(), vpMbEdgeTracker::computeVVS(), vpPose::coplanar(), vpFeatureDepth::error(), vpFeatureThetaU::error(), vpFeatureTranslation::error(), vpMbTracker::extractCylinders(), vpFeatureThetaU::interaction(), vpMatrix::kernel(), vpColVector::normalize(), vpPose::poseDementhonNonPlan(), vpPose::poseDementhonPlan(), vpPose::poseFromRectangle(), vpPose::poseLagrangeNonPlan(), vpPose::poseLagrangePlan(), vpPose::poseVirtualVS(), vpPose::poseVirtualVSrobust(), vpServoData::save(), vpSimulatorAfma6::setPosition(), and vpSimulatorViper850::setPosition().
|
inherited |
Transpose the column vector. The resulting vector becomes a row vector.
Definition at line 633 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(), vpRobotViper850::setVelocity(), vpRobotViper650::setVelocity(), vpTemplateTrackerSSDForwardAdditional::trackNoPyr(), vpTemplateTrackerMIForwardAdditional::trackNoPyr(), vpTemplateTrackerMIInverseCompositional::trackNoPyr(), and vpColVector::transpose().
|
inherited |
Transpose the column vector. The resulting vector becomes a row vector.
Definition at line 644 of file vpColVector.cpp.
References vpColVector::t().
|
inherited |
Transpose the column vector. The resulting vector v becomes a row vector.
Definition at line 653 of file vpColVector.cpp.
References vpColVector::t().
|
related |
Allows to multiply a scalar by a column vector.
Definition at line 663 of file vpColVector.cpp.
|
related |
Enumeration of the operations applied on matrices in vpGEMM() function.
Operations are :
|
protectedinherited |
Number of columns in the array.
Definition at line 76 of file vpArray2D.h.
Referenced by vpMatrix::AAt(), vpMatrix::AtA(), vpColVector::clear(), vpMatrix::diag(), vpMatrix::eigenValues(), vpMatrix::expm(), vpMatrix::eye(), vpMatrix::infinityNorm(), init(), vpSubRowVector::init(), vpSubMatrix::init(), vpRowVector::insert(), vpMatrix::insert(), vpMatrix::inverseByCholesky(), vpMatrix::inverseByLU(), vpMatrix::inverseByQR(), vpRotationMatrix::operator*(), vpRowVector::operator*(), vpMatrix::operator*(), vpRotationMatrix::operator*=(), vpRowVector::operator*=(), vpMatrix::operator*=(), vpRowVector::operator+(), vpRowVector::operator+=(), vpMatrix::operator+=(), vpRowVector::operator-(), vpRowVector::operator-=(), vpMatrix::operator-=(), vpRowVector::operator/(), vpMatrix::operator/(), vpRowVector::operator/=(), vpMatrix::operator/=(), vpMatrix::operator<<(), vpColVector::operator<<(), vpSubRowVector::operator=(), vpSubMatrix::operator=(), vpRowVector::operator=(), vpMatrix::operator=(), vpRowVector::reshape(), vpMatrix::setIdentity(), vpMatrix::solveBySVD(), vpRowVector::stack(), vpMatrix::stackColumns(), vpMatrix::stackRows(), vpMatrix::sum(), vpRowVector::sumSquare(), vpMatrix::sumSquare(), vpRowVector::t(), vpMatrix::t(), and vpMatrix::transpose().
|
inherited |
Address of the first element of the data array.
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(), vpColVector::euclideanNorm(), vpMatrix::euclideanNorm(), vpMatrix::expm(), vpThetaUVector::extract(), 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=(), vpTranslationVector::operator=(), vpRowVector::operator=(), vpColVector::operator=(), vpRzyxVector::operator=(), vpRzyzVector::operator=(), vpRxyzVector::operator=(), vpMatrix::operator=(), vpThetaUVector::operator=(), vpColVector::operator[](), vpRowVector::reshape(), vpColVector::reshape(), vpQuaternionVector::set(), vpMatrix::stackRows(), vpRotationVector::t(), vpTranslationVector::t(), vpPoseVector::t(), vpRowVector::t(), vpColVector::t(), vpQuaternionVector::w(), vpQuaternionVector::x(), vpQuaternionVector::y(), vpQuaternionVector::z(), ~vpSubColVector(), vpSubMatrix::~vpSubMatrix(), and vpSubRowVector::~vpSubRowVector().
|
protectedinherited |
Current array size (rowNum * colNum)
Definition at line 80 of file vpArray2D.h.
Referenced by vpColVector::clear(), vpTranslationVector::euclideanNorm(), vpRowVector::euclideanNorm(), vpColVector::euclideanNorm(), vpMatrix::euclideanNorm(), init(), vpSubRowVector::init(), vpSubMatrix::init(), vpTranslationVector::operator*(), vpRotationVector::operator*(), vpTranslationVector::operator-(), vpTranslationVector::operator/(), vpRzyzVector::operator=(), vpRzyxVector::operator=(), vpRxyzVector::operator=(), vpMatrix::operator=(), vpThetaUVector::operator=(), vpRowVector::reshape(), vpColVector::reshape(), vpMatrix::stackRows(), and vpRotationVector::t().
|
protected |
Parent vpColvector.
Definition at line 73 of file vpSubColVector.h.
Referenced by checkParentStatus(), and init().
|
protected |
Number of row of parent vpColvector at initialization.
Definition at line 71 of file vpSubColVector.h.
Referenced by checkParentStatus(), and init().
|
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(), vpMatrix::sum(), vpRotationVector::sumSquare(), vpTranslationVector::sumSquare(), vpColVector::sumSquare(), vpMatrix::sumSquare(), vpTranslationVector::t(), vpPoseVector::t(), vpColVector::t(), vpMatrix::t(), and vpMatrix::transpose().
|
protectedinherited |
Address of the first element of each rows.
Definition at line 78 of file vpArray2D.h.
Referenced by vpMatrix::AAt(), vpColVector::clear(), vpMatrix::infinityNorm(), init(), vpSubRowVector::init(), vpSubMatrix::init(), vpRowVector::init(), vpColVector::init(), vpMatrix::init(), vpRotationMatrix::operator*(), vpForceTwistMatrix::operator*(), vpVelocityTwistMatrix::operator*(), vpHomogeneousMatrix::operator*(), vpMatrix::operator*(), vpRotationMatrix::operator*=(), vpMatrix::operator*=(), vpMatrix::operator+=(), vpMatrix::operator-=(), vpMatrix::operator/(), vpMatrix::operator/=(), vpMatrix::operator<<(), vpColVector::operator<<(), vpSubMatrix::operator=(), vpRotationMatrix::operator=(), vpForceTwistMatrix::operator=(), vpVelocityTwistMatrix::operator=(), vpHomogeneousMatrix::operator=(), vpRowVector::operator=(), vpMatrix::operator=(), vpMatrix::stackColumns(), vpMatrix::sum(), vpRotationVector::sumSquare(), vpTranslationVector::sumSquare(), vpRowVector::sumSquare(), vpColVector::sumSquare(), vpMatrix::sumSquare(), and vpMatrix::transpose().