Skip to content
2x2 SVD of a matrix (Singular Value Decomposition) (C++)
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
LICENSE
README.md

README.md

2x2 SVD of a matrix (Singular Value Decomposition) (C++) inspired from Eigen.

(MPL 2.0-license)

Buy me a coffeeYou can buy me a coffee if you want to support o(^◇^)o.

Usage

     #include "svd_2x2.hpp"
     Tbx::Mat2 M( a, b,
                  c, d);
     // Compute full svd of M 
     Tbx::SVD_2x2 svd(M);

     // Retrieve M = U * S * Vt
     Tbx::Mat2 Vt = svd.matrix_v().transpose();
     Tbx::Mat2 U = svd.matrix_u();
     Tbx::Vec2 = svd.singular_values(); // Singular values diagonal matrix as a simple vector.
You can’t perform that action at this time.