Skip to content

brainexcerpts/2x2_SVD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

2x2 SVD of a matrix (Singular Value Decomposition) (C++)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages