bug #1264: fix compilation

This commit is contained in:
Gael Guennebaud
2016-07-27 23:30:47 +02:00
parent 188590db82
commit cc2f6d68b1
2 changed files with 13 additions and 4 deletions

View File

@@ -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++) {