Visual Servoing Platform  version 3.2.0 under development (2018-10-19)
vpRotationMatrix Class Reference

#include <visp3/core/vpRotationMatrix.h>

+ Inheritance diagram for vpRotationMatrix:

Public Member Functions

 vpRotationMatrix ()
 
 vpRotationMatrix (const vpRotationMatrix &R)
 
 vpRotationMatrix (const vpHomogeneousMatrix &M)
 
 vpRotationMatrix (const vpThetaUVector &r)
 
 vpRotationMatrix (const vpPoseVector &p)
 
 vpRotationMatrix (const vpRzyzVector &r)
 
 vpRotationMatrix (const vpRxyzVector &r)
 
 vpRotationMatrix (const vpRzyxVector &r)
 
 vpRotationMatrix (const vpQuaternionVector &q)
 
 vpRotationMatrix (const vpMatrix &R)
 
 vpRotationMatrix (const double tux, const double tuy, const double tuz)
 
virtual ~vpRotationMatrix ()
 
vpRotationMatrix buildFrom (const vpHomogeneousMatrix &M)
 
vpRotationMatrix buildFrom (const vpThetaUVector &v)
 
vpRotationMatrix buildFrom (const vpPoseVector &p)
 
vpRotationMatrix buildFrom (const vpRzyzVector &v)
 
vpRotationMatrix buildFrom (const vpRxyzVector &v)
 
vpRotationMatrix buildFrom (const vpRzyxVector &v)
 
vpRotationMatrix buildFrom (const vpQuaternionVector &q)
 
vpRotationMatrix buildFrom (const double tux, const double tuy, const double tuz)
 
void eye ()
 
vpColVector getCol (const unsigned int j) const
 
vpThetaUVector getThetaUVector ()
 
vpRotationMatrix inverse () const
 
void inverse (vpRotationMatrix &R) const
 
bool isARotationMatrix () const
 
vpRotationMatrixoperator= (const vpRotationMatrix &R)
 
vpRotationMatrixoperator= (const vpMatrix &M)
 
vpTranslationVector operator* (const vpTranslationVector &tv) const
 
vpRotationMatrix operator* (const vpRotationMatrix &R) const
 
vpMatrix operator* (const vpMatrix &M) const
 
vpColVector operator* (const vpColVector &v) const
 
vpRotationMatrix operator* (const double x) const
 
vpRotationMatrixoperator*= (const double x)
 
void printVector ()
 
void resize (const unsigned int nrows, const unsigned int ncols, const bool flagNullify=true)
 
vpRotationMatrix t () const
 
Deprecated functions
vp_deprecated void init ()
 
vp_deprecated void setIdentity ()
 
Inherited functionalities from vpArray2D
unsigned int getCols () const
 
double getMaxValue () const
 
double getMinValue () const
 
unsigned int getRows () const
 
unsigned int size () const
 
void resize (const unsigned int nrows, const unsigned int ncols, const bool flagNullify=true, const bool recopy_=true)
 
double * operator[] (unsigned int i)
 
double * operator[] (unsigned int i) const
 
vpArray2D< double > hadamard (const vpArray2D< double > &m) const
 

Static Public Member Functions

static vpRotationMatrix mean (const std::vector< vpHomogeneousMatrix > &vec_M)
 
static vpRotationMatrix mean (const std::vector< vpRotationMatrix > &vec_R)
 
Inherited I/O from vpArray2D with Static Public Member Functions
static bool load (const std::string &filename, vpArray2D< double > &A, const bool binary=false, char *header=NULL)
 
static bool loadYAML (const std::string &filename, vpArray2D< double > &A, char *header=NULL)
 
static bool save (const std::string &filename, const vpArray2D< double > &A, const bool binary=false, const char *header="")
 
static bool saveYAML (const std::string &filename, const vpArray2D< double > &A, const char *header="")
 

Public Attributes

double * data
 

Protected Attributes

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

Related Functions

(Note that these are not member functions.)

enum  vpGEMMmethod
 

Detailed Description

Implementation of a rotation matrix and operations on such kind of matrices.

The vpRotationMatrix considers the particular case of a rotation matrix.

The vpRotationMatrix class is derived from vpArray2D<double>.

Examples:
AROgreBasic.cpp, exponentialMap.cpp, HelloWorldOgre.cpp, homographyHartleyDLT2DObject.cpp, homographyHLM2DObject.cpp, homographyHLM3DObject.cpp, homographyRansac2DObject.cpp, manGeometricFeatures.cpp, mbot-apriltag-2D-half-vs.cpp, mbot-apriltag-ibvs.cpp, mbot-apriltag-pbvs.cpp, servoAfma6FourPoints2DCamVelocityInteractionCurrent.cpp, servoAfma6FourPoints2DCamVelocityInteractionDesired.cpp, servoSimu3D_cdMc_CamVelocityWithoutVpServo.cpp, servoSimu3D_cMcd_CamVelocityWithoutVpServo.cpp, servoViper650FourPoints2DArtVelocityInteractionCurrent.cpp, servoViper650FourPoints2DCamVelocityInteractionCurrent-SR300.cpp, servoViper650FourPoints2DCamVelocityInteractionCurrent.cpp, servoViper850FourPoints2DArtVelocityInteractionCurrent.cpp, servoViper850FourPoints2DCamVelocityInteractionCurrent.cpp, servoViper850FourPointsKinect.cpp, testDisplacement.cpp, testMatrix.cpp, testPoseVector.cpp, testRobotAfma6Pose.cpp, testRobotViper650-frames.cpp, testRobotViper850-frames.cpp, testRobotViper850.cpp, testRobotViper850Pose.cpp, testTwistMatrix.cpp, testViper650.cpp, testViper850.cpp, testVirtuoseHapticBox.cpp, tutorial-homography-from-points.cpp, tutorial-ibvs-4pts-ogre-tracking.cpp, tutorial-ibvs-4pts-wireframe-robot-viper.cpp, tutorial-simu-pioneer-continuous-gain-adaptive.cpp, tutorial-simu-pioneer-continuous-gain-constant.cpp, tutorial-simu-pioneer-pan.cpp, and tutorial-simu-pioneer.cpp.

Definition at line 71 of file vpRotationMatrix.h.

Constructor & Destructor Documentation

vpRotationMatrix::vpRotationMatrix ( )

Default constructor that initialise a 3-by-3 rotation matrix to identity.

Definition at line 324 of file vpRotationMatrix.cpp.

References eye().

vpRotationMatrix::vpRotationMatrix ( const vpRotationMatrix M)

Copy contructor that construct a 3-by-3 rotation matrix from another rotation matrix.

Definition at line 330 of file vpRotationMatrix.cpp.

vpRotationMatrix::vpRotationMatrix ( const vpHomogeneousMatrix M)
explicit

Construct a 3-by-3 rotation matrix from an homogeneous matrix.

Definition at line 334 of file vpRotationMatrix.cpp.

References buildFrom().

vpRotationMatrix::vpRotationMatrix ( const vpThetaUVector tu)
explicit

Construct a 3-by-3 rotation matrix from $ \theta {\bf u}$ angle representation.

Definition at line 340 of file vpRotationMatrix.cpp.

References buildFrom().

vpRotationMatrix::vpRotationMatrix ( const vpPoseVector p)
explicit

Construct a 3-by-3 rotation matrix from a pose vector.

Definition at line 345 of file vpRotationMatrix.cpp.

References buildFrom().

vpRotationMatrix::vpRotationMatrix ( const vpRzyzVector euler)
explicit

Construct a 3-by-3 rotation matrix from $ R(z,y,z) $ Euler angle representation.

Definition at line 351 of file vpRotationMatrix.cpp.

References buildFrom().

vpRotationMatrix::vpRotationMatrix ( const vpRxyzVector Rxyz)
explicit

Construct a 3-by-3 rotation matrix from $ R(x,y,z) $ Euler angle representation.

Definition at line 357 of file vpRotationMatrix.cpp.

References buildFrom().

vpRotationMatrix::vpRotationMatrix ( const vpRzyxVector Rzyx)
explicit

Construct a 3-by-3 rotation matrix from $ R(z,y,x) $ Euler angle representation.

Definition at line 363 of file vpRotationMatrix.cpp.

References buildFrom().

vpRotationMatrix::vpRotationMatrix ( const vpQuaternionVector q)
explicit

Construct a 3-by-3 rotation matrix from quaternion angle representation.

Definition at line 382 of file vpRotationMatrix.cpp.

References buildFrom().

vpRotationMatrix::vpRotationMatrix ( const vpMatrix R)
explicit

Construct a 3-by-3 rotation matrix from a matrix that contains values corresponding to a rotation matrix.

Definition at line 368 of file vpRotationMatrix.cpp.

vpRotationMatrix::vpRotationMatrix ( const double  tux,
const double  tuy,
const double  tuz 
)

Construct a 3-by-3 rotation matrix from $ \theta {\bf u}=(\theta u_x, \theta u_y, \theta u_z)^T$ angle representation.

Definition at line 374 of file vpRotationMatrix.cpp.

References buildFrom().

virtual vpRotationMatrix::~vpRotationMatrix ( )
inlinevirtual

Destructor.

Definition at line 88 of file vpRotationMatrix.h.

References operator*(), and vpArray2D< Type >::operator=().

Member Function Documentation

vpRotationMatrix vpRotationMatrix::buildFrom ( const vpThetaUVector v)

Transform a $ \theta {\bf u}$ angle representation into a rotation matrix.

The rotation is computed using :

\[ R = \cos{ \theta} \; {I}_{3} + (1 - \cos{ \theta}) \; u u^{T} + \sin{ \theta} \; [u]_\times \]

Definition at line 457 of file vpRotationMatrix.cpp.

References vpMath::mcosc(), and vpMath::sinc().

vpRotationMatrix vpRotationMatrix::buildFrom ( const vpPoseVector p)

Build a rotation matrix from a pose vector.

See also
buildFrom(const vpThetaUVector &)

Definition at line 503 of file vpRotationMatrix.cpp.

References buildFrom().

vpRotationMatrix vpRotationMatrix::buildFrom ( const vpRzyzVector v)

Transform a vector representing the Euler angle into a rotation matrix. Rzyz( $ \phi, \theta , \psi $) = Rot( $ z,\phi $) Rot( $ y,\theta $) Rot( $ z,\psi $)

Definition at line 516 of file vpRotationMatrix.cpp.

vpRotationMatrix vpRotationMatrix::buildFrom ( const vpRxyzVector v)

Transform a vector representing the Rxyz angle into a rotation matrix. Rxyz( $ \phi,\theta, \psi $) = Rot( $ x, \psi $) Rot( $ y, \theta $ ) Rot( $ z,\phi $)

Definition at line 548 of file vpRotationMatrix.cpp.

vpRotationMatrix vpRotationMatrix::buildFrom ( const vpRzyxVector v)

Transform a vector representing the Rzyx angle into a rotation matrix. Rxyz( $ \phi, \theta , \psi $) = Rot( $ z, \psi $) Rot( $ y, \theta $)Rot( $ x, \phi $)

Definition at line 578 of file vpRotationMatrix.cpp.

vpRotationMatrix vpRotationMatrix::buildFrom ( const vpQuaternionVector q)

Construct a 3-by-3 rotation matrix from a quaternion representation.

Definition at line 618 of file vpRotationMatrix.cpp.

References vpArray2D< Type >::getCols(), vpArray2D< Type >::getRows(), operator*(), vpQuaternionVector::w(), vpQuaternionVector::x(), vpQuaternionVector::y(), and vpQuaternionVector::z().

vpRotationMatrix vpRotationMatrix::buildFrom ( const double  tux,
const double  tuy,
const double  tuz 
)

Construct a 3-by-3 rotation matrix from $ \theta {\bf u}=(\theta u_x, \theta u_y, \theta u_z)^T$ angle representation.

Definition at line 608 of file vpRotationMatrix.cpp.

References buildFrom().

void vpRotationMatrix::eye ( )

Initialize the rotation matrix as identity.

See also
setIdentity()

Definition at line 64 of file vpRotationMatrix.cpp.

Referenced by vpHomography::computeDisplacement(), setIdentity(), and vpRotationMatrix().

vpColVector vpRotationMatrix::getCol ( const unsigned int  j) const

Extract a column vector from a rotation matrix.

Warning
All the indexes start from 0 in this function.
Parameters
j: Index of the column to extract. If j=0, the first column is extracted.
Returns
The extracted column vector.

The following example shows how to use this function:

#include <visp3/core/vpColVector.h>
#include <visp3/core/vpRotationMatrix.h>
int main()
{
vpColVector r = R.getCol(2);
std::cout << "Last column: \n" << r << std::endl;
}

It produces the following output:

Last column:
0
0
1
Examples:
testVirtuoseHapticBox.cpp.

Definition at line 693 of file vpRotationMatrix.cpp.

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

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

Return the array max value.

Examples:
servoMomentImage.cpp, testArray2D.cpp, and testMatrix.cpp.
double vpArray2D< double >::getMinValue ( ) const
inherited

Return the array min value.

Examples:
servoMomentImage.cpp, testArray2D.cpp, and testMatrix.cpp.
vpThetaUVector vpRotationMatrix::getThetaUVector ( )

Return the $\theta {\bf u}$ vector that corresponds to the rotation matrix.

Definition at line 659 of file vpRotationMatrix.cpp.

References vpThetaUVector::buildFrom().

vpArray2D<double > vpArray2D< double >::hadamard ( const vpArray2D< double > &  m) const
inherited

Compute the Hadamard product (element wise matrix multiplication).

Parameters
m: Second matrix;
Returns
m1.hadamard(m2) The Hadamard product : $ m1 \circ m2 = (m1 \circ m2)_{i,j} = (m1)_{i,j} (m2)_{i,j} $
Examples:
testArray2D.cpp.
vp_deprecated void vpRotationMatrix::init ( )
inline
Deprecated:
Provided only for compat with previous releases. This function does nothing.

Definition at line 154 of file vpRotationMatrix.h.

References operator*().

vpRotationMatrix vpRotationMatrix::inverse ( ) const

Return the rotation matrix inverse which is also the transpose of the rotation matrix.

See also
t()
Examples:
servoSimu3D_cdMc_CamVelocityWithoutVpServo.cpp, testVirtuoseAfma6.cpp, and testVirtuoseHapticBox.cpp.

Definition at line 408 of file vpRotationMatrix.cpp.

References t().

Referenced by vpViper::get_eJe(), and inverse().

void vpRotationMatrix::inverse ( vpRotationMatrix R) const

Inverse the rotation matrix.

Parameters
R(output): Inverted rotation matrix.
#include <visp3/core/vpRotationMatrix.h>
int main()
{
// ... Update rotation matrix R
// Compute the inverse in Rinv
R.inverse(Rinv);
}

Definition at line 432 of file vpRotationMatrix.cpp.

References inverse().

bool vpRotationMatrix::isARotationMatrix ( ) const

Test if the rotation matrix is really a rotation matrix.

Definition at line 286 of file vpRotationMatrix.cpp.

References vpMath::sqr(), and t().

Referenced by vpHomography::computeDisplacement(), vpHomogeneousMatrix::isAnHomogeneousMatrix(), and operator=().

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

Load a matrix from a file.

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

Definition at line 316 of file vpArray2D.h.

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

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

Load an array from a YAML-formatted file.

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

Definition at line 424 of file vpArray2D.h.

References vpArray2D< Type >::resize().

vpRotationMatrix vpRotationMatrix::mean ( const std::vector< vpHomogeneousMatrix > &  vec_M)
static

Compute the Euclidean mean of the rotation matrices extracted from a vector of homogeneous matrices following Moakher's method (SIAM 2002).

Parameters
[in]vec_M: Set of homogeneous matrices.
Returns
The Euclidian mean of the rotation matrices.
See also
vpTranslationVector::mean()

Definition at line 712 of file vpRotationMatrix.cpp.

References vpMatrix::pseudoInverse(), and vpMatrix::t().

vpRotationMatrix vpRotationMatrix::mean ( const std::vector< vpRotationMatrix > &  vec_R)
static

Compute the Euclidean mean of the rotation matrices following Moakher's method (SIAM 2002).

Parameters
[in]vec_R: Set of rotation matrices.
Returns
The Euclidian mean of the rotation matrices.
See also
vpTranslationVector::mean()

Definition at line 749 of file vpRotationMatrix.cpp.

References vpMatrix::pseudoInverse(), and vpMatrix::t().

vpTranslationVector vpRotationMatrix::operator* ( const vpTranslationVector tv) const

Multiply a rotation matrix by a translation vector and return the resulting translation vector.

Definition at line 237 of file vpRotationMatrix.cpp.

References vpArray2D< double >::rowPtrs.

Referenced by buildFrom().

vpRotationMatrix vpRotationMatrix::operator* ( const vpRotationMatrix R) const

Compute the product between two rotation matrices.

Definition at line 137 of file vpRotationMatrix.cpp.

References vpArray2D< double >::rowPtrs, and vpArray2D< Type >::rowPtrs.

vpMatrix vpRotationMatrix::operator* ( const vpMatrix M) const

Operator that allows to multiply a rotation matrix by a 3-by-3 matrix. Allows for example to multiply a rotation matrix by a skew matrix.

Exceptions
vpException::dimensionError: If M is not a 3-by-3 dimension matrix.

Definition at line 165 of file vpRotationMatrix.cpp.

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

vpColVector vpRotationMatrix::operator* ( const vpColVector v) const

Operator that allows to multiply a rotation matrix by a 3 dimension column vector.

Parameters
v: Three dimension column vector.
Returns
The product of the rotation matrix by the column vector
Exceptions
vpException::dimensionErrorIf the column vector v is not a 3 dimension vector.

The code below shows how to use this operator.

#include <visp3/core/vpColVector.h>
#include <visp3/core/vpRotationMatrix.h>
int main()
{
vpColVector p1(3), p2(3);
p2 = R * p1;
return 0;
}

Definition at line 213 of file vpRotationMatrix.cpp.

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

vpRotationMatrix vpRotationMatrix::operator* ( const double  x) const

Operator that allows to multiply all the elements of a rotation matrix by a scalar.

Definition at line 257 of file vpRotationMatrix.cpp.

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

vpRotationMatrix & vpRotationMatrix::operator*= ( const double  x)

Operator that allows to multiply all the elements of a rotation matrix by a scalar.

Definition at line 272 of file vpRotationMatrix.cpp.

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

vpRotationMatrix & vpRotationMatrix::operator= ( const vpRotationMatrix R)

Set the current rotation matrix from a rotation matrix R.

Parameters
R: Rotation matrix.

Definition at line 85 of file vpRotationMatrix.cpp.

References vpArray2D< double >::rowPtrs, and vpArray2D< Type >::rowPtrs.

vpRotationMatrix & vpRotationMatrix::operator= ( const vpMatrix M)

Converts a 3-by-3 matrix into a rotation matrix.

Parameters
M: Input matrix.
vpMatrix M(3, 3);
M.eye()
Exceptions
vpException::fatalErrorIf the input matrix is not a rotation matrix.
See also
isARotationMatrix()

Definition at line 112 of file vpRotationMatrix.cpp.

References vpException::dimensionError, vpException::fatalError, vpArray2D< Type >::getCols(), vpArray2D< Type >::getRows(), and isARotationMatrix().

double * vpArray2D< double >::operator[] ( unsigned int  i)
inlineinherited

Set element $A_{ij} = x$ using A[i][j] = x.

Definition at line 262 of file vpArray2D.h.

double * vpArray2D< double >::operator[] ( unsigned int  i) const
inlineinherited

Get element $x = A_{ij}$ using x = A[i][j].

Definition at line 264 of file vpArray2D.h.

void vpRotationMatrix::printVector ( )

Print to std::cout the rotation matrix as a $ \theta {\bf u} $ angle representation vector.

Definition at line 438 of file vpRotationMatrix.cpp.

void vpRotationMatrix::resize ( const unsigned int  nrows,
const unsigned int  ncols,
const bool  flagNullify = true 
)
inline

This function is not applicable to a rotation matrix that is always a 3-by-3 matrix.

Exceptions
vpException::fatalErrorWhen this function is called.

Definition at line 131 of file vpRotationMatrix.h.

References vpException::fatalError.

void vpArray2D< double >::resize ( const unsigned int  nrows,
const unsigned int  ncols,
const bool  flagNullify = true,
const bool  recopy_ = true 
)
inlineinherited

Set the size of the array and initialize all the values to zero.

Parameters
nrows: number of rows.
ncols: number of column.
flagNullify: if true, then the array is re-initialized to 0 after resize. If false, the initial values from the common part of the array (common part between old and new version of the array) are kept. Default value is true.
recopy_: if true, will perform an explicit recopy of the old data if needed and if flagNullify is set to false.
Examples:
testArray2D.cpp, testMatrix.cpp, testMatrixDeterminant.cpp, testMatrixInverse.cpp, testMatrixPseudoInverse.cpp, and testSvd.cpp.

Definition at line 171 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=(), and vpMatrix::stack().

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

Save a matrix to a file.

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

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

See also
load()

Definition at line 506 of file vpArray2D.h.

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

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

Save an array in a YAML-formatted file.

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

Here is an example of outputs.

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

Content of matrix.yml:

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

Content of matrixIndent.yml:

example:
- a YAML-formatted header
- with inner indentation
rows: 3
cols: 4
- [0, 0, 0, 0]
- [0, 0, 0, 0]
- [0, 0, 0, 0]
See also
loadYAML()
Examples:
tutorial-chessboard-pose.cpp, and tutorial-franka-acquire-calib-data.cpp.

Definition at line 595 of file vpArray2D.h.

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

void vpRotationMatrix::setIdentity ( )
Deprecated:
You should rather use eye().
Deprecated:
You should rather use eye().

Initializes the rotation matrix as identity.

See also
eye()

Definition at line 786 of file vpRotationMatrix.cpp.

References eye().

vpRotationMatrix vpRotationMatrix::t ( ) const

Return the rotation matrix transpose which is also the inverse of the rotation matrix.

See also
inverse()

Definition at line 390 of file vpRotationMatrix.cpp.

Referenced by vpHomography::computeDisplacement(), vpVelocityTwistMatrix::extract(), inverse(), vpHomogeneousMatrix::inverse(), vpVelocityTwistMatrix::inverse(), isARotationMatrix(), and vpSimulatorAfma6::setPosition().

Friends And Related Function Documentation

enum vpGEMMmethod
related

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

Operations are :

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

Definition at line 57 of file vpGEMM.h.

Member Data Documentation

unsigned int vpArray2D< double >::colNum
protectedinherited

Number of columns in the array.

Definition at line 76 of file vpArray2D.h.

Referenced by vpMatrix::AAt(), vpMatrix::AtA(), vpColVector::clear(), vpMatrix::detByLU(), vpMatrix::diag(), vpMatrix::eigenValues(), vpMatrix::expm(), vpMatrix::eye(), vpMatrix::getRow(), vpColVector::hadamard(), vpMatrix::hadamard(), vpMatrix::infinityNorm(), vpSubColVector::init(), vpSubRowVector::init(), vpSubMatrix::init(), vpRowVector::insert(), vpMatrix::insert(), vpMatrix::inverseByCholesky(), vpMatrix::inverseTriangular(), operator*(), vpRowVector::operator*(), vpMatrix::operator*(), operator*=(), vpRowVector::operator*=(), vpMatrix::operator*=(), vpRowVector::operator+(), vpRowVector::operator+=(), vpMatrix::operator+=(), vpRowVector::operator-(), vpRowVector::operator-=(), vpMatrix::operator-=(), vpRowVector::operator/(), vpMatrix::operator/(), vpRowVector::operator/=(), vpMatrix::operator/=(), vpMatrix::operator<<(), vpColVector::operator<<(), vpSubRowVector::operator=(), vpSubMatrix::operator=(), vpRowVector::operator=(), vpColVector::operator=(), vpMatrix::operator=(), vpColVector::operator==(), vpMatrix::qr(), vpMatrix::qrPivot(), vpRowVector::reshape(), vpMatrix::setIdentity(), vpMatrix::solveByQR(), vpMatrix::solveBySVD(), vpMatrix::stack(), vpRowVector::stack(), vpMatrix::stackColumns(), vpMatrix::stackRows(), vpRowVector::sum(), vpMatrix::sum(), vpRowVector::sumSquare(), vpMatrix::sumSquare(), vpRowVector::t(), vpMatrix::t(), vpMatrix::transpose(), vpColVector::vpColVector(), and vpMatrix::vpMatrix().

double * vpArray2D< double >::data
inherited

Address of the first element of the data array.

Examples:
testArray2D.cpp, testDisplacement.cpp, testImageFilter.cpp, testMatrix.cpp, testPoseVector.cpp, testTranslationVector.cpp, and tutorial-matlab.cpp.

Definition at line 84 of file vpArray2D.h.

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

unsigned int vpArray2D< double >::rowNum
protectedinherited

Number of rows in the array.

Definition at line 74 of file vpArray2D.h.

Referenced by vpMatrix::AAt(), vpMatrix::AtA(), vpColVector::clear(), vpMatrix::detByLU(), vpMatrix::diag(), vpMatrix::eigenValues(), vpMatrix::expm(), vpColVector::extract(), vpMatrix::eye(), vpColVector::hadamard(), vpMatrix::hadamard(), vpColVector::infinityNorm(), vpMatrix::infinityNorm(), vpSubColVector::init(), vpSubRowVector::init(), vpSubMatrix::init(), vpMatrix::insert(), vpMatrix::inverseByCholesky(), vpMatrix::inverseTriangular(), operator*(), vpTranslationVector::operator*(), vpHomogeneousMatrix::operator*(), vpColVector::operator*(), vpMatrix::operator*(), operator*=(), vpTranslationVector::operator*=(), vpColVector::operator*=(), vpMatrix::operator*=(), vpColVector::operator+(), vpColVector::operator+=(), vpMatrix::operator+=(), vpColVector::operator-(), vpColVector::operator-=(), vpMatrix::operator-=(), vpColVector::operator/(), vpMatrix::operator/(), vpTranslationVector::operator/=(), vpColVector::operator/=(), vpMatrix::operator/=(), vpMatrix::operator<<(), vpColVector::operator<<(), vpSubColVector::operator=(), vpSubRowVector::operator=(), vpSubMatrix::operator=(), vpTranslationVector::operator=(), vpRowVector::operator=(), vpColVector::operator=(), vpMatrix::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(), vpTranslationVector::t(), vpPoseVector::t(), vpColVector::t(), vpMatrix::t(), vpMatrix::transpose(), vpColVector::vpColVector(), and vpMatrix::vpMatrix().