apply function

Apply Functions Over Matrix Margins (Rows or Columns)