![]() |
Prusa Slicer 2.6.0
|
Rotation given by a cosine-sine pair. More...
#include <src/eigen/Eigen/src/Jacobi/Jacobi.h>
Public Types | |
| typedef NumTraits< Scalar >::Real | RealScalar |
Public Member Functions | |
| JacobiRotation () | |
| JacobiRotation (const Scalar &c, const Scalar &s) | |
| Scalar & | c () |
| Scalar | c () const |
| Scalar & | s () |
| Scalar | s () const |
| JacobiRotation | operator* (const JacobiRotation &other) |
| JacobiRotation | transpose () const |
| JacobiRotation | adjoint () const |
| template<typename Derived > | |
| bool | makeJacobi (const MatrixBase< Derived > &, Index p, Index q) |
| bool | makeJacobi (const RealScalar &x, const Scalar &y, const RealScalar &z) |
| void | makeGivens (const Scalar &p, const Scalar &q, Scalar *r=0) |
Protected Member Functions | |
| void | makeGivens (const Scalar &p, const Scalar &q, Scalar *r, internal::true_type) |
| void | makeGivens (const Scalar &p, const Scalar &q, Scalar *r, internal::false_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 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:
| typedef NumTraits<Scalar>::Real Eigen::JacobiRotation< Scalar >::RealScalar |
|
inline |
Default constructor without any initialization.
Referenced by Eigen::JacobiRotation< Scalar >::adjoint(), Eigen::JacobiRotation< Scalar >::operator*(), and Eigen::JacobiRotation< Scalar >::transpose().
Here is the caller graph for this function:
|
inline |
Construct a planar rotation from a cosine-sine pair (c, s).
|
inline |
Returns the adjoint transformation
References Eigen::JacobiRotation< Scalar >::JacobiRotation(), Eigen::JacobiRotation< Scalar >::m_c, and Eigen::JacobiRotation< Scalar >::m_s.
Referenced by Eigen::RealQZ< _MatrixType >::hessenbergTriangular(), Eigen::RealQZ< _MatrixType >::pushDownZero(), Eigen::ComplexSchur< _MatrixType >::reduceToTriangularForm(), Eigen::internal::svd_precondition_2x2_block_to_be_real< MatrixType, QRPreconditioner, true >::run(), Eigen::RealQZ< _MatrixType >::splitOffTwoRows(), Eigen::RealSchur< _MatrixType >::splitOffTwoRows(), and Eigen::RealQZ< _MatrixType >::step().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References Eigen::JacobiRotation< Scalar >::m_c.
Referenced by Eigen::MatrixBase< Homogeneous< MatrixType, _Direction > >::applyOnTheRight(), Eigen::internal::real_2x2_jacobi_svd(), Eigen::internal::svd_precondition_2x2_block_to_be_real< MatrixType, QRPreconditioner, true >::run(), and Eigen::internal::tridiagonal_qr_step().
Here is the caller graph for this function:
|
inline |
References Eigen::JacobiRotation< Scalar >::m_c.
|
protected |
References sqrt().
Here is the call graph for this function:
|
protected |
References sqrt().
Here is the call graph for this function:| void Eigen::JacobiRotation< Scalar >::makeGivens | ( | const Scalar & | p, |
| const Scalar & | q, | ||
| Scalar * | r = 0 |
||
| ) |
Makes *this as a Givens rotation G such that applying
The value of r is returned if r is not null (the default is null). Also note that G is built such that the cosine is always real.
Example:
Output:
This function implements the continuous Givens rotation generation algorithm found in Anderson (2000), Discontinuous Plane Rotations and the Symmetric Eigenvalue Problem. LAPACK Working Note 150, University of Tennessee, UT-CS-00-454, December 4, 2000.
Referenced by Eigen::RealQZ< _MatrixType >::hessenbergTriangular(), Eigen::internal::llt_rank_update_lower(), Eigen::RealQZ< _MatrixType >::pushDownZero(), Eigen::ComplexSchur< _MatrixType >::reduceToTriangularForm(), Eigen::RealQZ< _MatrixType >::splitOffTwoRows(), Eigen::RealSchur< _MatrixType >::splitOffTwoRows(), Eigen::RealQZ< _MatrixType >::step(), and Eigen::internal::tridiagonal_qr_step().
Here is the caller graph for this function:
|
inline |
Makes *this as a Jacobi rotation J such that applying J on both the right and left sides of the 2x2 selfadjoint matrix
Example:
Output:
Referenced by Eigen::internal::real_2x2_jacobi_svd().
Here is the caller graph for this function:| bool Eigen::JacobiRotation< Scalar >::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
References sqrt().
Here is the call graph for this function:
|
inline |
Concatenates two planar rotation
References Eigen::JacobiRotation< Scalar >::JacobiRotation(), Eigen::JacobiRotation< Scalar >::m_c, and Eigen::JacobiRotation< Scalar >::m_s.
Here is the call graph for this function:
|
inline |
References Eigen::JacobiRotation< Scalar >::m_s.
Referenced by Eigen::MatrixBase< Homogeneous< MatrixType, _Direction > >::applyOnTheRight(), Eigen::internal::real_2x2_jacobi_svd(), Eigen::internal::svd_precondition_2x2_block_to_be_real< MatrixType, QRPreconditioner, true >::run(), and Eigen::internal::tridiagonal_qr_step().
Here is the caller graph for this function:
|
inline |
References Eigen::JacobiRotation< Scalar >::m_s.
|
inline |
Returns the transposed transformation
References Eigen::JacobiRotation< Scalar >::JacobiRotation(), Eigen::JacobiRotation< Scalar >::m_c, and Eigen::JacobiRotation< Scalar >::m_s.
Referenced by Eigen::MatrixBase< Derived >::applyOnTheRight(), Eigen::RealQZ< _MatrixType >::compute(), Eigen::JacobiSVD< _MatrixType, QRPreconditioner >::compute(), and Eigen::internal::real_2x2_jacobi_svd().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
|
protected |