[eigen-commits] commit/eigen: ggael: Bug 1381: fix sparse.diagonal() used as a rvalue. |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen-commits Archives
]
- To: eigen-commits@xxxxxxxxxxxxxxxxxxx
- Subject: [eigen-commits] commit/eigen: ggael: Bug 1381: fix sparse.diagonal() used as a rvalue.
- From: Bitbucket <commits-noreply@xxxxxxxxxxxxx>
- Date: Wed, 25 Jan 2017 16:39:16 -0000
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=bitbucket.org; h=mime-version:content-type:content-transfer-encoding:subject:from:to; s=s1; bh=/6tgng7AGegvFXcaFURhdHO07tA=; b=P6qNdXUbeGKcJ9cvYGaDmon rRV3Jl/K2Lwkz24rUKT7GN7NtO6b/l9v/m71/CtgP2l/o6UlUgevz1u7hjSEFB8W 6gN/qltDfd3izeleOctHcCw+QjI0gFn7DvIRUZ+iCCZmSm6ou6cuzvH0pjkqkMUC Y5AU1IfM4V+HZz7oBeKA=
1 new commit in eigen:
https://bitbucket.org/eigen/eigen/commits/f5b44011f514/
Changeset: f5b44011f514
User: ggael
Date: 2017-01-25 16:39:01+00:00
Summary: Bug 1381: fix sparse.diagonal() used as a rvalue.
The problem was that is "sparse" is not const, then sparse.diagonal() must have the
LValueBit flag meaning that sparse.diagonal().coeff(i) must returns a const reference,
const Scalar&. However, sparse::coeff() cannot returns a reference for a non-existing
zero coefficient. The trick is to return a reference to a local member of
evaluator<SparseMatrix>.
Affected #: 4 files
Repository URL: https://bitbucket.org/eigen/eigen/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.