Skip to content

Instantly share code, notes, and snippets.

@jwpeterson
Created June 30, 2016 20:16
Show Gist options
  • Select an option

  • Save jwpeterson/00a3046058c814bd0de8ed27ef39a96a to your computer and use it in GitHub Desktop.

Select an option

Save jwpeterson/00a3046058c814bd0de8ed27ef39a96a to your computer and use it in GitHub Desktop.
#include <iostream>
#include <vector>
int main(int argc, const char * argv[])
{
typedef std::vector<std::vector<double>> Matrix;
Matrix matrix(100);
for (unsigned int row=0; row<matrix.size(); ++row)
matrix[row].resize(100);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment