mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Give the axe to the aliasing system.
Improve the evaluation system instead.
This commit is contained in:
@@ -42,11 +42,11 @@ template<typename VectorType> void vectorOps(const VectorType& v)
|
||||
a = b;
|
||||
a = b + c;
|
||||
a = s * (b - c);
|
||||
a.alias() = a + b;
|
||||
a = eval(s * (b - c));
|
||||
|
||||
a += b;
|
||||
a += b + b;
|
||||
a.alias() += a + a;
|
||||
a += eval(a + a);
|
||||
}
|
||||
|
||||
void EigenTest::testVectorOps()
|
||||
|
||||
Reference in New Issue
Block a user