Simplify cublas interface

I removed code duplication in the cublas interface to make extensions less tedious should we need them in the future. If you had a specific reason to write functions more verbose in this part of the code let me know.