diff options
author | Gael Guennebaud <g.gael@free.fr> | 2018-06-07 16:09:22 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2018-06-07 16:09:22 +0200 |
commit | c25034710ede8eb7e177e8a7426817b6a29e5440 (patch) | |
tree | 2efc3b98b4ef44807634d4585dbf99c6d9addd39 /doc/examples/Tutorial_simple_example_dynamic_size.cpp | |
parent | 37348d03aee064e66c5969fb3f08080397d6a9c2 (diff) |
Fiw some warnings in dox examples
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"; } |