diff options
author | Gael Guennebaud <g.gael@free.fr> | 2018-09-21 11:51:49 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2018-09-21 11:51:49 +0200 |
commit | a488d59787d25337fd71bcc994d1c2c6ab011731 (patch) | |
tree | 2ac09b50a43bf7586f8df8ac0c069902e326773b /doc/examples/Tutorial_simple_example_dynamic_size.cpp | |
parent | 47720e797012f6ef2f50da1f0e79fdc4f16e60a1 (diff) | |
parent | 3ec29859146f33e323ebd6d41e46acda63dffcef (diff) |
merge with default Eigen
Diffstat (limited to 'doc/examples/Tutorial_simple_example_dynamic_size.cpp')
-rw-r--r-- | doc/examples/Tutorial_simple_example_dynamic_size.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/examples/Tutorial_simple_example_dynamic_size.cpp b/doc/examples/Tutorial_simple_example_dynamic_size.cpp index 0f0280e0e..defcb1ee4 100644 --- a/doc/examples/Tutorial_simple_example_dynamic_size.cpp +++ b/doc/examples/Tutorial_simple_example_dynamic_size.cpp @@ -10,7 +10,7 @@ int main() MatrixXi m(size,size+1); // a (size)x(size+1)-matrix of int's for (int j=0; j<m.cols(); ++j) // loop over columns for (int i=0; i<m.rows(); ++i) // loop over rows - m(i,j) = i+j*m.rows(); // to access matrix coefficients, + m(i,j) = i+j*size; // to access matrix coefficients, // use operator()(int,int) std::cout << m << "\n\n"; } |