CuMatrix scala operations