diff --git a/include/ceres/jet.h b/include/ceres/jet.h index 5b6c0ca78..a10470729 100644 --- a/include/ceres/jet.h +++ b/include/ceres/jet.h @@ -836,8 +836,15 @@ struct NumTraits > { template struct Div { enum { +#if defined(EIGEN_VECTORIZE_AVX) + AVX = true, +#else AVX = false, - Cost = 1 +#endif + + // Assuming that for Jets, division is as expensive as + // multiplication. + Cost = 3 }; }; };