Navigation
API > API/Runtime > API/Runtime/ChaosCore > API/Runtime/ChaosCore/Chaos > API/Runtime/ChaosCore/Chaos/Chaos__PolarDecomposition
References
| Module | ChaosCore |
| Header | /Engine/Source/Runtime/Experimental/ChaosCore/Public/Chaos/ImplicitQRSVD.h |
| Include | #include "Chaos/ImplicitQRSVD.h" |
namespace Chaos
{
template<class T>
void Chaos&58;&58;PolarDecomposition
&40;
const PMatrix< T, 2, 2 > & A,
GivensRotation< T > & R,
PMatrix< T, 2, 2 > & S_Sym
&41;
}
Remarks
Whole matrix S is stored since its faster to calculate due to simd vectorization Polar guarantees negative sign is on the small magnitude singular value. S is guaranteed to be the closest one to identity. R is guaranteed to be the closest rotation to A.
Parameters
| Name | Description |
|---|---|
| A | matrix. |
| R | Robustly a rotation matrix in givens form |
| S_Sym | Symmetric. Whole matrix is stored |