diff options
author | Gael Guennebaud <g.gael@free.fr> | 2013-08-12 13:37:47 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2013-08-12 13:37:47 +0200 |
commit | 956251b738a4d955fb4322c2bc5dc5170d9b8367 (patch) | |
tree | 73aa3d0627603a64d6f71b52c4cb4912e54e7d20 /doc/special_examples/Tutorial_sparse_example_details.cpp | |
parent | 6f5f488a80307adc6299839c4d35fb1a82b5fe37 (diff) |
bug #638: fix typos in sparse tutorial
Diffstat (limited to 'doc/special_examples/Tutorial_sparse_example_details.cpp')
-rw-r--r-- | doc/special_examples/Tutorial_sparse_example_details.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/special_examples/Tutorial_sparse_example_details.cpp b/doc/special_examples/Tutorial_sparse_example_details.cpp index 8c3020b63..7d820b44a 100644 --- a/doc/special_examples/Tutorial_sparse_example_details.cpp +++ b/doc/special_examples/Tutorial_sparse_example_details.cpp @@ -11,8 +11,8 @@ void insertCoefficient(int id, int i, int j, double w, std::vector<T>& coeffs, int n = boundary.size(); int id1 = i+j*n; - if(i==-1 || i==n) b(id) -= w * boundary(j); // constrained coeffcieint - else if(j==-1 || j==n) b(id) -= w * boundary(i); // constrained coeffcieint + if(i==-1 || i==n) b(id) -= w * boundary(j); // constrained coefficient + else if(j==-1 || j==n) b(id) -= w * boundary(i); // constrained coefficient else coeffs.push_back(T(id,id1,w)); // unknown coefficient } |