Lines Matching refs:Eigen
1 #include <Eigen/Sparse>
5 typedef Eigen::SparseMatrix<double> SpMat; // declares a column-major sparse matrix type of double
6 typedef Eigen::Triplet<double> T;
9 Eigen::VectorXd& b, const Eigen::VectorXd& boundary)
19 void buildProblem(std::vector<T>& coefficients, Eigen::VectorXd& b, int n)
22 Eigen::ArrayXd boundary = Eigen::ArrayXd::LinSpaced(n, 0,M_PI).sin().pow(2);
37 void saveAsBitmap(const Eigen::VectorXd& x, int n, const char* filename)
39 Eigen::Array<unsigned char,Eigen::Dynamic,Eigen::Dynamic> bits = (x*255).cast<unsigned char>();