- ScipyにはSparse matrix向けのQR分解がありません...
- Dense matrix向けはあります!が,todense()するとメモリで死んでしまいます.
- SuiteSparseを使うとできるけどpythonで使えない,
- Python wrapperのPySPQRを使う.
- Windows 10
- Microsoft Visual Studio 14.0 (SuiteSparseのコンパイルにいる)
# License: | |
# I hereby state this snippet is below "threshold of originality" where applicable (public domain). | |
# | |
# Otherwise, since initially posted on Stackoverflow, use as: | |
# CC-BY-SA 3.0 skyking, Glenn Maynard, Axel Huebl | |
# http://stackoverflow.com/a/31047259/2719194 | |
# http://stackoverflow.com/a/4858123/2719194 | |
import types |
#include <iostream> | |
using std::cout; | |
using std::endl; | |
#include <opencv2/opencv.hpp> | |
#include "opencv_lib.hpp" | |
#include <cstdint> | |
#include <cstdbool> | |
#include "Eigen/Dense" |