12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- #ifndef IGL_POLAR_DEC
- #define IGL_POLAR_DEC
- #include "igl_inline.h"
- #include <Eigen/Core>
- namespace igl
- {
- // Computes the polar decomposition (R,T) of a matrix A
- // Inputs:
- // A 3 by 3 matrix to be decomposed
- // Outputs:
- // R 3 by 3 orthonormal matrix part of decomposition
- // T 3 by 3 stretch matrix part of decomposition
- // U 3 by 3 left-singular vectors
- // S 3 by 1 singular values
- // V 3 by 3 right-singular vectors
- //
- //
- template <
- typename DerivedA,
- typename DerivedR,
- typename DerivedT,
- typename DerivedU,
- typename DerivedS,
- typename DerivedV>
- IGL_INLINE void polar_dec(
- const Eigen::PlainObjectBase<DerivedA> & A,
- Eigen::PlainObjectBase<DerivedR> & R,
- Eigen::PlainObjectBase<DerivedT> & T,
- Eigen::PlainObjectBase<DerivedU> & U,
- Eigen::PlainObjectBase<DerivedS> & S,
- Eigen::PlainObjectBase<DerivedV> & V);
- template <
- typename DerivedA,
- typename DerivedR,
- typename DerivedT>
- IGL_INLINE void polar_dec(
- const Eigen::PlainObjectBase<DerivedA> & A,
- Eigen::PlainObjectBase<DerivedR> & R,
- Eigen::PlainObjectBase<DerivedT> & T);
- }
- #ifdef IGL_HEADER_ONLY
- # include "polar_dec.cpp"
- #endif
- #endif
|