Newtonian mechanics assumed a Euclidian geometry.
Einsteinian mechanics is based on non-Euclidian geometry.
However, there are many types of non-Euclidian geometry, so what is the mathematical name of the geometry used in Einstein's relativity theory?
Riemannian geometry is the backbone of Einstein's General Theory of Relativity.
To quote, in his own words:
Albert Einstein, as quoted by Abraham Pais in Subtle is the Lord, Pais's scientific biography of Einstein.