aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/examples
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2018-06-07 15:56:20 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2018-06-07 15:56:20 +0200
commitc723ffd7635ea2067a514272c46e3c29184dc4eb (patch)
tree6e7606939e654a73454a41cdeddac9f053a438b6 /doc/examples
parentaf7c83b9a20b1903ae5524c5f1be9d4093026d86 (diff)
Fix warning
Diffstat (limited to 'doc/examples')
-rw-r--r--doc/examples/matrixfree_cg.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/examples/matrixfree_cg.cpp b/doc/examples/matrixfree_cg.cpp
index 6a205aea3..74699381c 100644
--- a/doc/examples/matrixfree_cg.cpp
+++ b/doc/examples/matrixfree_cg.cpp
@@ -67,6 +67,7 @@ namespace internal {
// This method should implement "dst += alpha * lhs * rhs" inplace,
// however, for iterative solvers, alpha is always equal to 1, so let's not bother about it.
assert(alpha==Scalar(1) && "scaling is not implemented");
+ EIGEN_ONLY_USED_FOR_DEBUG(alpha);
// Here we could simply call dst.noalias() += lhs.my_matrix() * rhs,
// but let's do something fancier (and less efficient):