Visual Servoing Platform
version 3.4.0
|
#include <vpSubMatrix.h>
Public Types | |
enum | vpDetMethod { LU_DECOMPOSITION } |
Public Member Functions | |
vpSubMatrix () | |
vpSubMatrix (vpMatrix &m, const unsigned int &row, const unsigned int &col, const unsigned int &nrows, const unsigned int &ncols) | |
virtual | ~vpSubMatrix () |
void | init (vpMatrix &m, const unsigned int &row, const unsigned int &col, const unsigned int &nrows, const unsigned int &ncols) |
void | checkParentStatus () const |
vpSubMatrix & | operator= (const vpSubMatrix &B) |
vpSubMatrix & | operator= (const vpMatrix &B) |
vpSubMatrix & | operator= (const double &x) |
void | clear () |
Setting a diagonal matrix | |
void | diag (const double &val=1.0) |
void | diag (const vpColVector &A) |
void | eye () |
Assignment operators | |
vpMatrix & | operator<< (double *) |
vpMatrix & | operator<< (double val) |
vpMatrix & | operator, (double val) |
Stacking | |
void | stack (const vpMatrix &A) |
void | stack (const vpRowVector &r) |
void | stack (const vpColVector &c) |
void | stackColumns (vpColVector &out) |
vpColVector | stackColumns () |
void | stackRows (vpRowVector &out) |
vpRowVector | stackRows () |
Matrix insertion | |
void | insert (const vpMatrix &A, unsigned int r, unsigned int c) |
Columns, rows, sub-matrices extraction | |
vpMatrix | extract (unsigned int r, unsigned int c, unsigned int nrows, unsigned int ncols) const |
vpColVector | getCol (unsigned int j) const |
vpColVector | getCol (unsigned int j, unsigned int i_begin, unsigned int size) const |
vpRowVector | getRow (unsigned int i) const |
vpRowVector | getRow (unsigned int i, unsigned int j_begin, unsigned int size) const |
vpColVector | getDiag () const |
void | init (const vpMatrix &M, unsigned int r, unsigned int c, unsigned int nrows, unsigned int ncols) |
Matrix operations | |
double | det (vpDetMethod method=LU_DECOMPOSITION) const |
double | detByLU () const |
double | detByLUEigen3 () const |
double | detByLULapack () const |
double | detByLUOpenCV () const |
vpMatrix | expm () const |
vpMatrix & | operator+= (const vpMatrix &B) |
vpMatrix & | operator+= (double x) |
vpMatrix & | operator-= (const vpMatrix &B) |
vpMatrix & | operator-= (double x) |
vpMatrix | operator* (const vpMatrix &B) const |
vpMatrix | operator* (const vpRotationMatrix &R) const |
vpMatrix | operator* (const vpHomogeneousMatrix &R) const |
vpMatrix | operator* (const vpVelocityTwistMatrix &V) const |
vpMatrix | operator* (const vpForceTwistMatrix &V) const |
vpTranslationVector | operator* (const vpTranslationVector &tv) const |
vpColVector | operator* (const vpColVector &v) const |
vpMatrix | operator* (double x) const |
vpMatrix | operator+ (const vpMatrix &B) const |
vpMatrix | operator- (const vpMatrix &B) const |
vpMatrix | operator- () const |
vpMatrix & | operator*= (double x) |
vpMatrix & | operator/= (double x) |
vpMatrix | operator/ (double x) const |
double | sum () const |
double | sumSquare () const |
Hadamard product | |
vpMatrix | hadamard (const vpMatrix &m) const |
Inherited functionalities from vpArray2D | |
vpArray2D< double > | hadamard (const vpArray2D< double > &m) const |
unsigned int | getCols () const |
double | getMaxValue () const |
double | getMinValue () const |
unsigned int | getRows () const |
unsigned int | size () const |
void | resize (unsigned int nrows, unsigned int ncols, bool flagNullify=true, bool recopy_=true) |
void | reshape (unsigned int nrows, unsigned int ncols) |
bool | operator== (const vpArray2D< double > &A) const |
bool | operator!= (const vpArray2D< double > &A) const |
double * | operator[] (unsigned int i) |
double * | operator[] (unsigned int i) const |
Kronecker product | |
void | kron (const vpMatrix &m1, vpMatrix &out) const |
vpMatrix | kron (const vpMatrix &m1) const |
Transpose | |
vpMatrix | t () const |
vpMatrix | transpose () const |
void | transpose (vpMatrix &At) const |
vpMatrix | AAt () const |
void | AAt (vpMatrix &B) const |
vpMatrix | AtA () const |
void | AtA (vpMatrix &B) const |
Matrix inversion | |
vpMatrix | inverseByLU () const |
vpMatrix | inverseByLUEigen3 () const |
vpMatrix | inverseByLULapack () const |
vpMatrix | inverseByLUOpenCV () const |
vpMatrix | inverseByCholesky () const |
vpMatrix | inverseByCholeskyLapack () const |
vpMatrix | inverseByCholeskyOpenCV () const |
vpMatrix | inverseByQR () const |
vpMatrix | inverseByQRLapack () const |
vpMatrix | inverseTriangular (bool upper=true) const |
vpMatrix | pseudoInverse (double svThreshold=1e-6) const |
unsigned int | pseudoInverse (vpMatrix &Ap, double svThreshold=1e-6) const |
unsigned int | pseudoInverse (vpMatrix &Ap, vpColVector &sv, double svThreshold=1e-6) const |
unsigned int | pseudoInverse (vpMatrix &Ap, vpColVector &sv, double svThreshold, vpMatrix &imA, vpMatrix &imAt) const |
unsigned int | pseudoInverse (vpMatrix &Ap, vpColVector &sv, double svThreshold, vpMatrix &imA, vpMatrix &imAt, vpMatrix &kerAt) const |
vpMatrix | pseudoInverse (int rank_in) const |
int | pseudoInverse (vpMatrix &Ap, int rank_in) const |
int | pseudoInverse (vpMatrix &Ap, vpColVector &sv, int rank_in) const |
int | pseudoInverse (vpMatrix &Ap, vpColVector &sv, int rank_in, vpMatrix &imA, vpMatrix &imAt) const |
int | pseudoInverse (vpMatrix &Ap, vpColVector &sv, int rank_in, vpMatrix &imA, vpMatrix &imAt, vpMatrix &kerAt) const |
vpMatrix | pseudoInverseLapack (double svThreshold=1e-6) const |
unsigned int | pseudoInverseLapack (vpMatrix &Ap, double svThreshold=1e-6) const |
unsigned int | pseudoInverseLapack (vpMatrix &Ap, vpColVector &sv, double svThreshold=1e-6) const |
unsigned int | pseudoInverseLapack (vpMatrix &Ap, vpColVector &sv, double svThreshold, vpMatrix &imA, vpMatrix &imAt, vpMatrix &kerAt) const |
vpMatrix | pseudoInverseLapack (int rank_in) const |
int | pseudoInverseLapack (vpMatrix &Ap, int rank_in) const |
int | pseudoInverseLapack (vpMatrix &Ap, vpColVector &sv, int rank_in) const |
int | pseudoInverseLapack (vpMatrix &Ap, vpColVector &sv, int rank_in, vpMatrix &imA, vpMatrix &imAt, vpMatrix &kerAt) const |
vpMatrix | pseudoInverseEigen3 (double svThreshold=1e-6) const |
unsigned int | pseudoInverseEigen3 (vpMatrix &Ap, double svThreshold=1e-6) const |
unsigned int | pseudoInverseEigen3 (vpMatrix &Ap, vpColVector &sv, double svThreshold=1e-6) const |
unsigned int | pseudoInverseEigen3 (vpMatrix &Ap, vpColVector &sv, double svThreshold, vpMatrix &imA, vpMatrix &imAt, vpMatrix &kerAt) const |
vpMatrix | pseudoInverseEigen3 (int rank_in) const |
int | pseudoInverseEigen3 (vpMatrix &Ap, int rank_in) const |
int | pseudoInverseEigen3 (vpMatrix &Ap, vpColVector &sv, int rank_in) const |
int | pseudoInverseEigen3 (vpMatrix &Ap, vpColVector &sv, int rank_in, vpMatrix &imA, vpMatrix &imAt, vpMatrix &kerAt) const |
vpMatrix | pseudoInverseOpenCV (double svThreshold=1e-6) const |
unsigned int | pseudoInverseOpenCV (vpMatrix &Ap, double svThreshold=1e-6) const |
unsigned int | pseudoInverseOpenCV (vpMatrix &Ap, vpColVector &sv, double svThreshold=1e-6) const |
unsigned int | pseudoInverseOpenCV (vpMatrix &Ap, vpColVector &sv, double svThreshold, vpMatrix &imA, vpMatrix &imAt, vpMatrix &kerAt) const |
vpMatrix | pseudoInverseOpenCV (int rank_in) const |
int | pseudoInverseOpenCV (vpMatrix &Ap, int rank_in) const |
int | pseudoInverseOpenCV (vpMatrix &Ap, vpColVector &sv, int rank_in) const |
int | pseudoInverseOpenCV (vpMatrix &Ap, vpColVector &sv, int rank_in, vpMatrix &imA, vpMatrix &imAt, vpMatrix &kerAt) const |
SVD decomposition | |
double | cond (double svThreshold=1e-6) const |
unsigned int | kernel (vpMatrix &kerAt, double svThreshold=1e-6) const |
unsigned int | nullSpace (vpMatrix &kerA, double svThreshold=1e-6) const |
unsigned int | nullSpace (vpMatrix &kerA, int dim) const |
void | solveBySVD (const vpColVector &B, vpColVector &x) const |
vpColVector | solveBySVD (const vpColVector &B) const |
void | svd (vpColVector &w, vpMatrix &V) |
void | svdEigen3 (vpColVector &w, vpMatrix &V) |
void | svdLapack (vpColVector &w, vpMatrix &V) |
void | svdOpenCV (vpColVector &w, vpMatrix &V) |
QR decomposition | |
unsigned int | qr (vpMatrix &Q, vpMatrix &R, bool full=false, bool squareR=false, double tol=1e-6) const |
unsigned int | qrPivot (vpMatrix &Q, vpMatrix &R, vpMatrix &P, bool full=false, bool squareR=false, double tol=1e-6) const |
void | solveByQR (const vpColVector &b, vpColVector &x) const |
vpColVector | solveByQR (const vpColVector &b) const |
Eigen values | |
vpColVector | eigenValues () const |
void | eigenValues (vpColVector &evalue, vpMatrix &evector) const |
Norms | |
double | euclideanNorm () const |
double | frobeniusNorm () const |
double | inducedL2Norm () const |
double | infinityNorm () const |
Printing | |
std::ostream & | cppPrint (std::ostream &os, const std::string &matrixName="A", bool octet=false) const |
std::ostream & | csvPrint (std::ostream &os) const |
std::ostream & | maplePrint (std::ostream &os) const |
std::ostream & | matlabPrint (std::ostream &os) const |
int | print (std::ostream &s, unsigned int length, const std::string &intro="") const |
void | printSize () const |
Static Public Member Functions | |
Linear algebra optimization | |
static unsigned int | getLapackMatrixMinSize () |
static void | setLapackMatrixMinSize (unsigned int min_size) |
Stacking with Static Public Member Functions | |
static vpMatrix | stack (const vpMatrix &A, const vpMatrix &B) |
static vpMatrix | stack (const vpMatrix &A, const vpRowVector &r) |
static vpMatrix | stack (const vpMatrix &A, const vpColVector &c) |
static void | stack (const vpMatrix &A, const vpMatrix &B, vpMatrix &C) |
static void | stack (const vpMatrix &A, const vpRowVector &r, vpMatrix &C) |
static void | stack (const vpMatrix &A, const vpColVector &c, vpMatrix &C) |
static vpMatrix | juxtaposeMatrices (const vpMatrix &A, const vpMatrix &B) |
static void | juxtaposeMatrices (const vpMatrix &A, const vpMatrix &B, vpMatrix &C) |
Matrix insertion with Static Public Member Functions | |
static vpMatrix | insert (const vpMatrix &A, const vpMatrix &B, unsigned int r, unsigned int c) |
static void | insert (const vpMatrix &A, const vpMatrix &B, vpMatrix &C, unsigned int r, unsigned int c) |
Kronecker product with Static Public Member Functions | |
static void | kron (const vpMatrix &m1, const vpMatrix &m2, vpMatrix &out) |
static vpMatrix | kron (const vpMatrix &m1, const vpMatrix &m2) |
Setting a diagonal matrix with Static Public Member Functions | |
static void | createDiagonalMatrix (const vpColVector &A, vpMatrix &DA) |
Matrix operations with Static Public Member Functions | |
static void | add2Matrices (const vpMatrix &A, const vpMatrix &B, vpMatrix &C) |
static void | add2Matrices (const vpColVector &A, const vpColVector &B, vpColVector &C) |
static void | add2WeightedMatrices (const vpMatrix &A, const double &wA, const vpMatrix &B, const double &wB, vpMatrix &C) |
static void | computeHLM (const vpMatrix &H, const double &alpha, vpMatrix &HLM) |
static void | mult2Matrices (const vpMatrix &A, const vpMatrix &B, vpMatrix &C) |
static void | mult2Matrices (const vpMatrix &A, const vpMatrix &B, vpRotationMatrix &C) |
static void | mult2Matrices (const vpMatrix &A, const vpMatrix &B, vpHomogeneousMatrix &C) |
static void | mult2Matrices (const vpMatrix &A, const vpColVector &B, vpColVector &C) |
static void | multMatrixVector (const vpMatrix &A, const vpColVector &v, vpColVector &w) |
static void | negateMatrix (const vpMatrix &A, vpMatrix &C) |
static void | sub2Matrices (const vpMatrix &A, const vpMatrix &B, vpMatrix &C) |
static void | sub2Matrices (const vpColVector &A, const vpColVector &B, vpColVector &C) |
2D Convolution with Static Public Member Functions | |
static vpMatrix | conv2 (const vpMatrix &M, const vpMatrix &kernel, const std::string &mode="full") |
static void | conv2 (const vpMatrix &M, const vpMatrix &kernel, vpMatrix &res, const std::string &mode="full") |
Covariance computation with Static Public Member Functions | |
static vpMatrix | computeCovarianceMatrix (const vpMatrix &A, const vpColVector &x, const vpColVector &b) |
static vpMatrix | computeCovarianceMatrix (const vpMatrix &A, const vpColVector &x, const vpColVector &b, const vpMatrix &w) |
static vpMatrix | computeCovarianceMatrixVVS (const vpHomogeneousMatrix &cMo, const vpColVector &deltaS, const vpMatrix &Ls, const vpMatrix &W) |
static vpMatrix | computeCovarianceMatrixVVS (const vpHomogeneousMatrix &cMo, const vpColVector &deltaS, const vpMatrix &Ls) |
Matrix I/O with Static Public Member Functions | |
static bool | loadMatrix (const std::string &filename, vpArray2D< double > &M, bool binary=false, char *header=NULL) |
static bool | loadMatrixYAML (const std::string &filename, vpArray2D< double > &M, char *header=NULL) |
static bool | saveMatrix (const std::string &filename, const vpArray2D< double > &M, bool binary=false, const char *header="") |
static bool | saveMatrixYAML (const std::string &filename, const vpArray2D< double > &M, const char *header="") |
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 |
unsigned int | pColNum |
vpMatrix * | parent |
unsigned int | rowNum |
unsigned int | colNum |
double ** | rowPtrs |
unsigned int | dsize |
Related Functions | |
(Note that these are not member functions.) | |
vpMatrix | operator* (const double &x, const vpMatrix &B) |
enum | vpGEMMmethod |
Deprecated functions | |
vp_deprecated void | init () |
vp_deprecated void | stackMatrices (const vpMatrix &A) |
vp_deprecated void | setIdentity (const double &val=1.0) |
vp_deprecated vpRowVector | row (unsigned int i) |
vp_deprecated vpColVector | column (unsigned int j) |
static vp_deprecated vpMatrix | stackMatrices (const vpMatrix &A, const vpMatrix &B) |
static vp_deprecated void | stackMatrices (const vpMatrix &A, const vpMatrix &B, vpMatrix &C) |
static vp_deprecated vpMatrix | stackMatrices (const vpMatrix &A, const vpRowVector &B) |
static vp_deprecated void | stackMatrices (const vpMatrix &A, const vpRowVector &B, vpMatrix &C) |
static vp_deprecated vpMatrix | stackMatrices (const vpColVector &A, const vpColVector &B) |
static vp_deprecated void | stackMatrices (const vpColVector &A, const vpColVector &B, vpColVector &C) |
Definition of the vpSubMatrix vpSubMatrix class provides a mask on a vpMatrix all properties of vpMatrix are available with a vpSubMatrix.
Definition at line 62 of file vpSubMatrix.h.
|
inherited |
Method used to compute the determinant of a square matrix.
Enumerator | |
---|---|
LU_DECOMPOSITION |
LU decomposition method. |
Definition at line 160 of file vpMatrix.h.
vpSubMatrix::vpSubMatrix | ( | ) |
Default constructor.
Definition at line 45 of file vpSubMatrix.cpp.
vpSubMatrix::vpSubMatrix | ( | vpMatrix & | m, |
const unsigned int & | row_offset, | ||
const unsigned int & | col_offset, | ||
const unsigned int & | nrows, | ||
const unsigned int & | ncols | ||
) |
Constructor.
m | : parent matrix |
row_offset | : row offset |
col_offset | : col offset |
nrows | : number of rows of the sub matrix |
ncols | : number of columns of the sub matrix |
Definition at line 55 of file vpSubMatrix.cpp.
References vpMatrix::init().
|
virtual |
|
inherited |
Computes the operation
Definition at line 507 of file vpMatrix.cpp.
Referenced by vpServo::computeControlLaw(), and vpServo::computeProjectionOperators().
|
inherited |
Compute the AAt operation such as .
The result is placed in the parameter B and not returned.
A new matrix won't be allocated for every use of the function. This results in a speed gain if used many times with the same result matrix size.
Definition at line 527 of file vpMatrix.cpp.
References vpArray2D< Type >::colNum, vpArray2D< double >::colNum, vpArray2D< double >::data, vpArray2D< Type >::data, vpArray2D< Type >::resize(), vpArray2D< Type >::rowNum, vpArray2D< double >::rowNum, and vpArray2D< double >::rowPtrs.
|
staticinherited |
Operation C = A + B.
The result is placed in the third parameter C and not returned. A new matrix won't be allocated for every use of the function (speed gain if used many times with the same result matrix size).
Definition at line 1352 of file vpMatrix.cpp.
References vpArray2D< Type >::colNum, vpException::dimensionError, vpArray2D< Type >::getCols(), vpArray2D< Type >::getRows(), vpArray2D< Type >::resize(), vpArray2D< Type >::rowNum, and vpArray2D< Type >::rowPtrs.
Referenced by vpMatrix::operator+().
|
staticinherited |
Operation C = A + B.
The result is placed in the third parameter C and not returned. A new vector won't be allocated for every use of the function (speed gain if used many times with the same result matrix size).
Definition at line 1385 of file vpMatrix.cpp.
References vpArray2D< Type >::colNum, vpException::dimensionError, vpArray2D< Type >::getCols(), vpArray2D< Type >::getRows(), vpColVector::resize(), vpArray2D< Type >::rowNum, and vpArray2D< Type >::rowPtrs.
|
staticinherited |
Operation C = A*wA + B*wB
The result is placed in the third parameter C and not returned. A new matrix won't be allocated for every use of the function (Speed gain if used many times with the same result matrix size).
Definition at line 1323 of file vpMatrix.cpp.
References vpArray2D< Type >::colNum, vpException::dimensionError, vpArray2D< Type >::getCols(), vpArray2D< Type >::getRows(), vpArray2D< Type >::resize(), vpArray2D< Type >::rowNum, and vpArray2D< Type >::rowPtrs.
|
inherited |
Compute the AtA operation such as
Definition at line 629 of file vpMatrix.cpp.
Referenced by vpServo::computeProjectionOperators(), vpMbDepthDenseTracker::computeVVS(), vpMbDepthNormalTracker::computeVVS(), vpMbGenericTracker::computeVVS(), vpMbEdgeTracker::computeVVSFirstPhasePoseEstimation(), vpMbTracker::computeVVSPoseEstimation(), vpTemplateTrackerWarpHomographySL3::findWarp(), vpNurbs::globalCurveApprox(), vpMbGenericTracker::track(), and vpTemplateTrackerWarp::warp().
|
inherited |
Compute the AtA operation such as .
The result is placed in the parameter B and not returned.
A new matrix won't be allocated for every use of the function. This results in a speed gain if used many times with the same result matrix size.
Definition at line 579 of file vpMatrix.cpp.
References vpArray2D< double >::colNum, vpArray2D< Type >::colNum, vpArray2D< Type >::data, vpArray2D< double >::data, vpArray2D< Type >::resize(), vpArray2D< double >::rowNum, and vpArray2D< Type >::rowNum.
void vpSubMatrix::checkParentStatus | ( | ) | const |
Check is parent vpRowVector has changed since initialization.
This method can be used to detect if the parent matrix always exits or its size have not changed and throw an exception is not.
Definition at line 104 of file vpSubMatrix.cpp.
References vpArray2D< double >::data, vpArray2D< Type >::getCols(), vpArray2D< Type >::getRows(), vpMatrixException::incorrectMatrixSizeError, parent, pColNum, and pRowNum.
|
inlineinherited |
Removes all elements from the matrix (which are destroyed), leaving the container with a size of 0.
Definition at line 219 of file vpMatrix.h.
Referenced by vpPose::init().
|
inherited |
should be replaced with:
j | : Index of the column to extract noting that column index start at 1 to get the first column. |
Definition at line 6963 of file vpMatrix.cpp.
References vpArray2D< double >::getRows().
|
staticinherited |
Compute the covariance matrix of the parameters x from a least squares minimisation defined as: Ax = b
A | : Matrix A from Ax = b. |
x | : Vector x from Ax = b corresponding to the parameters to estimate. |
b | : Vector b from Ax = b. |
Definition at line 59 of file vpMatrix_covariance.cpp.
References vpException::divideByZeroError, vpArray2D< Type >::getCols(), vpArray2D< Type >::getRows(), vpMatrix::pseudoInverse(), and vpMatrix::t().
Referenced by vpMatrix::computeCovarianceMatrixVVS(), vpPoseFeatures::computePose(), and vpPose::poseVirtualVSrobust().
|
staticinherited |
Compute the covariance matrix of the parameters x from a least squares minimisation defined as: WAx = Wb
A | : Matrix A from WAx = Wb. |
x | : Vector x from WAx = Wb corresponding to the parameters to estimate. |
b | : Vector b from WAx = Wb. |
W | : Diagonal weigths matrix from WAx = Wb. |
Definition at line 91 of file vpMatrix_covariance.cpp.
References vpException::divideByZeroError, vpArray2D< Type >::getCols(), and vpMatrix::t().
|
staticinherited |
Compute the covariance matrix of an image-based virtual visual servoing. This assumes the optimization has been done via v = (W * Ls).pseudoInverse() W * DeltaS.
cMo | : Pose matrix that has been computed with the v. |
deltaS | : Error vector used in v = (W * Ls).pseudoInverse() * W * DeltaS. |
Ls | : interaction matrix used in v = (W * Ls).pseudoInverse() * W * DeltaS. |
W | : Weight matrix used in v = (W * Ls).pseudoInverse() * W * DeltaS. |
Definition at line 149 of file vpMatrix_covariance.cpp.
References vpMatrix::computeCovarianceMatrix(), vpHomogeneousMatrix::extract(), vpMatrix::eye(), vpArray2D< Type >::getRows(), vpMatrix::pseudoInverse(), vpMath::sinc(), vpTranslationVector::skew(), vpColVector::skew(), vpMath::sqr(), and vpColVector::sumSquare().
Referenced by vpMatrix::computeCovarianceMatrixVVS(), vpMbTracker::computeCovarianceMatrixVVS(), and vpPose::poseVirtualVS().
|
staticinherited |
Compute the covariance matrix of an image-based virtual visual servoing. This assumes the optimization has been done via v = Ls.pseudoInverse() * DeltaS.
cMo | : Pose matrix that has been computed with the v. |
deltaS | : Error vector used in v = Ls.pseudoInverse() * DeltaS |
Ls | : interaction matrix used in v = Ls.pseudoInverse() * DeltaS |
Definition at line 124 of file vpMatrix_covariance.cpp.
References vpMatrix::computeCovarianceMatrix(), and vpMatrix::computeCovarianceMatrixVVS().
|
staticinherited |
Compute
H | : input Matrix . This matrix should be square. |
alpha | : Scalar |
HLM | : Resulting operation. |
Definition at line 6684 of file vpMatrix.cpp.
References vpException::dimensionError, vpArray2D< Type >::getCols(), and vpArray2D< Type >::getRows().
Referenced by vpTemplateTrackerWarpHomographySL3::findWarp(), vpTemplateTrackerSSDInverseCompositional::initCompInverse(), vpTemplateTrackerSSDESM::initCompInverse(), vpTemplateTrackerZNCCForwardAdditional::initHessienDesired(), vpTemplateTrackerMIForwardCompositional::initHessienDesired(), vpTemplateTrackerZNCCInverseCompositional::initHessienDesired(), vpTemplateTrackerMIForwardAdditional::initHessienDesired(), vpTemplateTrackerMIESM::initHessienDesired(), vpTemplateTrackerMIInverseCompositional::initHessienDesired(), vpTemplateTracker::setHDes(), vpTemplateTrackerSSDForwardCompositional::trackNoPyr(), vpTemplateTrackerMIForwardCompositional::trackNoPyr(), vpTemplateTrackerSSDESM::trackNoPyr(), vpTemplateTrackerSSDForwardAdditional::trackNoPyr(), vpTemplateTrackerMIForwardAdditional::trackNoPyr(), vpTemplateTrackerMIESM::trackNoPyr(), vpTemplateTrackerMIInverseCompositional::trackNoPyr(), and vpTemplateTrackerWarp::warp().
|
inherited |
svThreshold | Threshold used to test the singular values. If a singular value is lower than this threshold we consider that the matrix is not full rank. |
Definition at line 6623 of file vpMatrix.cpp.
References vpArray2D< double >::getCols(), vpArray2D< double >::getRows(), vpMatrix::insert(), vpArray2D< Type >::resize(), vpColVector::resize(), and vpMatrix::svd().
Referenced by vpTemplateTrackerMIForwardCompositional::trackNoPyr(), vpTemplateTrackerMIForwardAdditional::trackNoPyr(), vpTemplateTrackerMIESM::trackNoPyr(), and vpTemplateTrackerMIInverseCompositional::trackNoPyr().
|
staticinherited |
Perform a 2D convolution similar to Matlab conv2 function: .
M | : First matrix. |
kernel | : Second matrix. |
mode | : Convolution mode: "full" (default), "same", "valid". |
Definition at line 6811 of file vpMatrix.cpp.
Referenced by vpImageFilter::getSobelKernelY().
|
staticinherited |
Perform a 2D convolution similar to Matlab conv2 function: .
M | : First matrix. |
kernel | : Second matrix. |
res | : Result. |
mode | : Convolution mode: "full" (default), "same", "valid". |
Definition at line 6830 of file vpMatrix.cpp.
References vpArray2D< Type >::data, vpArray2D< Type >::getCols(), vpArray2D< Type >::getRows(), vpMatrix::insert(), and vpArray2D< Type >::resize().
|
inherited |
Print to be used as part of a C++ code later.
os | : the stream to be printed in. |
matrixName | : name of the matrix, "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 5855 of file vpMatrix.cpp.
References vpArray2D< double >::getCols(), and vpArray2D< double >::getRows().
Referenced by vpColVector::clear().
|
staticinherited |
Create a diagonal matrix with the element of a vector .
A | : Vector which element will be put in the diagonal. |
DA | : Diagonal matrix DA[i][i] = A[i] |
Definition at line 906 of file vpMatrix.cpp.
References vpArray2D< Type >::getRows(), and vpArray2D< Type >::resize().
|
inherited |
Print/save a matrix in csv format.
The following code
produces log.csv file that contains:
Definition at line 5806 of file vpMatrix.cpp.
References vpArray2D< double >::getCols(), and vpArray2D< double >::getRows().
Referenced by vpColVector::clear().
|
inherited |
Compute the determinant of a n-by-n matrix.
method | : Method used to compute the determinant. Default LU decomposition method is faster than the method based on Gaussian elimination. |
Definition at line 6477 of file vpMatrix.cpp.
References vpMatrix::detByLU(), and vpMatrix::LU_DECOMPOSITION.
Referenced by vpTriangle::buildFrom(), vpHomography::computeDisplacement(), vpMatrix::detByLULapack(), vpMatrix::detByLUOpenCV(), vpTemplateTrackerTriangle::init(), and vpMatrix::inverseByLU().
|
inherited |
Compute the determinant of a square matrix using the LU decomposition.
This function calls the first following function that is available:
If none of these previous 3rd parties is installed, we use by default detByLULapack() with a Lapack built-in version.
Definition at line 224 of file vpMatrix_lu.cpp.
References vpArray2D< double >::colNum, vpMatrix::detByLUEigen3(), vpMatrix::detByLULapack(), vpMatrix::detByLUOpenCV(), vpException::fatalError, and vpArray2D< double >::rowNum.
Referenced by vpMatrix::det().
|
inherited |
Compute the determinant of a square matrix using the LU decomposition with Eigen3 3rd party.
Definition at line 614 of file vpMatrix_lu.cpp.
References vpArray2D< double >::colNum, vpArray2D< double >::data, vpException::fatalError, vpArray2D< double >::getCols(), vpArray2D< double >::getRows(), and vpArray2D< double >::rowNum.
Referenced by vpMatrix::detByLU().
|
inherited |
Compute the determinant of a square matrix using the LU decomposition with Lapack 3rd party.
Definition at line 378 of file vpMatrix_lu.cpp.
References vpArray2D< double >::colNum, vpArray2D< Type >::data, vpMatrix::det(), vpException::fatalError, and vpArray2D< double >::rowNum.
Referenced by vpMatrix::detByLU().
|
inherited |
Compute the determinant of a n-by-n matrix using the LU decomposition with OpenCV 3rd party.
Definition at line 524 of file vpMatrix_lu.cpp.
References vpArray2D< double >::colNum, vpArray2D< double >::data, vpMatrix::det(), vpException::fatalError, and vpArray2D< double >::rowNum.
Referenced by vpMatrix::detByLU().
|
inherited |
Set the matrix as a diagonal matrix where each element on the diagonal is set to val. Elements that are not on the diagonal are set to 0.
val | : Value to set. |
Matrix A is now equal to:
Definition at line 887 of file vpMatrix.cpp.
References vpArray2D< double >::colNum, and vpArray2D< double >::rowNum.
Referenced by vpMbTracker::computeCovarianceMatrixVVS(), vpQuadProg::fromCanonicalCost(), and vpMatrix::getDiag().
|
inherited |
Create a diagonal matrix with the element of a vector.
A | : Vector which element will be put in the diagonal. |
Matrix A is now equal to:
Definition at line 847 of file vpMatrix.cpp.
References vpArray2D< Type >::getRows(), and vpArray2D< double >::resize().
|
inherited |
Compute the eigenvalues of a n-by-n real symmetric matrix using Lapack 3rd party.
vpException::dimensionError | If the matrix is not square. |
vpException::fatalError | If the matrix is not symmetric. |
vpException::functionNotImplementedError | If the Lapack 3rd party is not detected. |
Here an example:
Definition at line 6040 of file vpMatrix.cpp.
References vpArray2D< double >::colNum, vpArray2D< Type >::data, vpException::dimensionError, vpException::fatalError, vpException::functionNotImplementedError, vpColVector::resize(), vpArray2D< double >::rowNum, and vpMatrix::t().
Referenced by vpQuadProg::fromCanonicalCost(), and vpMath::lineFitting().
|
inherited |
Compute the eigenvalues of a n-by-n real symmetric matrix using Lapack 3rd party.
evalue | : Eigenvalues of the matrix, sorted in ascending order. |
evector | : Corresponding eigenvectors of the matrix. |
vpException::dimensionError | If the matrix is not square. |
vpException::fatalError | If the matrix is not symmetric. |
vpException::functionNotImplementedError | If Lapack 3rd party is not detected. |
Here an example:
Definition at line 6164 of file vpMatrix.cpp.
References vpArray2D< double >::colNum, vpArray2D< Type >::data, vpException::dimensionError, vpException::fatalError, vpException::functionNotImplementedError, vpArray2D< Type >::resize(), vpColVector::resize(), vpArray2D< double >::rowNum, and vpMatrix::t().
|
inherited |
Compute and return the Euclidean norm (also called Frobenius norm) .
Definition at line 6900 of file vpMatrix.cpp.
References vpMatrix::frobeniusNorm().
Referenced by vpColVector::deg2rad().
|
inherited |
Compute the exponential matrix of a square matrix.
Definition at line 6495 of file vpMatrix.cpp.
References vpArray2D< double >::colNum, vpArray2D< double >::data, vpArray2D< Type >::data, vpException::dimensionError, vpMatrix::eye(), vpArray2D< Type >::getCols(), vpArray2D< Type >::getRows(), vpMatrix::inverseByLU(), vpArray2D< Type >::resize(), vpMatrix::row(), vpArray2D< double >::rowNum, and vpMatrix::sum().
Referenced by vpTemplateTrackerWarpHomographySL3::computeCoeff().
|
inherited |
Extract a sub matrix from a matrix M.
r | : row index in matrix M. |
c | : column index in matrix M. |
nrows | : Number of rows of the matrix that should be extracted. |
ncols | : Number of columns of the matrix that should be extracted. |
The following code shows how to use this function:
It produces the following output:
Definition at line 407 of file vpMatrix.cpp.
References vpException::dimensionError, vpArray2D< double >::getCols(), vpArray2D< double >::getRows(), and vpArray2D< Type >::resize().
Referenced by vpLinProg::colReduction(), vpLinProg::rowReduction(), vpMatrix::solveByQR(), and vpVelocityTwistMatrix::~vpVelocityTwistMatrix().
|
inherited |
Set an m-by-n matrix to identity with ones on the diagonal and zeros else where.
Definition at line 449 of file vpMatrix.cpp.
References vpArray2D< double >::colNum, and vpArray2D< double >::rowNum.
Referenced by vpLinProg::colReduction(), vpServo::computeControlLaw(), vpMatrix::computeCovarianceMatrixVVS(), vpMbDepthDenseTracker::computeVVS(), vpMbDepthNormalTracker::computeVVS(), vpMbGenericTracker::computeVVS(), vpMbEdgeTracker::computeVVS(), vpMbEdgeTracker::computeVVSFirstPhasePoseEstimation(), vpMbTracker::computeVVSPoseEstimation(), vpMatrix::expm(), vpMatrix::eye(), vpTemplateTrackerWarpHomographySL3::getdW0(), vpTemplateTrackerWarpHomographySL3::getdWdp0(), vpFeatureThetaU::interaction(), vpMeLine::leastSquare(), vpPose::poseFromRectangle(), vpRobotKinova::setCartVelocity(), vpServo::setServo(), vpLinProg::solveLP(), vpMbGenericTracker::track(), vpMbTracker::vpMbTracker(), vpRobotCamera::vpRobotCamera(), vpServo::vpServo(), vpSimulatorCamera::vpSimulatorCamera(), and vpVelocityTwistMatrix::~vpVelocityTwistMatrix().
|
inherited |
Compute and return the Frobenius norm (also called Euclidean norm) .
Definition at line 6704 of file vpMatrix.cpp.
References vpArray2D< double >::data, and vpArray2D< double >::dsize.
Referenced by vpMatrix::euclideanNorm(), and vpColVector::extract().
|
inherited |
Extract a column vector from a matrix.
j | : Index of the column to extract. If j=0, the first column is extracted. |
The following example shows how to use this function:
It produces the following output:
Definition at line 5175 of file vpMatrix.cpp.
References vpArray2D< double >::rowNum.
Referenced by vpLinProg::colReduction(), vpHomography::DLT(), vpMbtFaceDepthNormal::estimatePlaneEquationSVD(), vpMatrix::kernel(), vpPose::poseFromRectangle(), vpServo::secondaryTaskJointLimitAvoidance(), and vpLinProg::simplex().
|
inherited |
Extract a column vector from a matrix.
j | : Index of the column to extract. If col=0, the first column is extracted. |
i_begin | : Index of the row that gives the location of the first element of the column vector to extract. |
column_size | : Size of the column vector to extract. |
The following example shows how to use this function:
It produces the following output:
Definition at line 5126 of file vpMatrix.cpp.
References vpException::dimensionError, vpArray2D< double >::getCols(), and vpArray2D< double >::getRows().
|
inlineinherited |
Return the number of columns of the 2D array.
Definition at line 279 of file vpArray2D.h.
References vpArray2D< Type >::colNum, vpArray2D< Type >::getMaxValue(), and vpArray2D< Type >::getMinValue().
Referenced by vpMatrix::cond(), vpRowVector::cppPrint(), vpMatrix::cppPrint(), vpRowVector::csvPrint(), vpMatrix::csvPrint(), vpMatrix::detByLUEigen3(), vpMatrix::extract(), vpRotationMatrix::getCol(), vpHomogeneousMatrix::getCol(), vpMatrix::getCol(), vpMatrix::inducedL2Norm(), vpMatrix::inverseByLUEigen3(), vpMatrix::inverseByQRLapack(), vpRotationMatrix::isARotationMatrix(), vpMatrix::kernel(), vpRowVector::maplePrint(), vpMatrix::maplePrint(), vpRowVector::matlabPrint(), vpMatrix::matlabPrint(), vpMatrix::nullSpace(), vpRowVector::operator*(), vpRowVector::operator+(), vpRowVector::operator+=(), vpRowVector::operator-(), vpRowVector::operator-=(), vpForceTwistMatrix::print(), vpVelocityTwistMatrix::print(), vpRowVector::print(), vpMatrix::print(), vpMatrix::pseudoInverse(), vpMatrix::row(), vpMatrix::svdEigen3(), vpMatrix::svdLapack(), and vpMatrix::svdOpenCV().
|
inherited |
Extract a diagonal vector from a matrix.
The following example shows how to use this function:
It produces the following output:
Definition at line 5307 of file vpMatrix.cpp.
References vpArray2D< double >::colNum, vpMatrix::diag(), vpColVector::resize(), and vpArray2D< double >::rowNum.
|
inlinestaticinherited |
Return the minimum size of rows and columns required to enable Blas/Lapack usage on matrices and vectors.
To get more info see Tutorial: Basic linear algebra operations.
Definition at line 246 of file vpMatrix.h.
|
inherited |
Return the array max value.
|
inherited |
Return the array min value.
|
inherited |
Extract a row vector from a matrix.
i | : Index of the row to extract. If i=0, the first row is extracted. |
The following example shows how to use this function:
It produces the following output:
Definition at line 5215 of file vpMatrix.cpp.
References vpArray2D< double >::colNum.
Referenced by vpLinProg::allClose(), vpLinProg::allLesser(), vpLinProg::solveLP(), and vpQuadProg::solveQPi().
|
inherited |
Extract a row vector from a matrix.
i | : Index of the row to extract. If i=0, the first row is extracted. |
j_begin | : Index of the column that gives the location of the first element of the row vector to extract. |
row_size | : Size of the row vector to extract. |
The following example shows how to use this function:
It produces the following output:
Definition at line 5259 of file vpMatrix.cpp.
References vpArray2D< double >::colNum, vpArray2D< double >::data, vpArray2D< Type >::data, vpException::dimensionError, and vpArray2D< double >::rowNum.
|
inlineinherited |
Return the number of rows of the 2D array.
Definition at line 289 of file vpArray2D.h.
References vpArray2D< Type >::rowNum.
Referenced by vpMatrix::column(), vpMatrix::cond(), vpColVector::cppPrint(), vpMatrix::cppPrint(), vpColVector::csvPrint(), vpMatrix::csvPrint(), vpMatrix::detByLUEigen3(), vpMatrix::extract(), vpRotationMatrix::getCol(), vpHomogeneousMatrix::getCol(), vpMatrix::getCol(), vpMatrix::inducedL2Norm(), vpMatrix::inverseByCholeskyLapack(), vpMatrix::inverseByLUEigen3(), vpMatrix::inverseByQRLapack(), vpRotationMatrix::isARotationMatrix(), vpMatrix::kernel(), vpColVector::maplePrint(), vpMatrix::maplePrint(), vpColVector::matlabPrint(), vpMatrix::matlabPrint(), vpMatrix::nullSpace(), vpColVector::operator+(), vpColVector::operator+=(), vpColVector::operator-(), vpColVector::operator-=(), vpForceTwistMatrix::print(), vpVelocityTwistMatrix::print(), vpPoseVector::print(), vpColVector::print(), vpMatrix::print(), vpMatrix::pseudoInverse(), vpMatrix::svdEigen3(), vpMatrix::svdLapack(), and vpMatrix::svdOpenCV().
Compute the Hadamard product (element wise matrix multiplication).
m | : Second matrix; |
Definition at line 1767 of file vpMatrix.cpp.
References vpArray2D< double >::colNum, vpArray2D< Type >::data, vpArray2D< double >::data, vpException::dimensionError, vpArray2D< double >::dsize, vpArray2D< Type >::getCols(), vpArray2D< Type >::getRows(), vpArray2D< Type >::resize(), and vpArray2D< double >::rowNum.
Compute the Hadamard product (element wise matrix multiplication).
m | : Second matrix; |
|
inherited |
Compute and return the induced L2 norm which is equal to the maximum singular value of the matrix.
Definition at line 6723 of file vpMatrix.cpp.
References vpArray2D< double >::dsize, vpArray2D< double >::getCols(), vpArray2D< double >::getRows(), vpArray2D< Type >::size(), and vpMatrix::svd().
|
inherited |
Compute and return the infinity norm with where is the matrix size.
Definition at line 6764 of file vpMatrix.cpp.
References vpArray2D< double >::colNum, vpArray2D< double >::rowNum, and vpArray2D< double >::rowPtrs.
Referenced by vpLinProg::colReduction(), vpColVector::extract(), and vpLinProg::rowReduction().
void vpSubMatrix::init | ( | vpMatrix & | m, |
const unsigned int & | row_offset, | ||
const unsigned int & | col_offset, | ||
const unsigned int & | nrows, | ||
const unsigned int & | ncols | ||
) |
Initialisation of vpMatrix.
Initialisation of a sub matrix.
m | : parent matrix |
row_offset | : row offset |
col_offset | : col offset |
nrows | : number of rows of the sub matrix |
ncols | : number of columns of the sub matrix |
Definition at line 70 of file vpSubMatrix.cpp.
References vpArray2D< double >::colNum, vpArray2D< Type >::data, vpArray2D< double >::data, vpArray2D< double >::dsize, vpArray2D< Type >::getCols(), vpArray2D< Type >::getRows(), vpMatrixException::incorrectMatrixSizeError, parent, pColNum, pRowNum, vpArray2D< double >::rowNum, vpArray2D< double >::rowPtrs, and vpMatrixException::subMatrixError.
|
inherited |
Initialize the matrix from a part of an input matrix M.
M | : Input matrix used for initialization. |
r | : row index in matrix M. |
c | : column index in matrix M. |
nrows | : Number of rows of the matrix that should be initialized. |
ncols | : Number of columns of the matrix that should be initialized. |
The sub-matrix starting from M[r][c] element and ending on M[r+nrows-1][c+ncols-1] element is used to initialize the matrix.
The following code shows how to use this function:
It produces the following output:
Definition at line 346 of file vpMatrix.cpp.
References vpException::dimensionError, vpArray2D< Type >::getCols(), vpArray2D< Type >::getRows(), vpArray2D< double >::resize(), and vpArray2D< double >::rowPtrs.
|
inlineinherited |
Definition at line 781 of file vpMatrix.h.
Referenced by vpColVector::extract(), vpMatrix::vpMatrix(), and vpSubMatrix().
|
inherited |
Insert matrix A at the given position in the current matrix.
A | : The matrix to insert. |
r | : The index of the row to begin to insert data. |
c | : The index of the column to begin to insert data. |
Definition at line 5988 of file vpMatrix.cpp.
References vpArray2D< double >::colNum, vpArray2D< Type >::colNum, vpArray2D< Type >::data, vpArray2D< double >::data, vpException::dimensionError, vpArray2D< Type >::getCols(), vpArray2D< Type >::getRows(), vpArray2D< double >::rowNum, and vpArray2D< Type >::size().
Referenced by vpMbEdgeKltTracker::computeVVS(), vpMbDepthDenseTracker::computeVVSInteractionMatrixAndResidu(), vpMbDepthNormalTracker::computeVVSInteractionMatrixAndResidu(), vpMbGenericTracker::computeVVSInteractionMatrixAndResidu(), vpMatrix::cond(), vpMatrix::conv2(), vpNurbs::curveKnotIns(), vpColVector::extract(), vpMatrix::insert(), vpMatrix::juxtaposeMatrices(), vpMatrix::kernel(), vpMatrix::nullSpace(), vpMatrix::pseudoInverse(), vpRobotKinova::setCartVelocity(), vpMatrix::stack(), vpColVector::stackMatrices(), and vpMbGenericTracker::track().
|
staticinherited |
Insert matrix B in matrix A at the given position.
A | : Main matrix. |
B | : Matrix to insert. |
r | : Index of the row where to add the matrix. |
c | : Index of the column where to add the matrix. |
Definition at line 5478 of file vpMatrix.cpp.
References vpMatrix::insert().
|
staticinherited |
Insert matrix B in matrix A at the given position.
A | : Main matrix. |
B | : Matrix to insert. |
C | : Result matrix. |
r | : Index of the row where to insert matrix B. |
c | : Index of the column where to insert matrix B. |
Definition at line 5500 of file vpMatrix.cpp.
References vpException::dimensionError, vpArray2D< Type >::getCols(), vpArray2D< Type >::getRows(), and vpArray2D< Type >::resize().
|
inherited |
Compute the inverse of a n-by-n matrix using the Cholesky decomposition. The matrix must be real symmetric positive defined.
This function calls the first following function that is available:
If none of these 3rd parties is installed we use a Lapack built-in version.
Here an example:
Definition at line 112 of file vpMatrix_cholesky.cpp.
References vpException::fatalError, vpMatrix::inverseByCholeskyLapack(), and vpMatrix::inverseByCholeskyOpenCV().
|
inherited |
Compute the inverse of a n-by-n matrix using the Cholesky decomposition with Lapack 3rd party. The matrix must be real symmetric positive defined.
Here an example:
Definition at line 162 of file vpMatrix_cholesky.cpp.
References vpException::badValue, vpArray2D< double >::colNum, vpArray2D< Type >::data, vpException::fatalError, vpArray2D< Type >::getCols(), vpArray2D< Type >::getRows(), vpArray2D< double >::getRows(), vpMatrixException::matrixError, and vpArray2D< double >::rowNum.
Referenced by vpMatrix::inverseByCholesky().
|
inherited |
Compute the inverse of a n-by-n matrix using the Cholesky decomposition with OpenCV 3rd party. The matrix must be real symmetric positive defined.
Here an example:
Definition at line 255 of file vpMatrix_cholesky.cpp.
References vpArray2D< double >::colNum, vpArray2D< Type >::data, vpArray2D< double >::data, vpException::fatalError, and vpArray2D< double >::rowNum.
Referenced by vpMatrix::inverseByCholesky().
|
inherited |
Compute the inverse of a n-by-n matrix using the LU decomposition.
This function calls the first following function that is available:
If none of these previous 3rd parties is installed, we use by default inverseByLULapack() with a Lapack built-in version.
Here an example:
Definition at line 130 of file vpMatrix_lu.cpp.
References vpArray2D< double >::colNum, vpMatrix::det(), vpException::fatalError, vpMatrix::inverseByLUEigen3(), vpMatrix::inverseByLULapack(), vpMatrix::inverseByLUOpenCV(), vpArray2D< Type >::resize(), and vpArray2D< double >::rowNum.
Referenced by vpTriangle::buildFrom(), vpMatrix::expm(), vpKalmanFilter::filtering(), vpTemplateTrackerWarpHomographySL3::findWarp(), vpTemplateTrackerTriangle::init(), vpTemplateTrackerSSDInverseCompositional::initCompInverse(), vpTemplateTrackerZNCCForwardAdditional::initHessienDesired(), vpTemplateTrackerMIForwardCompositional::initHessienDesired(), vpTemplateTrackerZNCCInverseCompositional::initHessienDesired(), vpTemplateTrackerMIForwardAdditional::initHessienDesired(), vpTemplateTrackerMIESM::initHessienDesired(), vpTemplateTrackerMIInverseCompositional::initHessienDesired(), vpTemplateTracker::setHDes(), vpTemplateTrackerSSDForwardCompositional::trackNoPyr(), vpTemplateTrackerMIForwardCompositional::trackNoPyr(), vpTemplateTrackerSSDForwardAdditional::trackNoPyr(), vpTemplateTrackerMIForwardAdditional::trackNoPyr(), vpTemplateTrackerMIESM::trackNoPyr(), vpTemplateTrackerMIInverseCompositional::trackNoPyr(), vpTemplateTrackerWarp::warp(), and vpImageTools::warpImage().
|
inherited |
Compute the inverse of a n-by-n matrix using the LU decomposition with Eigen3 3rd party.
Here an example:
Definition at line 572 of file vpMatrix_lu.cpp.
References vpArray2D< double >::colNum, vpArray2D< Type >::data, vpArray2D< double >::data, vpException::fatalError, vpArray2D< double >::getCols(), vpArray2D< double >::getRows(), and vpArray2D< double >::rowNum.
Referenced by vpMatrix::inverseByLU().
|
inherited |
Compute the inverse of a n-by-n matrix using the LU decomposition with Lapack 3rd party.
Here an example:
Definition at line 281 of file vpMatrix_lu.cpp.
References vpArray2D< double >::colNum, vpArray2D< Type >::data, vpException::fatalError, and vpArray2D< double >::rowNum.
Referenced by vpMatrix::inverseByLU().
|
inherited |
Compute the inverse of a n-by-n matrix using the LU decomposition with OpenCV 3rd party.
Here an example:
Definition at line 483 of file vpMatrix_lu.cpp.
References vpArray2D< double >::colNum, vpArray2D< Type >::data, vpArray2D< double >::data, vpException::fatalError, and vpArray2D< double >::rowNum.
Referenced by vpMatrix::inverseByLU().
|
inherited |
Compute the inverse of a n-by-n matrix using the QR decomposition. Only available if Lapack 3rd party is installed. If Lapack is not installed we use a Lapack built-in version.
Here an example:
Definition at line 381 of file vpMatrix_qr.cpp.
References vpException::fatalError, and vpMatrix::inverseByQRLapack().
Referenced by vpLinProg::simplex().
|
inherited |
Compute the inverse of a n-by-n matrix using the QR decomposition with Lapack 3rd party.
Here an example:
Definition at line 152 of file vpMatrix_qr.cpp.
References vpException::badValue, vpArray2D< double >::colNum, vpArray2D< Type >::colNum, vpArray2D< Type >::data, vpArray2D< double >::getCols(), vpArray2D< Type >::getRows(), vpArray2D< double >::getRows(), vpMatrixException::matrixError, vpArray2D< Type >::resize(), vpArray2D< double >::rowNum, and vpArray2D< Type >::rowNum.
Referenced by vpMatrix::inverseByQR().
|
inherited |
Compute the inverse of a full-rank n-by-n triangular matrix. Only available if Lapack 3rd party is installed. If Lapack is not installed we use a Lapack built-in version.
upper | : if it is an upper triangular matrix |
The function does not check if the matrix is actually upper or lower triangular.
Definition at line 1024 of file vpMatrix_qr.cpp.
References vpException::badValue, vpArray2D< double >::colNum, vpArray2D< Type >::colNum, vpArray2D< Type >::data, vpException::dimensionError, vpException::fatalError, vpMatrixException::rankDeficient, vpArray2D< Type >::resize(), vpArray2D< double >::rowNum, and vpArray2D< Type >::rowNum.
Referenced by vpLinProg::colReduction(), vpLinProg::rowReduction(), and vpMatrix::solveByQR().
Juxtapose to matrices C = [ A B ].
A | : Left matrix. |
B | : Right matrix. |
Definition at line 5531 of file vpMatrix.cpp.
Referenced by vpLinProg::colReduction().
Juxtapose to matrices C = [ A B ].
A | : Left matrix. |
B | : Right matrix. |
C | : Juxtaposed matrix C = [ A B ] |
Definition at line 5552 of file vpMatrix.cpp.
References vpException::dimensionError, vpArray2D< Type >::getCols(), vpArray2D< Type >::getRows(), vpMatrix::insert(), and vpArray2D< Type >::resize().
|
inherited |
Function to compute the null space (the kernel) of a m-by-n matrix .
The null space of a matrix is defined as .
kerAt | The matrix that contains the null space (kernel) of defined by the matrix . If matrix is full rank, the dimension of kerAt is (0, n), otherwise the dimension is (n-r, n). This matrix is thus the transpose of . |
svThreshold | Threshold used to test the singular values. If a singular value is lower than this threshold we consider that the matrix is not full rank. |
Definition at line 6265 of file vpMatrix.cpp.
References vpMatrix::getCol(), vpArray2D< double >::getCols(), vpArray2D< Type >::getRows(), vpArray2D< double >::getRows(), vpMatrix::insert(), vpArray2D< Type >::resize(), vpColVector::resize(), vpColVector::sumSquare(), and vpMatrix::svd().
Compute Kronecker product matrix.
m | : vpMatrix. |
out | : If m1.kron(m2) out contains the kronecker product's result : . |
Definition at line 1817 of file vpMatrix.cpp.
Referenced by vpMatrix::kron().
Compute Kronecker product matrix.
m | : vpMatrix; |
Definition at line 1856 of file vpMatrix.cpp.
References vpMatrix::kron().
Compute Kronecker product matrix.
Definition at line 1787 of file vpMatrix.cpp.
References vpArray2D< Type >::getCols(), vpArray2D< Type >::getRows(), and vpArray2D< Type >::resize().
Compute Kronecker product matrix.
Definition at line 1825 of file vpMatrix.cpp.
References vpArray2D< Type >::getCols(), vpArray2D< Type >::getRows(), and vpArray2D< Type >::resize().
|
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.
References vpException::badValue, and vpArray2D< Type >::resize().
|
inlinestaticinherited |
Load a matrix from a file. This function overloads vpArray2D::load().
filename | : absolute file name. |
M | : matrix 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 713 of file vpMatrix.h.
References vpArray2D< Type >::load().
Referenced by vpDot2::defineDots().
|
inlinestaticinherited |
Load a matrix from a YAML-formatted file. This function overloads vpArray2D::loadYAML().
filename | : absolute file name. |
M | : matrix to be loaded from the file. |
header | : Header of the file is loaded in this parameter. |
Definition at line 729 of file vpMatrix.h.
References vpArray2D< Type >::loadYAML().
|
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.
References vpArray2D< Type >::resize().
|
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 5765 of file vpMatrix.cpp.
References vpArray2D< double >::getCols(), and vpArray2D< double >::getRows().
Referenced by vpColVector::extract().
|
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 5721 of file vpMatrix.cpp.
References vpArray2D< double >::getCols(), and vpArray2D< double >::getRows().
Referenced by vpColVector::extract().
|
staticinherited |
Operation C = A * B.
The result is placed in the third parameter C and not returned. A new matrix won't be allocated for every use of the function (speed gain if used many times with the same result matrix size).
Definition at line 1009 of file vpMatrix.cpp.
References vpArray2D< Type >::colNum, vpArray2D< Type >::data, vpException::dimensionError, vpArray2D< Type >::getCols(), vpArray2D< Type >::getRows(), vpArray2D< Type >::resize(), vpArray2D< Type >::rowNum, and vpArray2D< Type >::rowPtrs.
Referenced by vpMatrix::operator*().
|
staticinherited |
Operation C = A * B.
The result is placed in the third parameter C and not returned. A new matrix won't be allocated for every use of the function (speed gain if used many times with the same result matrix size).
vpException::dimensionError | If matrices are not 3-by-3 dimension. |
Definition at line 1065 of file vpMatrix.cpp.
References vpArray2D< Type >::colNum, vpException::dimensionError, vpArray2D< Type >::getCols(), vpArray2D< Type >::getRows(), vpArray2D< Type >::rowNum, and vpArray2D< Type >::rowPtrs.
|
staticinherited |
Operation C = A * B.
The result is placed in the third parameter C and not returned. A new matrix won't be allocated for every use of the function (speed gain if used many times with the same result matrix size).
vpException::dimensionError | If matrices are not 4-by-4 dimension. |
Definition at line 1102 of file vpMatrix.cpp.
References vpArray2D< Type >::colNum, vpArray2D< Type >::data, vpException::dimensionError, vpArray2D< Type >::getCols(), vpArray2D< Type >::getRows(), vpArray2D< Type >::rowNum, and vpArray2D< Type >::rowPtrs.
|
staticinherited |
Operation C = A * B.
The result is placed in the third parameter C and not returned. A new matrix won't be allocated for every use of the function (speed gain if used many times with the same result matrix size).
Definition at line 1159 of file vpMatrix.cpp.
References vpMatrix::multMatrixVector().
|
staticinherited |
Operation w = A * v (v and w are vectors).
A new matrix won't be allocated for every use of the function (Speed gain if used many times with the same result matrix size).
Definition at line 959 of file vpMatrix.cpp.
References vpArray2D< Type >::colNum, vpArray2D< Type >::data, vpException::dimensionError, vpArray2D< Type >::getCols(), vpArray2D< Type >::getRows(), vpColVector::resize(), vpArray2D< Type >::rowNum, and vpArray2D< Type >::rowPtrs.
Referenced by vpMatrix::mult2Matrices(), and vpMatrix::operator*().
Operation C = -A.
The result is placed in the second parameter C and not returned. A new matrix won't be allocated for every use of the function (Speed gain if used many times with the same result matrix size).
Definition at line 1540 of file vpMatrix.cpp.
References vpArray2D< Type >::colNum, vpArray2D< Type >::resize(), vpArray2D< Type >::rowNum, and vpArray2D< Type >::rowPtrs.
Referenced by vpMatrix::operator-().
|
inherited |
Function to compute the null space (the kernel) of a m-by-n matrix .
The null space of a matrix is defined as .
kerA | The matrix that contains the null space (kernel) of . If matrix is full rank, the dimension of kerA is (n, 0), otherwise its dimension is (n, n-r). |
svThreshold | Threshold used to test the singular values. The dimension of kerA corresponds to the number of singular values lower than this threshold |
Definition at line 6336 of file vpMatrix.cpp.
References vpArray2D< double >::getCols(), vpArray2D< double >::getRows(), vpMatrix::insert(), vpArray2D< Type >::resize(), vpColVector::resize(), and vpMatrix::svd().
Referenced by vpMeEllipse::leastSquare(), and vpMeEllipse::leastSquareRobust().
|
inherited |
Function to compute the null space (the kernel) of a m-by-n matrix .
The null space of a matrix is defined as .
kerA | The matrix that contains the null space (kernel) of . If matrix is full rank, the dimension of kerA is (n, 0), otherwise its dimension is (n, n-r). |
dim | the dimension of the null space when it is known a priori |
Definition at line 6401 of file vpMatrix.cpp.
References vpArray2D< double >::getCols(), vpArray2D< double >::getRows(), vpMatrix::insert(), vpArray2D< Type >::resize(), vpColVector::resize(), and vpMatrix::svd().
Not equal to comparison operator of a 2D array.
Operation C = A * B (A is unchanged).
Definition at line 1168 of file vpMatrix.cpp.
References vpMatrix::mult2Matrices().
Referenced by vpColVector::operator[](), vpColVector::stackMatrices(), and vpVelocityTwistMatrix::~vpVelocityTwistMatrix().
|
inherited |
Operator that allow to multiply a matrix by a rotation matrix. The matrix should be of dimension m-by-3.
Definition at line 1181 of file vpMatrix.cpp.
References vpArray2D< double >::colNum, vpException::dimensionError, vpArray2D< Type >::getCols(), vpArray2D< Type >::getRows(), vpArray2D< Type >::resize(), vpArray2D< double >::rowNum, and vpArray2D< double >::rowPtrs.
|
inherited |
Operator that allow to multiply a matrix by a homogeneous matrix. The matrix should be of dimension m-by-4.
Definition at line 1210 of file vpMatrix.cpp.
References vpArray2D< double >::colNum, vpException::dimensionError, vpArray2D< Type >::getCols(), vpArray2D< Type >::getRows(), vpArray2D< Type >::resize(), vpArray2D< double >::rowNum, and vpArray2D< double >::rowPtrs.
|
inherited |
Operator that allow to multiply a matrix by a velocity twist matrix. The matrix should be of dimension m-by-6.
Definition at line 1239 of file vpMatrix.cpp.
References vpArray2D< double >::colNum, vpArray2D< Type >::colNum, vpArray2D< Type >::data, vpArray2D< double >::data, vpException::dimensionError, vpArray2D< Type >::getRows(), vpArray2D< Type >::resize(), and vpArray2D< double >::rowNum.
|
inherited |
Operator that allow to multiply a matrix by a force/torque twist matrix. The matrix should be of dimension m-by-6.
Definition at line 1278 of file vpMatrix.cpp.
References vpArray2D< double >::colNum, vpArray2D< Type >::colNum, vpArray2D< Type >::data, vpArray2D< double >::data, vpException::dimensionError, vpArray2D< Type >::getCols(), vpArray2D< Type >::getRows(), vpArray2D< Type >::resize(), and vpArray2D< double >::rowNum.
|
inherited |
Operator that allows to multiply a matrix by a translation vector. The matrix should be of dimension (3x3)
Definition at line 919 of file vpMatrix.cpp.
References vpArray2D< double >::colNum, vpException::dimensionError, vpArray2D< Type >::getCols(), vpArray2D< Type >::getRows(), vpArray2D< double >::rowNum, and vpArray2D< double >::rowPtrs.
|
inherited |
Operation w = A * v (matrix A is unchanged, v and w are column vectors).
Definition at line 944 of file vpMatrix.cpp.
References vpMatrix::multMatrixVector().
|
inherited |
Operator that allows to multiply all the elements of a matrix by a scalar.
Definition at line 1612 of file vpMatrix.cpp.
References vpArray2D< double >::colNum, vpArray2D< Type >::resize(), vpArray2D< double >::rowNum, and vpArray2D< double >::rowPtrs.
|
inherited |
Multiply all the element of the matrix by x : Aij = Aij * x.
Operator that allows to multiply all the elements of a matrix by a scalar.
Definition at line 1675 of file vpMatrix.cpp.
References vpArray2D< double >::colNum, vpArray2D< double >::rowNum, and vpArray2D< double >::rowPtrs.
Referenced by vpColVector::operator[]().
Operation C = A + B (A is unchanged).
Definition at line 1410 of file vpMatrix.cpp.
References vpMatrix::add2Matrices().
Referenced by vpColVector::operator[]().
Operation A = A + B.
Definition at line 1499 of file vpMatrix.cpp.
References vpArray2D< double >::colNum, vpException::dimensionError, vpArray2D< Type >::getCols(), vpArray2D< Type >::getRows(), vpArray2D< double >::rowNum, vpArray2D< Type >::rowPtrs, and vpArray2D< double >::rowPtrs.
Referenced by vpColVector::operator[]().
|
inherited |
Add x to all the element of the matrix : Aij = Aij + x.
Definition at line 1652 of file vpMatrix.cpp.
References vpArray2D< double >::colNum, vpArray2D< double >::rowNum, and vpArray2D< double >::rowPtrs.
|
inherited |
Definition at line 805 of file vpMatrix.cpp.
References vpArray2D< double >::colNum, vpArray2D< double >::resize(), and vpArray2D< double >::rowPtrs.
Referenced by vpColVector::operator[]().
Operation C = A - B (A is unchanged).
Definition at line 1490 of file vpMatrix.cpp.
References vpMatrix::sub2Matrices().
|
inherited |
Operation C = -A (A is unchanged).
Definition at line 1558 of file vpMatrix.cpp.
References vpMatrix::negateMatrix().
Referenced by vpColVector::operator[]().
Operation A = A - B.
Definition at line 1516 of file vpMatrix.cpp.
References vpArray2D< double >::colNum, vpException::dimensionError, vpArray2D< Type >::getCols(), vpArray2D< Type >::getRows(), vpArray2D< double >::rowNum, vpArray2D< Type >::rowPtrs, and vpArray2D< double >::rowPtrs.
Referenced by vpColVector::operator[]().
|
inherited |
Substract x to all the element of the matrix : Aij = Aij - x.
Definition at line 1662 of file vpMatrix.cpp.
References vpArray2D< double >::colNum, vpArray2D< double >::rowNum, and vpArray2D< double >::rowPtrs.
|
inherited |
Cij = Aij / x (A is unchanged)
Definition at line 1629 of file vpMatrix.cpp.
References vpArray2D< double >::colNum, vpException::divideByZeroError, vpArray2D< Type >::resize(), vpArray2D< double >::rowNum, and vpArray2D< double >::rowPtrs.
Referenced by vpColVector::operator[]().
|
inherited |
Divide all the element of the matrix by x : Aij = Aij / x.
Definition at line 1689 of file vpMatrix.cpp.
References vpArray2D< double >::colNum, vpException::divideByZeroError, vpArray2D< double >::rowNum, and vpArray2D< double >::rowPtrs.
Referenced by vpColVector::operator[]().
|
inherited |
Assigment from an array of double. This method has to be used carefully since the array allocated behind x pointer should have the same dimension than the matrix.
Definition at line 788 of file vpMatrix.cpp.
References vpArray2D< double >::colNum, vpArray2D< double >::rowNum, and vpArray2D< double >::rowPtrs.
|
inherited |
Definition at line 798 of file vpMatrix.cpp.
References vpArray2D< double >::resize(), and vpArray2D< double >::rowPtrs.
vpSubMatrix & vpSubMatrix::operator= | ( | const vpSubMatrix & | B | ) |
Operation such as subA = subB.
Operation A = B.
B | : a subMatrix |
Definition at line 140 of file vpSubMatrix.cpp.
References vpArray2D< double >::colNum, vpArray2D< Type >::getCols(), vpArray2D< Type >::getRows(), vpMatrixException::incorrectMatrixSizeError, parent, pColNum, pRowNum, vpArray2D< double >::rowNum, vpArray2D< double >::rowPtrs, and vpArray2D< Type >::rowPtrs.
vpSubMatrix & vpSubMatrix::operator= | ( | const vpMatrix & | B | ) |
Operation such as subA = B.
Operation A = B.
B | : a matrix |
Definition at line 120 of file vpSubMatrix.cpp.
References vpArray2D< double >::colNum, vpArray2D< Type >::getCols(), vpArray2D< Type >::getRows(), vpMatrixException::incorrectMatrixSizeError, vpArray2D< double >::rowNum, and vpArray2D< double >::rowPtrs.
vpSubMatrix & vpSubMatrix::operator= | ( | const double & | x | ) |
Operation such as subA = x.
Operation A = x.
x | : a scalar |
Definition at line 166 of file vpSubMatrix.cpp.
References vpArray2D< double >::colNum, vpArray2D< double >::rowNum, and vpArray2D< double >::rowPtrs.
Equal to comparison operator of a 2D array.
|
inlineinherited |
Set element using A[i][j] = x.
Definition at line 484 of file vpArray2D.h.
|
inlineinherited |
Get element using x = A[i][j].
Definition at line 486 of file vpArray2D.h.
|
inherited |
Pretty print a matrix. 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 matrix 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 matrix. Can be set to zero (or omitted), in which case the introduction is not printed. |
Definition at line 5598 of file vpMatrix.cpp.
References vpArray2D< double >::getCols(), vpArray2D< double >::getRows(), and vpMath::maximum().
Referenced by vpServo::computeControlLaw(), vpColVector::operator[](), and vpVelocityTwistMatrix::~vpVelocityTwistMatrix().
|
inlineinherited |
Definition at line 597 of file vpMatrix.h.
References vpArray2D< Type >::getCols(), and vpArray2D< Type >::getRows().
|
inherited |
Compute and return the Moore-Penros pseudo inverse of a m-by-n matrix .
svThreshold | : Threshold used to test the singular values. If a singular value is lower than this threshold we consider that the matrix is not full rank. |
Here an example to compute the pseudo-inverse of a 2-by-3 matrix that is rank 2.
Once build, the previous example produces the following output:
Definition at line 2241 of file vpMatrix.cpp.
References vpException::fatalError, vpMatrix::pseudoInverseEigen3(), vpMatrix::pseudoInverseLapack(), and vpMatrix::pseudoInverseOpenCV().
Referenced by vpSimulatorAfma6::computeArticularVelocity(), vpSimulatorViper850::computeArticularVelocity(), vpServo::computeControlLaw(), vpMatrix::computeCovarianceMatrix(), vpMatrix::computeCovarianceMatrixVVS(), vpPoseFeatures::computePose(), vpMbEdgeTracker::computeVVSFirstPhasePoseEstimation(), vpMbTracker::computeVVSPoseEstimation(), vpQuadProg::fromCanonicalCost(), vpNurbs::globalCurveApprox(), vpNurbs::globalCurveInterp(), vpHomography::inverse(), vpMeLine::leastSquare(), vpRotationMatrix::mean(), vpHomogeneousMatrix::mean(), vpPose::poseDementhonNonPlan(), vpPose::poseDementhonPlan(), vpPose::poseFromRectangle(), vpPose::poseVirtualVS(), vpMatrix::pseudoInverse(), vpHomography::robust(), vpMatrix::solveBySVD(), and vpQuadProg::solveQPi().
|
inherited |
Compute the Moore-Penros pseudo inverse of a m-by-n matrix and return the rank of the matrix.
Ap | : The Moore-Penros pseudo inverse . |
svThreshold | : Threshold used to test the singular values. If a singular value is lower than this threshold we consider that the matrix is not full rank. |
Here an example to compute the pseudo-inverse of a 2-by-3 matrix that is rank 2.
Once build, the previous example produces the following output:
Definition at line 2099 of file vpMatrix.cpp.
References vpException::fatalError, vpMatrix::pseudoInverseEigen3(), vpMatrix::pseudoInverseLapack(), and vpMatrix::pseudoInverseOpenCV().
|
inherited |
Compute the Moore-Penros pseudo inverse of a m-by-n matrix along with singular values and return the rank of the matrix.
Ap | : The Moore-Penros pseudo inverse . |
sv | Vector corresponding to matrix singular values. The size of this vector is equal to min(m, n). |
svThreshold | : Threshold used to test the singular values. If a singular value is lower than this threshold we consider that the matrix is not full rank. |
Here an example to compute the pseudo-inverse of a 2-by-3 matrix that is rank 2.
Once build, the previous example produces the following output:
Definition at line 4509 of file vpMatrix.cpp.
References vpException::fatalError, vpMatrix::pseudoInverseEigen3(), vpMatrix::pseudoInverseLapack(), and vpMatrix::pseudoInverseOpenCV().
|
inherited |
Compute the Moore-Penros pseudo inverse of a m-by-n matrix along with singular values, and and return the rank of the matrix.
See pseudoInverse(vpMatrix &, vpColVector &, double, vpMatrix &, vpMatrix &, vpMatrix &) const for a complete description of this function.
Ap | : The Moore-Penros pseudo inverse . |
sv | Vector corresponding to matrix singular values. The size of this vector is equal to min(m, n). |
svThreshold | : Threshold used to test the singular values. If a singular value is lower than this threshold we consider that the matrix is not full rank. |
imA | that is a m-by-r matrix. |
imAt | that is n-by-r matrix. |
Here an example to compute the pseudo-inverse of a 2-by-3 matrix that is rank 2.
Once build, the previous example produces the following output:
Definition at line 4682 of file vpMatrix.cpp.
References vpMatrix::pseudoInverse().
|
inherited |
Compute the Moore-Penros pseudo inverse of a m-by-n matrix along with singular values, , and and return the rank of the matrix.
Using singular value decomposition, we have:
where the diagonal of corresponds to the matrix singular values.
This equation could be reformulated in a minimal way:
where the diagonal of corresponds to the matrix first r singular values.
The null space of a matrix is defined as .
Ap | The Moore-Penros pseudo inverse . |
sv | Vector corresponding to matrix singular values. The size of this vector is equal to min(m, n). |
svThreshold | Threshold used to test the singular values. If a singular value is lower than this threshold we consider that the matrix is not full rank. |
imA | that is a m-by-r matrix. |
imAt | that is n-by-r matrix. |
kerAt | The matrix that contains the null space (kernel) of defined by the matrix . If matrix is full rank, the dimension of kerAt is (0, n), otherwise the dimension is (n-r, n). This matrix is thus the transpose of . |
Here an example to compute the pseudo-inverse of a 2-by-3 matrix that is rank 2.
Once build, the previous example produces the following output:
Definition at line 4906 of file vpMatrix.cpp.
References vpException::fatalError, vpMatrix::pseudoInverseEigen3(), vpMatrix::pseudoInverseLapack(), and vpMatrix::pseudoInverseOpenCV().
|
inherited |
Compute and return the Moore-Penros pseudo inverse of a m-by-n matrix .
[in] | rank_in | : Known rank of the matrix. |
Here an example to compute the pseudo-inverse of a 2-by-3 matrix that is rank 2.
Once build, the previous example produces the following output:
Definition at line 2306 of file vpMatrix.cpp.
References vpArray2D< Type >::data, vpException::fatalError, vpArray2D< double >::getCols(), vpArray2D< double >::getRows(), vpMatrix::insert(), vpMatrix::pseudoInverseEigen3(), vpMatrix::pseudoInverseLapack(), vpMatrix::pseudoInverseOpenCV(), vpArray2D< Type >::resize(), vpColVector::resize(), vpArray2D< Type >::size(), vpMatrix::svdEigen3(), vpMatrix::svdLapack(), and vpMatrix::svdOpenCV().
|
inherited |
Compute the Moore-Penros pseudo inverse of a m-by-n matrix and return the rank of the matrix.
Ap | : The Moore-Penros pseudo inverse . | |
[in] | rank_in | : Known rank of the matrix. |
Here an example to compute the pseudo-inverse of a 2-by-3 matrix that is rank 2.
Once build, the previous example produces the following output:
Definition at line 2175 of file vpMatrix.cpp.
References vpException::fatalError, vpMatrix::pseudoInverseEigen3(), vpMatrix::pseudoInverseLapack(), and vpMatrix::pseudoInverseOpenCV().
|
inherited |
Compute the Moore-Penros pseudo inverse of a m-by-n matrix along with singular values and return the rank of the matrix.
Ap | : The Moore-Penros pseudo inverse . | |
sv | Vector corresponding to matrix singular values. The size of this vector is equal to min(m, n). | |
[in] | rank_in | : Known rank of the matrix. |
Here an example to compute the pseudo-inverse of a 2-by-3 matrix that is rank 2.
Once build, the previous example produces the following output:
Definition at line 4592 of file vpMatrix.cpp.
References vpException::fatalError, vpMatrix::pseudoInverseEigen3(), vpMatrix::pseudoInverseLapack(), and vpMatrix::pseudoInverseOpenCV().
|
inherited |
Compute the Moore-Penros pseudo inverse of a m-by-n matrix along with singular values, and and return the rank of the matrix.
See pseudoInverse(vpMatrix &, vpColVector &, double, vpMatrix &, vpMatrix &, vpMatrix &) const for a complete description of this function.
Ap | : The Moore-Penros pseudo inverse . | |
sv | Vector corresponding to matrix singular values. The size of this vector is equal to min(m, n). | |
[in] | rank_in | : Known rank of the matrix. |
imA | that is a m-by-r matrix. | |
imAt | that is n-by-r matrix. |
Here an example to compute the pseudo-inverse of a 2-by-3 matrix that is rank 2.
Once build, the previous example produces the following output:
Definition at line 4766 of file vpMatrix.cpp.
References vpMatrix::pseudoInverse().
|
inherited |
Compute the Moore-Penros pseudo inverse of a m-by-n matrix along with singular values, , and and return the rank of the matrix.
Using singular value decomposition, we have:
where the diagonal of corresponds to the matrix singular values.
This equation could be reformulated in a minimal way:
where the diagonal of corresponds to the matrix first r singular values.
The null space of a matrix is defined as .
Ap | The Moore-Penros pseudo inverse . | |
sv | Vector corresponding to matrix singular values. The size of this vector is equal to min(m, n). | |
[in] | rank_in | : Known rank of the matrix. |
imA | that is a m-by-r matrix. | |
imAt | that is n-by-r matrix. | |
kerAt | The matrix that contains the null space (kernel) of defined by the matrix . If matrix is full rank, the dimension of kerAt is (0, n), otherwise the dimension is (n-r, n). This matrix is thus the transpose of . |
Here an example to compute the pseudo-inverse of a 2-by-3 matrix that is rank 2.
Once build, the previous example produces the following output:
Definition at line 5065 of file vpMatrix.cpp.
References vpException::fatalError, vpMatrix::pseudoInverseEigen3(), vpMatrix::pseudoInverseLapack(), and vpMatrix::pseudoInverseOpenCV().
|
inherited |
Referenced by vpMatrix::pseudoInverse().
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Referenced by vpMatrix::pseudoInverse().
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Referenced by vpMatrix::pseudoInverse().
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Compute the QR decomposition of a (m x n) matrix of rank r. Only available if Lapack 3rd party is installed. If Lapack is not installed we use a Lapack built-in version.
Q | : orthogonal matrix (will be modified). |
R | : upper-triangular matrix (will be modified). |
full | : whether or not we want full decomposition. |
squareR | : will return only the square (min(m,n) x min(m,n)) part of R. |
tol | : tolerance to test the rank of R. |
If full is false (default) then Q is (m x min(n,m)) and R is (min(n,m) x n). We then have this = QR.
If full is true and m > n then Q is (m x m) and R is (n x n). In this case this = Q (R, 0)^T
If squareR is true and n > m then R is (m x m). If r = m then R is invertible.
Here an example:
Definition at line 444 of file vpMatrix_qr.cpp.
References vpException::badValue, vpArray2D< double >::colNum, vpArray2D< Type >::colNum, vpArray2D< double >::data, vpArray2D< Type >::data, vpException::fatalError, vpArray2D< Type >::resize(), vpArray2D< Type >::rowNum, and vpArray2D< double >::rowNum.
Referenced by vpLinProg::colReduction().
|
inherited |
Compute the QR pivot decomposition of a (m x n) matrix of rank r. Only available if Lapack 3rd party is installed. If Lapack is not installed we use a Lapack built-in version.
Q | : orthogonal matrix (will be modified). |
R | : upper-triangular matrix (will be modified). |
P | : the (n x n) permutation matrix. |
full | : whether or not we want full decomposition. |
squareR | : will return only the (r x r) part of R and the (r x n) part of P. |
tol | : tolerance to test the rank of R. |
If full is false (default) then Q is (m x min(n,m)) and R is (min(n,m) x n). We then have this.P = Q.R.
If full is true and m > n then Q is (m x m) and R is (n x n). In this case this.P = Q (R, 0)^T
If squareR is true then R is (r x r) invertible.
Here an example:
Definition at line 737 of file vpMatrix_qr.cpp.
References vpException::badValue, vpArray2D< double >::colNum, vpArray2D< Type >::colNum, vpArray2D< double >::data, vpArray2D< Type >::data, vpException::fatalError, vpArray2D< Type >::resize(), vpArray2D< double >::rowNum, and vpArray2D< Type >::rowNum.
Referenced by vpLinProg::colReduction(), vpLinProg::rowReduction(), and vpMatrix::solveByQR().
|
inlineinherited |
Definition at line 379 of file vpArray2D.h.
References vpException::dimensionError, vpArray2D< Type >::dsize, vpArray2D< Type >::operator!=(), vpArray2D< Type >::operator==(), vpArray2D< Type >::resize(), and vpArray2D< Type >::rowPtrs.
|
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. |
Definition at line 304 of file vpArray2D.h.
References vpArray2D< Type >::colNum, vpArray2D< Type >::dsize, vpException::memoryAllocationError, vpArray2D< Type >::rowNum, and vpArray2D< Type >::rowPtrs.
Referenced by vpMatrix::diag(), vpMatrix::eye(), vpMatrix::init(), vpMatrix::operator,(), vpMatrix::operator<<(), vpMatrix::operator=(), vpMatrix::stack(), and vpMatrix::svdOpenCV().
|
inherited |
should be replaced with:
i | : Index of the row to extract noting that row index start at 1 to get the first row. |
Definition at line 6937 of file vpMatrix.cpp.
References vpArray2D< double >::getCols().
Referenced by vpMatrix::expm().
|
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.
References vpArray2D< Type >::getCols(), and vpArray2D< Type >::getRows().
|
inlinestaticinherited |
Save a matrix to a file. This function overloads vpArray2D::load().
filename | : absolute file name. |
M | : matrix to be saved. |
binary | : If true the matrix is save 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 748 of file vpMatrix.h.
References vpArray2D< Type >::save().
Referenced by vpDot2::defineDots().
|
inlinestaticinherited |
Save a matrix in a YAML-formatted file. This function overloads vpArray2D::saveYAML().
filename | : absolute file name. |
M | : matrix 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. |
Definition at line 766 of file vpMatrix.h.
References vpArray2D< Type >::saveYAML().
|
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.
References vpArray2D< Type >::getCols(), and vpArray2D< Type >::getRows().
|
inherited |
Set the matrix diagonal elements to val. More generally set M[i][i] = val.
Definition at line 6978 of file vpMatrix.cpp.
References vpArray2D< double >::colNum, and vpArray2D< double >::rowNum.
Referenced by vpVelocityTwistMatrix::init(), vpColVector::rows(), and vpServo::secondaryTask().
|
inlinestaticinherited |
Modify default size used to determine if Blas/Lapack basic linear algebra operations are enabled.
To get more info see Tutorial: Basic linear algebra operations.
min_size | : Minimum size of rows and columns required for a matrix or a vector to use Blas/Lapack third parties like MKL, OpenBLAS, Netlib or Atlas. When matrix or vector size is lower or equal to this parameter, Blas/Lapack is not used. In that case we prefer use naive code that runs faster for small matrices. |
Definition at line 262 of file vpMatrix.h.
References vpArray2D< Type >::hadamard(), operator*(), vpArray2D< Type >::operator<<, and vpArray2D< Type >::operator=().
|
inlineinherited |
Return the number of elements of the 2D array.
Definition at line 291 of file vpArray2D.h.
References vpArray2D< Type >::rowNum.
Referenced by vpRowVector::insert(), vpColVector::insert(), vpColVector::operator*(), vpRotationVector::operator,(), vpTranslationVector::operator,(), vpRotationMatrix::operator,(), vpHomogeneousMatrix::operator,(), vpQuaternionVector::operator=(), vpTranslationVector::operator=(), vpRxyzVector::operator=(), vpRzyzVector::operator=(), vpRzyxVector::operator=(), vpThetaUVector::operator=(), vpMatrix::stack(), vpRotationVector::toStdVector(), vpRowVector::toStdVector(), and vpColVector::toStdVector().
|
inherited |
Solve a linear system Ax = b using QR Decomposition.
Non destructive wrt. A and b.
b | : Vector b |
x | : Vector x |
Here an example:
Definition at line 1170 of file vpMatrix_qr.cpp.
References vpArray2D< double >::colNum, vpMatrix::extract(), vpMatrix::inverseTriangular(), vpMatrix::qrPivot(), and vpMatrix::t().
Referenced by vpMatrix::solveByQR(), and vpQuadProg::solveSVDorQR().
|
inherited |
Solve a linear system Ax = b using QR Decomposition.
Non destructive wrt. A and B.
b | : Vector b |
Here an example:
Definition at line 1222 of file vpMatrix_qr.cpp.
References vpArray2D< double >::colNum, and vpMatrix::solveByQR().
|
inherited |
Solve a linear system using Singular Value Decomposition (SVD).
Non destructive wrt. A and B.
b | : Vector . |
x | : Vector . |
Here an example:
Definition at line 1908 of file vpMatrix.cpp.
References vpMatrix::pseudoInverse().
Referenced by vpQuadProg::solveByProjection(), vpMatrix::solveBySVD(), vpQuadProg::solveQPe(), and vpQuadProg::solveSVDorQR().
|
inherited |
Solve a linear system using Singular Value Decomposition (SVD).
Non destructive wrt. A and B.
B | : Vector . |
Here an example:
Definition at line 1959 of file vpMatrix.cpp.
References vpArray2D< double >::colNum, and vpMatrix::solveBySVD().
|
inherited |
Stack A at the end of the current matrix, or copy if the matrix has no dimensions : this = [ this A ]^T.
Definition at line 5879 of file vpMatrix.cpp.
References vpArray2D< double >::colNum, vpException::dimensionError, vpArray2D< Type >::getCols(), vpArray2D< Type >::getRows(), vpMatrix::insert(), vpArray2D< double >::resize(), and vpArray2D< double >::rowNum.
Referenced by vpPoseFeatures::addFeatureSegment(), vpColVector::cross(), vpFeatureVanishingPoint::interaction(), vpFeatureEllipse::interaction(), vpFeatureSegment::interaction(), vpGenericFeature::interaction(), vpFeaturePoint::interaction(), vpFeatureMoment::interaction(), vpFeatureLine::interaction(), vpFeaturePoint3D::interaction(), vpFeatureThetaU::interaction(), vpFeaturePointPolar::interaction(), vpFeatureTranslation::interaction(), vpColVector::resize(), vpLinProg::rowReduction(), vpMatrix::stack(), vpColVector::stackMatrices(), and vpMatrix::stackMatrices().
|
inherited |
Stack row vector r at the end of the current matrix, or copy if the matrix has no dimensions: this = [ this r ]^T.
Here an example for a robot velocity log :
Definition at line 5910 of file vpMatrix.cpp.
References vpArray2D< double >::colNum, vpArray2D< double >::data, vpArray2D< Type >::data, vpException::dimensionError, vpArray2D< Type >::getCols(), vpArray2D< double >::resize(), vpArray2D< double >::rowNum, vpArray2D< double >::size(), and vpArray2D< Type >::size().
|
inherited |
Stack column vector c at the right of the current matrix, or copy if the matrix has no dimensions: this = [ this c ].
Here an example for a robot velocity log matrix:
Here the log matrix has size 6 rows by 100 columns.
Definition at line 5950 of file vpMatrix.cpp.
References vpArray2D< double >::colNum, vpArray2D< Type >::data, vpArray2D< double >::data, vpException::dimensionError, vpArray2D< Type >::getRows(), vpArray2D< double >::resize(), vpArray2D< double >::rowNum, vpArray2D< double >::rowPtrs, and vpArray2D< Type >::size().
Stack matrix B to the end of matrix A and return the resulting matrix [ A B ]^T
A | : Upper matrix. |
B | : Lower matrix. |
Definition at line 5333 of file vpMatrix.cpp.
References vpMatrix::stack().
|
staticinherited |
Stack row vector r to matrix A and return the resulting matrix [ A r ]^T
A | : Upper matrix. |
r | : Lower row vector. |
Definition at line 5397 of file vpMatrix.cpp.
References vpMatrix::stack().
|
staticinherited |
Stack column vector c to matrix A and return the resulting matrix [ A c ]
A | : Left matrix. |
c | : Right column vector. |
Definition at line 5436 of file vpMatrix.cpp.
References vpMatrix::stack().
Stack matrix B to the end of matrix A and return the resulting matrix in C.
A | : Upper matrix. |
B | : Lower matrix. |
C | : Stacked matrix C = [ A B ]^T |
Definition at line 5353 of file vpMatrix.cpp.
References vpArray2D< Type >::data, vpException::dimensionError, vpArray2D< Type >::getCols(), vpArray2D< Type >::getRows(), vpArray2D< Type >::resize(), and vpArray2D< Type >::size().
|
staticinherited |
Stack row vector r to the end of matrix A and return the resulting matrix in C.
A | : Upper matrix. |
r | : Lower row vector. |
C | : Stacked matrix C = [ A r ]^T |
Definition at line 5416 of file vpMatrix.cpp.
References vpArray2D< Type >::data, and vpMatrix::stack().
|
staticinherited |
Stack column vector c to the end of matrix A and return the resulting matrix in C.
A | : Left matrix. |
c | : Right column vector. |
C | : Stacked matrix C = [ A c ] |
Definition at line 5455 of file vpMatrix.cpp.
References vpArray2D< Type >::data, and vpMatrix::stack().
|
inherited |
Stacks columns of a matrix in a vector.
out | : a vpColVector. |
Definition at line 1715 of file vpMatrix.cpp.
References vpArray2D< double >::colNum, vpArray2D< Type >::colNum, vpArray2D< Type >::data, vpColVector::resize(), vpArray2D< Type >::rowNum, vpArray2D< double >::rowNum, and vpArray2D< double >::rowPtrs.
|
inherited |
Stacks columns of a matrix in a vector.
Definition at line 1732 of file vpMatrix.cpp.
References vpArray2D< double >::colNum, and vpArray2D< double >::rowNum.
|
inlineinherited |
Definition at line 786 of file vpMatrix.h.
|
inlinestaticinherited |
Definition at line 791 of file vpMatrix.h.
|
inlinestaticinherited |
Definition at line 796 of file vpMatrix.h.
References vpException::fatalError, and operator*().
|
staticinherited |
Definition at line 6915 of file vpMatrix.cpp.
References vpMatrix::stack().
|
staticinherited |
Definition at line 6917 of file vpMatrix.cpp.
References vpMatrix::stack().
|
staticinherited |
Definition at line 6905 of file vpMatrix.cpp.
References vpColVector::stack().
|
staticinherited |
Definition at line 6910 of file vpMatrix.cpp.
References vpColVector::stack().
|
inherited |
Stacks rows of a matrix in a vector
out | : a vpRowVector. |
Definition at line 1743 of file vpMatrix.cpp.
References vpArray2D< double >::colNum, vpArray2D< double >::data, vpArray2D< Type >::data, vpArray2D< Type >::getCols(), vpArray2D< Type >::getRows(), vpRowVector::resize(), and vpArray2D< double >::rowNum.
|
inherited |
Stacks rows of a matrix in a vector.
Definition at line 1754 of file vpMatrix.cpp.
References vpArray2D< double >::colNum, and vpArray2D< double >::rowNum.
|
staticinherited |
Operation C = A - B.
The result is placed in the third parameter C and not returned. A new matrix won't be allocated for every use of the function (speed gain if used many times with the same result matrix size).
vpException::dimensionError | If A and B matrices have not the same size. |
Definition at line 1465 of file vpMatrix.cpp.
References vpArray2D< Type >::colNum, vpException::dimensionError, vpArray2D< Type >::getCols(), vpArray2D< Type >::getRows(), vpArray2D< Type >::resize(), vpArray2D< Type >::rowNum, and vpArray2D< Type >::rowPtrs.
Referenced by vpMatrix::operator-().
|
staticinherited |
Operation C = A - B on column vectors.
The result is placed in the third parameter C and not returned. A new vector won't be allocated for every use of the function (speed gain if used many times with the same result matrix size).
vpException::dimensionError | If A and B vectors have not the same size. |
Definition at line 1432 of file vpMatrix.cpp.
References vpArray2D< Type >::colNum, vpException::dimensionError, vpArray2D< Type >::getCols(), vpArray2D< Type >::getRows(), vpColVector::resize(), vpArray2D< Type >::rowNum, and vpArray2D< Type >::rowPtrs.
|
inherited |
Return the sum of all the elements of the matrix.
Definition at line 1565 of file vpMatrix.cpp.
References vpArray2D< double >::colNum, vpArray2D< double >::rowNum, and vpArray2D< double >::rowPtrs.
Referenced by vpMatrix::expm(), and vpColVector::resize().
|
inherited |
Return the sum square of all the elements of the matrix .
Definition at line 6785 of file vpMatrix.cpp.
References vpArray2D< double >::colNum, vpArray2D< double >::rowNum, and vpArray2D< double >::rowPtrs.
Referenced by vpColVector::resize().
|
inherited |
Matrix singular value decomposition (SVD).
This function calls the first following function that is available:
If none of these previous 3rd parties is installed, we use by default svdLapack() with a Lapack built-in version.
Given matrix , this function computes it singular value decomposition such as
w | : Vector of singular values: . |
V | : Matrix . |
Here an example of SVD decomposition of a non square Matrix M.
Definition at line 2030 of file vpMatrix.cpp.
References vpException::fatalError, vpMatrix::svdEigen3(), vpMatrix::svdLapack(), and vpMatrix::svdOpenCV().
Referenced by vpHomography::computeDisplacement(), vpMatrix::cond(), vpHomography::DLT(), vpMbtFaceDepthNormal::estimatePlaneEquationSVD(), vpMatrix::inducedL2Norm(), vpMatrix::kernel(), vpMatrix::nullSpace(), and vpMatrix::svdEigen3().
|
inherited |
Singular value decomposition (SVD) using Eigen3 3rd party.
Given matrix , this function computes it singular value decomposition such as
w | : Vector of singular values: . |
V | : Matrix . |
Here an example of SVD decomposition of a non square Matrix M.
Definition at line 411 of file vpMatrix_svd.cpp.
References vpArray2D< double >::data, vpArray2D< Type >::data, vpArray2D< Type >::getCols(), vpArray2D< double >::getCols(), vpArray2D< Type >::getRows(), vpArray2D< double >::getRows(), vpArray2D< Type >::resize(), vpColVector::resize(), vpArray2D< Type >::size(), and vpMatrix::svd().
Referenced by vpMatrix::pseudoInverse(), and vpMatrix::svd().
|
inherited |
Singular value decomposition (SVD) using Lapack 3rd party.
Given matrix , this function computes it singular value decomposition such as
w | : Vector of singular values: . |
V | : Matrix . |
Here an example of SVD decomposition of a non square Matrix M.
Definition at line 240 of file vpMatrix_svd.cpp.
References vpArray2D< double >::colNum, vpArray2D< Type >::data, vpArray2D< double >::data, vpException::fatalError, vpArray2D< double >::getCols(), vpArray2D< double >::getRows(), vpArray2D< Type >::resize(), vpColVector::resize(), vpArray2D< double >::rowNum, and vpMatrix::transpose().
Referenced by vpMatrix::pseudoInverse(), and vpMatrix::svd().
|
inherited |
Singular value decomposition (SVD) using OpenCV 3rd party.
Given matrix , this function computes it singular value decomposition such as
w | : Vector of singular values: . |
V | : Matrix . |
Here an example of SVD decomposition of a non square Matrix M.
Definition at line 153 of file vpMatrix_svd.cpp.
References vpArray2D< double >::data, vpArray2D< Type >::data, vpArray2D< double >::getCols(), vpArray2D< double >::getRows(), vpArray2D< Type >::resize(), vpArray2D< double >::resize(), vpColVector::resize(), and vpMatrix::transpose().
Referenced by vpMatrix::pseudoInverse(), and vpMatrix::svd().
|
inherited |
Compute and return the transpose of the matrix.
Definition at line 464 of file vpMatrix.cpp.
References vpMatrix::transpose().
Referenced by vpLinProg::colReduction(), vpServo::computeControlLaw(), vpMatrix::computeCovarianceMatrix(), vpTemplateTracker::computeOptimalBrentGain(), vpMatrix::eigenValues(), vpMbtFaceDepthNormal::estimatePlaneEquationSVD(), vpKalmanFilter::filtering(), vpTemplateTrackerWarpHomographySL3::findWarp(), vpQuadProg::fromCanonicalCost(), vpImageFilter::getSobelKernelX(), vpRotationMatrix::mean(), vpHomogeneousMatrix::mean(), vpKalmanFilter::prediction(), vpColVector::resize(), vpLinProg::simplex(), vpMatrix::solveByQR(), vpColVector::vpColVector(), vpTemplateTrackerWarp::warp(), and vpVelocityTwistMatrix::~vpVelocityTwistMatrix().
|
inherited |
Compute and return the transpose of the matrix.
Definition at line 474 of file vpMatrix.cpp.
Referenced by vpLinProg::colReduction(), vpQuadProg::fromCanonicalCost(), vpColVector::resize(), vpLinProg::rowReduction(), vpLinProg::solveLP(), vpQuadProg::solveQPi(), vpMatrix::svdLapack(), vpMatrix::svdOpenCV(), and vpMatrix::t().
|
inherited |
Compute At the transpose of the matrix.
At | (output) : Resulting transpose matrix. |
Definition at line 486 of file vpMatrix.cpp.
References vpArray2D< double >::colNum, vpArray2D< Type >::data, vpArray2D< double >::data, vpArray2D< Type >::resize(), and vpArray2D< double >::rowNum.
Allow to multiply a scalar by a matrix.
Definition at line 1589 of file vpMatrix.cpp.
References vpArray2D< Type >::getCols(), vpArray2D< Type >::getRows(), and vpArray2D< Type >::resize().
|
related |
Enumeration of the operations applied on matrices in vpGEMM() function.
Operations are :
|
protectedinherited |
Number of columns in the array.
Definition at line 137 of file vpArray2D.h.
Referenced by vpMatrix::AAt(), vpMatrix::AtA(), vpColVector::clear(), vpMatrix::detByLU(), vpMatrix::detByLUEigen3(), vpMatrix::detByLULapack(), vpMatrix::detByLUOpenCV(), vpMatrix::diag(), vpMatrix::eigenValues(), vpMatrix::expm(), vpMatrix::eye(), vpMatrix::getDiag(), vpMatrix::getRow(), vpColVector::hadamard(), vpMatrix::hadamard(), vpMatrix::infinityNorm(), vpSubColVector::init(), vpSubRowVector::init(), init(), vpRowVector::insert(), vpMatrix::insert(), vpMatrix::inverseByCholeskyLapack(), vpMatrix::inverseByCholeskyOpenCV(), vpMatrix::inverseByLU(), vpMatrix::inverseByLUEigen3(), vpMatrix::inverseByLULapack(), vpMatrix::inverseByLUOpenCV(), vpMatrix::inverseByQRLapack(), vpMatrix::inverseTriangular(), vpRotationMatrix::operator*(), vpRowVector::operator*(), vpMatrix::operator*(), vpRotationMatrix::operator*=(), vpRowVector::operator*=(), vpMatrix::operator*=(), vpRowVector::operator+(), vpRowVector::operator+=(), vpMatrix::operator+=(), vpRowVector::operator,(), vpMatrix::operator,(), vpRowVector::operator-(), vpRowVector::operator-=(), vpMatrix::operator-=(), vpRowVector::operator/(), vpMatrix::operator/(), vpRowVector::operator/=(), vpMatrix::operator/=(), vpColVector::operator<<(), vpMatrix::operator<<(), vpSubRowVector::operator=(), operator=(), vpRowVector::operator=(), vpColVector::operator=(), vpMatrix::operator=(), vpRowVector::operator==(), vpColVector::operator==(), vpMatrix::qr(), vpMatrix::qrPivot(), vpRowVector::reshape(), vpMatrix::setIdentity(), vpMatrix::solveByQR(), vpMatrix::solveBySVD(), vpRowVector::stack(), vpMatrix::stack(), vpMatrix::stackColumns(), vpMatrix::stackRows(), vpRowVector::sum(), vpMatrix::sum(), vpRowVector::sumSquare(), vpMatrix::sumSquare(), vpMatrix::svdLapack(), vpRowVector::t(), vpMatrix::transpose(), vpColVector::vpColVector(), vpMatrix::vpMatrix(), and vpRowVector::vpRowVector().
|
inherited |
Address of the first element of the data array.
Definition at line 145 of file vpArray2D.h.
Referenced by vpMatrix::AAt(), vpMatrix::AtA(), vpQuaternionVector::buildFrom(), vpHomogeneousMatrix::buildFrom(), vpThetaUVector::buildFrom(), vpRzyzVector::buildFrom(), vpRxyzVector::buildFrom(), vpRzyxVector::buildFrom(), vpSubColVector::checkParentStatus(), vpSubRowVector::checkParentStatus(), checkParentStatus(), vpColVector::clear(), vpHomogeneousMatrix::convert(), vpMatrix::detByLUEigen3(), vpMatrix::detByLUOpenCV(), vpMatrix::expm(), vpThetaUVector::extract(), vpMatrix::frobeniusNorm(), vpMatrix::getRow(), vpThetaUVector::getTheta(), vpThetaUVector::getU(), vpColVector::hadamard(), vpMatrix::hadamard(), vpSubColVector::init(), vpSubRowVector::init(), init(), vpColVector::insert(), vpMatrix::insert(), vpMatrix::inverseByCholeskyOpenCV(), vpMatrix::inverseByLUEigen3(), vpMatrix::inverseByLUOpenCV(), vpTranslationVector::operator*(), vpRowVector::operator*(), vpHomography::operator*(), vpColVector::operator*(), vpMatrix::operator*(), vpRotationVector::operator,(), vpTranslationVector::operator,(), vpRotationMatrix::operator,(), vpHomogeneousMatrix::operator,(), vpRowVector::operator,(), vpColVector::operator,(), vpTranslationVector::operator-(), vpRowVector::operator-(), vpColVector::operator-(), vpTranslationVector::operator/(), vpRowVector::operator/(), vpHomography::operator/(), vpColVector::operator/(), vpHomography::operator/=(), vpRotationVector::operator<<(), vpTranslationVector::operator<<(), vpRotationMatrix::operator<<(), vpHomogeneousMatrix::operator<<(), vpRowVector::operator<<(), vpColVector::operator<<(), vpSubColVector::operator=(), vpSubRowVector::operator=(), vpQuaternionVector::operator=(), vpTranslationVector::operator=(), vpRotationMatrix::operator=(), vpRxyzVector::operator=(), vpRzyzVector::operator=(), vpRzyxVector::operator=(), vpRowVector::operator=(), vpThetaUVector::operator=(), vpColVector::operator=(), vpMatrix::operator=(), vpRowVector::operator==(), vpColVector::operator==(), vpColVector::operator[](), vpMatrix::qr(), vpMatrix::qrPivot(), vpRowVector::reshape(), vpColVector::reshape(), vpQuaternionVector::set(), vpMatrix::stack(), vpMatrix::stackRows(), vpColVector::sum(), vpColVector::sumSquare(), vpMatrix::svdEigen3(), vpMatrix::svdLapack(), vpMatrix::svdOpenCV(), vpRotationVector::t(), vpTranslationVector::t(), vpPoseVector::t(), vpRowVector::t(), vpColVector::t(), vpRotationVector::toStdVector(), vpRowVector::toStdVector(), vpColVector::toStdVector(), vpMatrix::transpose(), vpColVector::vpColVector(), vpHomogeneousMatrix::vpHomogeneousMatrix(), vpMatrix::vpMatrix(), vpRowVector::vpRowVector(), vpQuaternionVector::w(), vpQuaternionVector::x(), vpQuaternionVector::y(), vpQuaternionVector::z(), vpSubColVector::~vpSubColVector(), ~vpSubMatrix(), and vpSubRowVector::~vpSubRowVector().
|
protectedinherited |
Current array size (rowNum * colNum)
Definition at line 141 of file vpArray2D.h.
Referenced by vpColVector::clear(), vpMatrix::frobeniusNorm(), vpMatrix::hadamard(), vpMatrix::inducedL2Norm(), vpSubColVector::init(), vpSubRowVector::init(), init(), vpRotationVector::operator*(), vpTranslationVector::operator*(), vpTranslationVector::operator-(), vpTranslationVector::operator/(), vpRotationMatrix::operator=(), vpRxyzVector::operator=(), vpRzyzVector::operator=(), vpRzyxVector::operator=(), vpThetaUVector::operator=(), vpRowVector::operator=(), vpColVector::operator=(), vpMatrix::operator=(), vpRowVector::reshape(), vpColVector::reshape(), vpRotationVector::t(), vpColVector::vpColVector(), vpMatrix::vpMatrix(), and vpRowVector::vpRowVector().
|
protected |
Definition at line 76 of file vpSubMatrix.h.
Referenced by checkParentStatus(), init(), and operator=().
|
protected |
Definition at line 75 of file vpSubMatrix.h.
Referenced by checkParentStatus(), init(), and operator=().
|
protected |
Definition at line 74 of file vpSubMatrix.h.
Referenced by checkParentStatus(), init(), and operator=().
|
protectedinherited |
Number of rows in the array.
Definition at line 135 of file vpArray2D.h.
Referenced by vpMatrix::AAt(), vpMatrix::AtA(), vpColVector::clear(), vpMatrix::detByLU(), vpMatrix::detByLUEigen3(), vpMatrix::detByLULapack(), vpMatrix::detByLUOpenCV(), vpMatrix::diag(), vpMatrix::eigenValues(), vpMatrix::expm(), vpColVector::extract(), vpMatrix::eye(), vpMatrix::getCol(), vpMatrix::getDiag(), vpMatrix::getRow(), vpColVector::hadamard(), vpMatrix::hadamard(), vpColVector::infinityNorm(), vpMatrix::infinityNorm(), vpSubColVector::init(), vpSubRowVector::init(), init(), vpMatrix::insert(), vpMatrix::inverseByCholeskyLapack(), vpMatrix::inverseByCholeskyOpenCV(), vpMatrix::inverseByLU(), vpMatrix::inverseByLUEigen3(), vpMatrix::inverseByLULapack(), vpMatrix::inverseByLUOpenCV(), vpMatrix::inverseByQRLapack(), vpMatrix::inverseTriangular(), vpTranslationVector::operator*(), vpRotationMatrix::operator*(), vpHomogeneousMatrix::operator*(), vpColVector::operator*(), vpMatrix::operator*(), vpTranslationVector::operator*=(), vpRotationMatrix::operator*=(), vpColVector::operator*=(), vpMatrix::operator*=(), vpColVector::operator+(), vpColVector::operator+=(), vpMatrix::operator+=(), vpColVector::operator,(), vpColVector::operator-(), vpColVector::operator-=(), vpMatrix::operator-=(), vpColVector::operator/(), vpMatrix::operator/(), vpTranslationVector::operator/=(), vpColVector::operator/=(), vpMatrix::operator/=(), vpColVector::operator<<(), vpMatrix::operator<<(), vpSubColVector::operator=(), vpSubRowVector::operator=(), operator=(), vpTranslationVector::operator=(), vpRowVector::operator=(), vpColVector::operator=(), vpMatrix::operator=(), vpRowVector::operator==(), vpColVector::operator==(), vpMatrix::qr(), vpMatrix::qrPivot(), vpColVector::reshape(), vpMatrix::setIdentity(), vpMatrix::stack(), vpColVector::stack(), vpMatrix::stackColumns(), vpMatrix::stackRows(), vpColVector::sum(), vpMatrix::sum(), vpRotationVector::sumSquare(), vpTranslationVector::sumSquare(), vpColVector::sumSquare(), vpMatrix::sumSquare(), vpMatrix::svdLapack(), vpTranslationVector::t(), vpPoseVector::t(), vpColVector::t(), vpMatrix::transpose(), vpColVector::vpColVector(), vpMatrix::vpMatrix(), and vpRowVector::vpRowVector().
|
protectedinherited |
Address of the first element of each rows.
Definition at line 139 of file vpArray2D.h.
Referenced by vpMatrix::AAt(), vpColVector::clear(), vpMatrix::infinityNorm(), vpSubColVector::init(), vpSubRowVector::init(), 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<<(), vpMatrix::operator<<(), operator=(), vpRotationMatrix::operator=(), vpForceTwistMatrix::operator=(), vpVelocityTwistMatrix::operator=(), vpHomogeneousMatrix::operator=(), vpRowVector::operator=(), vpColVector::operator=(), vpMatrix::operator=(), vpMatrix::stack(), vpMatrix::stackColumns(), vpRowVector::sum(), vpMatrix::sum(), vpRotationVector::sumSquare(), vpTranslationVector::sumSquare(), vpRowVector::sumSquare(), vpMatrix::sumSquare(), vpColVector::vpColVector(), vpMatrix::vpMatrix(), and vpRowVector::vpRowVector().