Static casting scalar types so as to let chlesky module of eigen work with ceres
Eigen is a C++ template library for linear algebra: matrices, vectors, numerical solvers, and related algorithms.
For more information go to http://eigen.tuxfamily.org/.