mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Found a way to have eval() be a member function of class EiObject, instead of a global function.
CCMAIL:bensch128@yahoo.com
This commit is contained in:
@@ -42,13 +42,13 @@ template<typename VectorType> void vectorOps(const VectorType& v)
|
||||
a = b;
|
||||
a = b + c;
|
||||
a = s * (b - c);
|
||||
a = eval(s * (b - c));
|
||||
a = (s * (b - c)).eval();
|
||||
|
||||
a += b;
|
||||
a -= b + b;
|
||||
a *= s;
|
||||
b /= s;
|
||||
a += eval(a + a);
|
||||
a += (a + a).eval();
|
||||
}
|
||||
|
||||
void EigenTest::testVectorOps()
|
||||
|
||||
Reference in New Issue
Block a user