![]() |
Visual Servoing Platform
version 3.3.0
|
#include <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 () |
std::ostream & | cppPrint (std::ostream &os, const std::string &matrixName="A", bool octet=false) const |
std::ostream & | csvPrint (std::ostream &os) const |
void | deg2rad () |
vp_deprecated double | euclideanNorm () const |
vpColVector | extract (unsigned int r, unsigned int colsize) const |
double | frobeniusNorm () const |
vpColVector | hadamard (const vpColVector &v) 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 |
vpColVector & | normalize () |
vpColVector & | normalize (vpColVector &x) const |
double & | operator[] (unsigned int n) |
const double & | operator[] (unsigned int n) const |
bool | operator== (const vpColVector &v) const |
bool | operator== (const vpArray2D< float > &A) const |
bool | operator!= (const vpColVector &v) const |
double | operator* (const vpColVector &x) const |
vpMatrix | operator* (const vpRowVector &v) const |
vpColVector | operator* (double x) const |
vpColVector & | operator*= (double x) |
vpColVector | operator/ (double x) const |
vpColVector & | operator/= (double x) |
vpColVector | operator+ (const vpColVector &v) const |
vpTranslationVector | operator+ (const vpTranslationVector &t) 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 *) |
vpColVector & | operator<< (double val) |
vpColVector & | operator, (double val) |
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 (unsigned int nrows, unsigned int ncols) |
void | resize (unsigned int i, bool flagNullify=true) |
void | resize (unsigned int nrows, unsigned int ncols, bool flagNullify) |
void | stack (double d) |
void | stack (const vpColVector &v) |
double | sum () const |
double | sumSquare () const |
vpRowVector | t () const |
std::vector< double > | toStdVector () |
vpRowVector | transpose () const |
void | transpose (vpRowVector &v) const |
Inherited functionalities from vpArray2D | |
vpArray2D< double > | hadamard (const vpArray2D< double > &m) const |
bool | operator== (const vpArray2D< double > &A) const |
bool | operator!= (const vpArray2D< double > &A) const |
void | resize (unsigned int nrows, unsigned int ncols, bool flagNullify=true, bool recopy_=true) |
unsigned int | getCols () const |
double | getMaxValue () const |
double | getMinValue () const |
unsigned int | getRows () 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, bool useBesselCorrection=false) |
Inherited I/O from vpArray2D with Static Public Member Functions | |
static bool | load (const std::string &filename, vpArray2D< double > &A, 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, 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 |
void | vpGEMM (const vpArray2D< double > &A, const vpArray2D< double > &B, const double &alpha, const vpArray2D< double > &C, const double &beta, vpArray2D< double > &D, const unsigned int &ops=0) |
Deprecated functions | |
vp_deprecated void | init () |
vp_deprecated void | insert (const vpColVector &v, unsigned int r, 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) |
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 52 of file vpSubColVector.cpp.
|
virtual |
Destructor that set the pointer to the parrent column vector to NULL.
Definition at line 97 of file vpSubColVector.cpp.
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 104 of file vpSubColVector.cpp.
|
inlineinherited |
Removes all elements from the vector (which are destroyed), leaving the container with a size of 0.
Definition at line 174 of file vpColVector.h.
Referenced by vpMbTracker::createCylinderBBox().
|
inherited |
Print to be used as part of a C++ code later.
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:
It produces the following output that could be copy/paste in a C++ code:
Definition at line 1676 of file vpColVector.cpp.
|
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 350 of file vpColVector.h.
|
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 1233 of file vpColVector.cpp.
Referenced by vpMbTracker::addPolygon(), vpMbTracker::addProjectionErrorPolygon(), and vpMbTracker::createCylinderBBox().
|
inherited |
Print/save a column vector in csv format.
The following code
produces log.csv file that contains:
Definition at line 1721 of file vpColVector.cpp.
|
inlineinherited |
Convert a column vector containing angles in degrees into radians.
Definition at line 195 of file vpColVector.h.
|
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 818 of file vpColVector.cpp.
Referenced by vpMbtFaceDepthNormal::computeNormalVisibility().
|
inherited |
Compute and return the Euclidean norm also called Fronebius norm .
Definition at line 1572 of file vpColVector.cpp.
|
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 219 of file vpColVector.h.
|
inherited |
Compute and return the Fronebius norm .
Definition at line 1585 of file vpColVector.cpp.
Referenced by vpServo::computeProjectionOperators(), vpMbTracker::createCylinderBBox(), and vpSimulatorAfma6::setPosition().
|
inlineinherited |
Return the number of columns of the 2D array.
Definition at line 278 of file vpArray2D.h.
|
inherited |
Return the array max value.
Definition at line 912 of file vpArray2D.h.
|
inherited |
Return the array min value.
Definition at line 895 of file vpArray2D.h.
|
inlineinherited |
Return the number of rows of the 2D array.
Definition at line 288 of file vpArray2D.h.
Compute the Hadamard product (element wise matrix multiplication).
m | : Second matrix; |
Definition at line 932 of file vpArray2D.h.
|
inherited |
Compute the Hadamard product (element wise vector multiplication).
v | : Second vector; |
Definition at line 1598 of file vpColVector.cpp.
|
inherited |
Compute and return the infinity norm with
where m is the vector size and
an element of the vector.
Definition at line 1636 of file vpColVector.cpp.
|
inlineinherited |
Definition at line 376 of file vpColVector.h.
|
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 251 of file vpColVector.cpp.
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 64 of file vpSubColVector.cpp.
|
inherited |
|
inherited |
Insert column vector v at the given position r in the current column vector.
v | : The column vector to insert. |
r | : The index of the row to begin to insert data. |
c | : Not used. |
Definition at line 1833 of file vpColVector.cpp.
|
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 1361 of file vpColVector.cpp.
Referenced by vpMbEdgeMultiTracker::computeVVS(), vpMbDepthDenseTracker::computeVVSInteractionMatrixAndResidu(), vpMbDepthNormalTracker::computeVVSInteractionMatrixAndResidu(), vpMbKltMultiTracker::computeVVSInteractionMatrixAndResidu(), vpMbEdgeMultiTracker::computeVVSInteractionMatrixAndResidu(), vpMbEdgeKltMultiTracker::computeVVSInteractionMatrixAndResidu(), vpMbGenericTracker::computeVVSInteractionMatrixAndResidu(), vpMbKltMultiTracker::computeVVSWeights(), vpMbEdgeKltMultiTracker::computeVVSWeights(), vpMbEdgeMultiTracker::computeVVSWeights(), vpMbGenericTracker::computeVVSWeights(), and vpMbEdgeTracker::computeVVSWeights().
|
staticinherited |
Return a column vector with elements of v that are reverse sorted with values going from greatest to lowest.
Example:
Output:
Definition at line 906 of file vpColVector.cpp.
|
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 540 of file vpArray2D.h.
|
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 652 of file vpArray2D.h.
|
inherited |
Print using Maple syntax, to copy/paste in Maple later.
The following code
produces this output:
that could be copy/paste in Maple.
Definition at line 1756 of file vpColVector.cpp.
|
inherited |
Print using Matlab syntax, to copy/paste in Matlab later.
The following code
produces this output:
that could be copy/paste in Matlab:
Definition at line 1804 of file vpColVector.cpp.
|
staticinherited |
Compute the mean value of all the elements of the vector.
Definition at line 1102 of file vpColVector.cpp.
|
staticinherited |
Compute the median value of all the elements of the vector.
Definition at line 1122 of file vpColVector.cpp.
|
inherited |
Normalise the vector:
Definition at line 865 of file vpColVector.cpp.
Referenced by vpMbtFaceDepthNormal::computeNormalVisibility(), vpMbTracker::createCylinderBBox(), and vpMbKltTracker::setPose().
|
inherited |
Not equal to comparison operator of a 2D array.
Definition at line 993 of file vpArray2D.h.
|
inherited |
Definition at line 774 of file vpColVector.cpp.
|
inherited |
Operator that performs the dot product between two column vectors.
vpException::dimensionError | If the vector dimension differ. |
Definition at line 145 of file vpColVector.cpp.
|
inherited |
Multiply a column vector by a row vector.
v | : Row vector. |
Definition at line 169 of file vpColVector.cpp.
|
inherited |
Operator that allows to multiply each element of a column vector by a scalar.
x | : The scalar. |
Definition at line 389 of file vpColVector.cpp.
|
inherited |
Operator that allows to multiply each element of a column vector by a scalar.
x | : The scalar. |
Definition at line 419 of file vpColVector.cpp.
|
inherited |
Operator that allows to add two column vectors.
Definition at line 66 of file vpColVector.cpp.
|
inherited |
Operator that allows to add a column vector to a translation vector.
t | : 3-dimension translation vector to add. |
Definition at line 99 of file vpColVector.cpp.
|
inherited |
Operator that allows to add two column vectors.
Definition at line 114 of file vpColVector.cpp.
|
inherited |
This operator could be used to set column vector elements:
It produces the following printings:
Definition at line 674 of file vpColVector.cpp.
|
inherited |
Operator that allows to negate all the column vector elements.
Definition at line 355 of file vpColVector.cpp.
|
inherited |
operator substraction of two vectors V = A-v
Definition at line 181 of file vpColVector.cpp.
|
inherited |
Operator that allows to substract two column vectors.
Definition at line 126 of file vpColVector.cpp.
|
inherited |
Operator that allows to divide each element of a column vector by a scalar.
x | : The scalar. |
Definition at line 469 of file vpColVector.cpp.
|
inherited |
Operator that allows to divide each element of a column vector by a scalar.
x | : The scalar. |
Definition at line 443 of file vpColVector.cpp.
|
inherited |
Copy operator. Allows operation such as A << v
In column vector A we get:
Definition at line 591 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 621 of file vpColVector.cpp.
|
inherited |
This operator could be used to set column vector elements:
It produces the following printings:
Definition at line 649 of file vpColVector.cpp.
vpSubColVector & vpSubColVector::operator= | ( | const double & | x | ) |
Set all the elements of the sub-column vector to x.
x | : a scalar value. |
Definition at line 176 of file vpSubColVector.cpp.
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 140 of file vpSubColVector.cpp.
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 160 of file vpSubColVector.cpp.
vpSubColVector & vpSubColVector::operator= | ( | const vpPoseVector & | p | ) |
Operator that allows to convert a pose vector into a column vector.
Definition at line 220 of file vpSubColVector.cpp.
vpSubColVector & vpSubColVector::operator= | ( | const vpRotationVector & | rv | ) |
Operator that allows to convert a rotation vector into a column vector.
Definition at line 203 of file vpSubColVector.cpp.
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 121 of file vpSubColVector.cpp.
vpSubColVector & vpSubColVector::operator= | ( | const vpTranslationVector & | tv | ) |
Operator that allows to convert a translation vector into a column vector.
Definition at line 186 of file vpSubColVector.cpp.
Equal to comparison operator of a 2D array.
Definition at line 948 of file vpArray2D.h.
Definition at line 978 of file vpArray2D.h.
|
inherited |
Comparison operator.
Definition at line 761 of file vpColVector.cpp.
References vpArray2D< double >::colNum, vpArray2D< Type >::colNum, vpArray2D< double >::data, vpArray2D< Type >::data, vpMath::equal(), vpArray2D< double >::rowNum, and vpArray2D< Type >::rowNum.
|
inlineinherited |
Operator that allows to set a value of an element : v[i] = x.
Definition at line 246 of file vpColVector.h.
|
inlineinherited |
Operator that allows to get the value of an element : x = v[i].
Definition at line 248 of file vpColVector.h.
|
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 1390 of file vpColVector.cpp.
|
inlineinherited |
Convert a column vector containing angles in radians into degrees.
Definition at line 293 of file vpColVector.h.
|
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 1253 of file vpColVector.cpp.
|
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. |
vpException::dimensionError | If the matrix and the column vector have not the same size. |
The following example shows how to use this method.
If you run the previous example, you get:
Definition at line 1315 of file vpColVector.cpp.
|
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 309 of file vpColVector.h.
Referenced by vpMbtFaceDepthNormal::computeDesiredFeaturesPCL(), vpMbtFaceDepthNormal::computeDesiredFeaturesSVD(), vpMbtFaceDepthNormal::computeInteractionMatrix(), vpMbtFaceDepthNormal::computeNormalVisibility(), vpMbDepthDenseTracker::computeVVSInit(), vpMbDepthNormalTracker::computeVVSInit(), vpMbKltMultiTracker::computeVVSInit(), vpMbEdgeKltMultiTracker::computeVVSInit(), vpMbEdgeMultiTracker::computeVVSInit(), vpMbGenericTracker::computeVVSInit(), vpMbKltTracker::computeVVSInit(), vpMbEdgeTracker::computeVVSInit(), vpMbtFaceDepthNormal::estimateFeatures(), vpMbtFaceDepthNormal::estimatePlaneEquationSVD(), vpSimulatorAfma6::getDisplacement(), vpSimulatorCamera::getPosition(), vpRobotCamera::getPosition(), vpSimulatorPioneer::getPosition(), vpSimulatorPioneerPan::getPosition(), vpSimulatorAfma6::getPosition(), vpSimulatorAfma6::getVelocity(), vpCircle::init(), vpSphere::init(), vpMeTracker::init(), vpFeatureEllipse::init(), vpFeatureLuminance::init(), vpCylinder::init(), vpSimulatorAfma6::init(), vpTemplateTrackerMIESM::initCompInverse(), vpTemplateTrackerZNCCInverseCompositional::initHessienDesired(), vpMbEdgeKltMultiTracker::initMbtTracking(), vpColVector::operator=(), vpSimulatorAfma6::readPosFile(), vpMbEdgeKltTracker::trackFirstLoop(), vpRobotWireFrameSimulator::vpRobotWireFrameSimulator(), vpTemplateTracker::vpTemplateTracker(), vpTemplateTrackerMI::vpTemplateTrackerMI(), vpTemplateTrackerSSD::vpTemplateTrackerSSD(), vpTemplateTrackerSSDESM::vpTemplateTrackerSSDESM(), and vpTemplateTrackerZNCC::vpTemplateTrackerZNCC().
|
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 320 of file vpColVector.h.
|
inlineinherited |
Set the size of the array and initialize all the values to zero.
nrows | : number of rows. |
ncols | : number of column. |
flagNullify | : if true, then the array is re-initialized to 0 after resize. If false, the initial values from the common part of the array (common part between old and new version of the array) are kept. Default value is true. |
recopy_ | : if true, will perform an explicit recopy of the old data if needed and if flagNullify is set to false. |
Definition at line 304 of file vpArray2D.h.
|
inlineinherited |
Definition at line 380 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 737 of file vpArray2D.h.
|
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 830 of file vpArray2D.h.
|
inherited |
|
inlineinherited |
Return the number of elements of the 2D array.
Definition at line 290 of file vpArray2D.h.
|
staticinherited |
Compute the skew symmetric matrix of vector v.
v | : Input vector used to compute the skew symmetric matrix. |
Definition at line 1201 of file vpColVector.cpp.
|
staticinherited |
Return a column vector with elements of v that are sorted with values going from lowest to geatest.
Example:
Output:
Definition at line 958 of file vpColVector.cpp.
|
staticinherited |
Stack column vectors.
A | : Initial vector. |
B | : Vector to stack at the end of A. |
Definition at line 1044 of file vpColVector.cpp.
|
staticinherited |
Stack column vectors.
A | : Initial vector. |
B | : Vector to stack at the end of A. |
C | : Resulting stacked vector ![]() |
Definition at line 1069 of file vpColVector.cpp.
|
inherited |
Stack column vectors.
v | : Vector to stack to the existing one. |
Definition at line 1024 of file vpColVector.cpp.
|
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 999 of file vpColVector.cpp.
Referenced by vpFeatureMomentAlpha::error(), vpMbEdgeKltMultiTracker::initMbtTracking(), and vpMatrix::stackMatrices().
|
inlinestaticinherited |
Definition at line 396 of file vpColVector.h.
|
inlinestaticinherited |
Definition at line 401 of file vpColVector.h.
|
inlineinherited |
Definition at line 391 of file vpColVector.h.
|
staticinherited |
Compute the standard deviation value of all the elements of the vector.
Definition at line 1136 of file vpColVector.cpp.
|
inherited |
Return the sum of all the elements of the column vector v(m).
Definition at line 1479 of file vpColVector.cpp.
|
inherited |
Return the sum square of all the elements of the column vector v(m).
Definition at line 1522 of file vpColVector.cpp.
Referenced by vpMbTracker::computeVVSCheckLevenbergMarquardt(), and vpPose::poseLagrangeNonPlan().
|
inherited |
Transpose the column vector. The resulting vector becomes a row vector.
Definition at line 781 of file vpColVector.cpp.
Referenced by vpMbtFaceDepthDense::computeInteractionMatrixAndResidu(), vpServo::computeProjectionOperators(), vpTemplateTrackerZNCCInverseCompositional::initHessienDesired(), vpSimulatorAfma6::initialiseCameraRelativeToObject(), vpPose::printPoint(), vpTemplateTrackerSSDForwardAdditional::trackNoPyr(), vpTemplateTrackerMIForwardAdditional::trackNoPyr(), and vpTemplateTrackerMIInverseCompositional::trackNoPyr().
|
inherited |
Converts the vpColVector to a std::vector.
Definition at line 695 of file vpColVector.cpp.
|
inherited |
Transpose the column vector. The resulting vector becomes a row vector.
Definition at line 792 of file vpColVector.cpp.
|
inherited |
Transpose the column vector. The resulting vector v becomes a row vector.
Definition at line 798 of file vpColVector.cpp.
|
related |
Allows to multiply a scalar by a column vector.
Definition at line 804 of file vpColVector.cpp.
|
related |
This function performs generalized matrix multiplication: D = alpha*op(A)*op(B) + beta*op(C), where op(X) is X or X^T. Operation on A, B and C matrices is described by enumeration vpGEMMmethod().
For example, to compute D = alpha*A^T*B^T+beta*C we need to call :
If C is not used, vpGEMM must be called using an empty array null. Thus to compute D = alpha*A^T*B, we have to call:
vpException::incorrectMatrixSizeError | if the sizes of the matrices do not allow the operations. |
A | : An array that could be a vpMatrix. |
B | : An array that could be a vpMatrix. |
alpha | : A scalar. |
C | : An array that could be a vpMatrix. |
beta | : A scalar. |
D | : The resulting array that could be a vpMatrix. |
ops | : A scalar describing operation applied on the matrices. Possible values are the one defined in vpGEMMmethod(): VP_GEMM_A_T, VP_GEMM_B_T, VP_GEMM_C_T. |
|
related |
Enumeration of the operations applied on matrices in vpGEMM() function.
Operations are :
|
protectedinherited |
Number of columns in the array.
Definition at line 136 of file vpArray2D.h.
|
inherited |
Address of the first element of the data array.
Definition at line 144 of file vpArray2D.h.
|
protectedinherited |
Current array size (rowNum * colNum)
Definition at line 140 of file vpArray2D.h.
|
protected |
Parent vpColvector.
Definition at line 72 of file vpSubColVector.h.
|
protected |
Number of row of parent vpColvector at initialization.
Definition at line 70 of file vpSubColVector.h.
|
protectedinherited |
Number of rows in the array.
Definition at line 134 of file vpArray2D.h.
|
protectedinherited |
Address of the first element of each rows.
Definition at line 138 of file vpArray2D.h.