Provided wrapper functions around common BLAS functionality for mex code.