11 int main(
int argc,
char** argv)
14 std::cerr <<
"Error: expected one and only one argument.\n";
22 std::vector<T> coefficients;
27 A.setFromTriplets(coefficients.begin(), coefficients.end());
Eigen::SparseMatrix< double > SpMat
void buildProblem(std::vector< T > &coefficients, Eigen::VectorXd &b, int n)
int main(int argc, char **argv)
Eigen::Triplet< double > T
void saveAsBitmap(const Eigen::VectorXd &x, int n, const char *filename)
The matrix class, also used for vectors and row-vectors.
const Solve< Derived, Rhs > solve(const MatrixBase< Rhs > &b) const