Finally fixed error by indexing variable instead of datatype
Trying to cast double* to const double* for batcheddgemm call