the mi_vector_neg function is just a example, the functions than need are more complex how resolutions of linear systems , rotations matrix, ...