#include "scalarslice.h" #include "rts/cuda/error.h" #include "cublas_v2.h" #include "rts/envi/envi.h" scalarslice::scalarslice(int x, int y) { //set the resolution R[0] = x; R[1] = y; //allocate memory on the GPU HANDLE_ERROR(cudaMalloc( (void**)&S, sizeof(ptype) * x * y )); //std::cout<<"Scalerslice created."<(S, filename, R[0], R[1], vmin, vmax, cmap); } void scalarslice::toImage(std::string filename, bool positive, rts::colormapType cmap) { cublasStatus_t stat; cublasHandle_t handle; //create a CUBLAS handle stat = cublasCreate(&handle); if(stat != CUBLAS_STATUS_SUCCESS) { std::cout<<"CUBLAS Error: initialization failed"<