mxArray_to_cuFloatComplex function implemented for cleaner code