mApply function

Apply a Function to Rows of a Matrix or Vector