Rotation given by a cosine-sine pair. More...
#include <ForwardDeclarations.h>
Public Types | |
typedef NumTraits< Scalar >::Real | RealScalar |
Public Member Functions | |
EIGEN_DEVICE_FUNC JacobiRotation | adjoint () const |
EIGEN_DEVICE_FUNC Scalar & | c () |
EIGEN_DEVICE_FUNC Scalar | c () const |
EIGEN_DEVICE_FUNC | JacobiRotation () |
EIGEN_DEVICE_FUNC | JacobiRotation (const Scalar &c, const Scalar &s) |
EIGEN_DEVICE_FUNC void | makeGivens (const Scalar &p, const Scalar &q, Scalar *r=0) |
template<typename Derived > | |
EIGEN_DEVICE_FUNC bool | makeJacobi (const MatrixBase< Derived > &, Index p, Index q) |
EIGEN_DEVICE_FUNC bool | makeJacobi (const RealScalar &x, const Scalar &y, const RealScalar &z) |
template<typename Scalar > | |
EIGEN_DEVICE_FUNC bool | makeJacobi (const RealScalar &x, const Scalar &y, const RealScalar &z) |
EIGEN_DEVICE_FUNC JacobiRotation | operator* (const JacobiRotation &other) |
EIGEN_DEVICE_FUNC Scalar & | s () |
EIGEN_DEVICE_FUNC Scalar | s () const |
EIGEN_DEVICE_FUNC JacobiRotation | transpose () const |
Protected Member Functions | |
EIGEN_DEVICE_FUNC void | makeGivens (const Scalar &p, const Scalar &q, Scalar *r, internal::false_type) |
EIGEN_DEVICE_FUNC void | makeGivens (const Scalar &p, const Scalar &q, Scalar *r, internal::true_type) |
Protected Attributes | |
Scalar | m_c |
Scalar | m_s |
Rotation given by a cosine-sine pair.
\jacobi_module
This class represents a Jacobi or Givens rotation. This is a 2D rotation in the plane J
of angle defined by its cosine c
and sine s
as follow:
You can apply the respective counter-clockwise rotation to a column vector v
by applying its adjoint on the left: that translates to the following Eigen code:
Definition at line 283 of file ForwardDeclarations.h.
typedef NumTraits<Scalar>::Real Eigen::JacobiRotation::RealScalar |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
EIGEN_DEVICE_FUNC void Eigen::JacobiRotation::makeGivens | ( | const Scalar & | p, |
const Scalar & | q, | ||
Scalar * | r = 0 |
||
) |
|
inline |
Makes *this
as a Jacobi rotation J
such that applying J on both the right and left sides of the 2x2 selfadjoint matrix yields a diagonal matrix
Example:
Output:
EIGEN_DEVICE_FUNC bool Eigen::JacobiRotation::makeJacobi | ( | const RealScalar & | x, |
const Scalar & | y, | ||
const RealScalar & | z | ||
) |
EIGEN_DEVICE_FUNC bool Eigen::JacobiRotation::makeJacobi | ( | const RealScalar & | x, |
const Scalar & | y, | ||
const RealScalar & | z | ||
) |
Makes *this
as a Jacobi rotation J such that applying J on both the right and left sides of the selfadjoint 2x2 matrix yields a diagonal matrix
|
inline |
|
inline |
|
inline |
|
inline |