Snippet of code used to implement a Visual Inertial Navigation System aided by a GPU and libraries like CUDA, magma, CLAPACK and Eigen.