template <typename T> bool operator()(const T* const x, T* residual) const { residual[0] = pow(x,1.5) ; return true; }
However, x's type is T(Jet), so I cannot compile it.
What is the easiest way to cast from T(Jet) to double?
Thanks in advance.
Atsushi
--
You received this message because you are subscribed to the Google Groups "Ceres Solver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ceres-solver...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/ad7bc159-a034-4b65-806c-cfae56cf93e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/61a7e56e-94b0-4196-9653-441344046832%40googlegroups.com.