mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-06 13:15:14 +08:00
the default implementation should really call evalTo
This commit is contained in:
parent
d00bff91ad
commit
21d0eb3f11
@ -61,7 +61,8 @@ 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(*this);
|
typename Dest::PlainMatrixType res(rows(),cols());
|
||||||
|
evalTo(res);
|
||||||
dst += res;
|
dst += res;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -70,7 +71,8 @@ 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(*this);
|
typename Dest::PlainMatrixType res(rows(),cols());
|
||||||
|
evalTo(res);
|
||||||
dst -= res;
|
dst -= res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user