mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
bug #1264: fix compilation
This commit is contained in:
@@ -256,6 +256,14 @@ double bug_1261() {
|
||||
return maxVal.value() + minVal.value();
|
||||
}
|
||||
|
||||
double bug_1264() {
|
||||
typedef AutoDiffScalar<Vector2d> AD;
|
||||
const AD s;
|
||||
const Matrix<AD, 3, 1> v1;
|
||||
const Matrix<AD, 3, 1> v2 = (s + 3.0) * v1;
|
||||
return v2(0).value();
|
||||
}
|
||||
|
||||
void test_autodiff()
|
||||
{
|
||||
for(int i = 0; i < g_repeat; i++) {
|
||||
|
||||
Reference in New Issue
Block a user