mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
prefix global functions with ei_ as previous solution was rather
fragile. also fix compilation with g++ 4.3.
This commit is contained in:
@@ -32,10 +32,10 @@ template<typename Scalar> void smallVectors()
|
||||
typedef Matrix<Scalar, 1, 2> V2;
|
||||
typedef Matrix<Scalar, 3, 1> V3;
|
||||
typedef Matrix<Scalar, 1, 4> V4;
|
||||
Scalar x1 = random<Scalar>(),
|
||||
x2 = random<Scalar>(),
|
||||
x3 = random<Scalar>(),
|
||||
x4 = random<Scalar>();
|
||||
Scalar x1 = ei_random<Scalar>(),
|
||||
x2 = ei_random<Scalar>(),
|
||||
x3 = ei_random<Scalar>(),
|
||||
x4 = ei_random<Scalar>();
|
||||
V2 v2(x1, x2);
|
||||
V3 v3(x1, x2, x3);
|
||||
V4 v4(x1, x2, x3, x4);
|
||||
|
||||
Reference in New Issue
Block a user