blob: 8a17baeb6c748d584377426268a3a29a006c7097 [file] [log] [blame]
#ifndef THC_TENSOR_INC
#define THC_TENSOR_INC
#include "THTensor.h"
#include "THCStorage.h"
#undef TH_API
#define TH_API THC_API
#define real float
#define Real Cuda
#define TH_GENERIC_FILE "generic/THTensor.h"
#include "generic/THTensor.h"
#undef TH_GENERIC_FILE
#define TH_GENERIC_FILE "generic/THTensorCopy.h"
#include "generic/THTensorCopy.h"
#undef TH_GENERIC_FILE
#undef real
#undef Real
#undef TH_API
#ifdef WIN32
# define TH_API THC_EXTERNC __declspec(dllimport)
#else
# define TH_API THC_EXTERNC
#endif
THC_API void THCudaTensor_fill(THCudaTensor *self, float value);
THC_API void THCudaTensor_copy(THCudaTensor *self, THCudaTensor *src);
THC_API cudaTextureObject_t THCudaTensor_getTextureObject(THCudaTensor *self);
THC_API void THByteTensor_copyCuda(THByteTensor *self, THCudaTensor *src);
THC_API void THCharTensor_copyCuda(THCharTensor *self, THCudaTensor *src);
THC_API void THShortTensor_copyCuda(THShortTensor *self, THCudaTensor *src);
THC_API void THIntTensor_copyCuda(THIntTensor *self, THCudaTensor *src);
THC_API void THLongTensor_copyCuda(THLongTensor *self, THCudaTensor *src);
THC_API void THFloatTensor_copyCuda(THFloatTensor *self, THCudaTensor *src);
THC_API void THDoubleTensor_copyCuda(THDoubleTensor *self, THCudaTensor *src);
THC_API void THCudaTensor_copyCuda(THCudaTensor *self, THCudaTensor *src);
#endif