INVERSE

포스트: 1
Tags

Posts

1 post

C++에서 pseudo-inverse 구하기(Eigen)

찜질방|2017년 6월 27일

#include #include #include template _Matrix_Type_ pseudoInverse(const _Matrix_Type_ &a, double epsilon = std::numeric_limits ::epsilon()){ Eigen::JacobiSVD< _Matrix_Type_ > svd(a ,Eigen::ComputeThinU | Eigen::ComputeThinV); double tolerance = epsilon * std::max(a.cols(), a.rows()) *svd.sin