Made new general stride helper function and matrix_exponential function.
Authored by: tlinnet 2014-08-01
Parent: [r24906]
Child: [r24908]