Adpatation to the new nalgebra api.