mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-04 20:25:10 +08:00
Workaround for compounds affected by #94.
This commit is contained in:
parent
b18f737aa1
commit
8519558d11
@ -61,8 +61,7 @@ template<typename Derived> struct AnyMatrixBase
|
|||||||
{
|
{
|
||||||
// This is the default implementation,
|
// This is the default implementation,
|
||||||
// derived class can reimplement it in a more optimized way.
|
// derived class can reimplement it in a more optimized way.
|
||||||
typename Dest::PlainMatrixType res(rows(),cols());
|
typename Dest::PlainMatrixType res(*this);
|
||||||
evalTo(res);
|
|
||||||
dst += res;
|
dst += res;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -71,8 +70,7 @@ template<typename Derived> struct AnyMatrixBase
|
|||||||
{
|
{
|
||||||
// This is the default implementation,
|
// This is the default implementation,
|
||||||
// derived class can reimplement it in a more optimized way.
|
// derived class can reimplement it in a more optimized way.
|
||||||
typename Dest::PlainMatrixType res(rows(),cols());
|
typename Dest::PlainMatrixType res(*this);
|
||||||
evalTo(res);
|
|
||||||
dst -= res;
|
dst -= res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user