Fix doxygen warnings for math functions
Doxygen was having trouble with @copydoc when copying documentation of
templated functions. The doxygen comments in Math.h is restructured to
not need @copydoc, and the documentation is generated correctly.