Skip to content

Instantly share code, notes, and snippets.

@ssylvan
Created October 4, 2015 21:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssylvan/916c837d2b2dd67d4218 to your computer and use it in GitHub Desktop.
Save ssylvan/916c837d2b2dd67d4218 to your computer and use it in GitHub Desktop.
Eigen::SparseMatrix<float> A(numRows, numCols);
Eigen::SparseVector<float> r(numCols);
A.row(0) = r;
// Comment the last line out, and no compiler errors.
// Leave it in and get errors about missing resize:
// eigen\src\sparsecore\sparsematrixbase.h(209): error C2039: 'resize': is not a member of 'Eigen::Block<Derived,1,-1,false>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment