[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:33 -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=1r3+29YyMG5r6sYp3a5fhmrM4tg=; b=nNeyHJH9k2d0skVIkX7gUVa EMu9cbEqgbdnJcjOOSpfigMoQU4FAohmMCx0WkEJJuLeJaUG80ZZlt8OPNtnBTQS Uu9SE0CJHjrttsOjJ3cSKZoo+sDIcLTP7JjejTcawvIPEEiknjeXFNoBKlZUCf7y oPLCCUlwZqi2i+tdD9dQ=
1 new commit in eigen:
https://bitbucket.org/eigen/eigen/commits/44d70389b325/
Changeset: 44d70389b325
Branch: 3.3
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>.
(grafted from f5b44011f514515c72819438f730e8697362b1ac)
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.