Math::check_function_gradient(): clean up output by using transpose of vector outputs
Math::check_function_gradient(): clean up output by using transpose of vector outputs

MRtrix3/mrtrix3,MRtrix3/mrtrix3,MRtrix3/mrtrix3,MRtrix3/mrtrix3,MRtrix3/mrtrix3,MRtrix3/mrtrix3