aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/special_examples/Tutorial_sparse_example.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2015-07-20 13:55:48 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2015-07-20 13:55:48 +0200
commit2d93060291f3373a3325413159062a3b4d1e95e8 (patch)
tree7318694c3e6f752bbbdde735b3f2c4289254449e /doc/special_examples/Tutorial_sparse_example.cpp
parentc11971de3799299e3a0dec9dff188734e6bfe8d3 (diff)
Fix trivial warnings.
Diffstat (limited to 'doc/special_examples/Tutorial_sparse_example.cpp')
-rw-r--r--doc/special_examples/Tutorial_sparse_example.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/special_examples/Tutorial_sparse_example.cpp b/doc/special_examples/Tutorial_sparse_example.cpp
index 002f19f01..830e196ea 100644
--- a/doc/special_examples/Tutorial_sparse_example.cpp
+++ b/doc/special_examples/Tutorial_sparse_example.cpp
@@ -9,6 +9,8 @@ void saveAsBitmap(const Eigen::VectorXd& x, int n, const char* filename);
int main(int argc, char** argv)
{
+ assert(argc==2);
+
int n = 300; // size of the image
int m = n*n; // number of unknows (=number of pixels)