1 #ifndef THC_GENERIC_FILE 2 #define THC_GENERIC_FILE "THC/generic/THCTensorMath.h" 5 THC_API
void THCTensor_(fill)(THCState *state, THCTensor *
self, scalar_t value);
6 THC_API
void THCTensor_(zero)(THCState *state, THCTensor *
self);
8 THC_API ptrdiff_t THCTensor_(numel)(THCState *state, THCTensor *t);
9 THC_API
void THCTensor_(cat)(THCState *state, THCTensor *result, THCTensor *ta, THCTensor *tb,
int dimension);
10 THC_API
void THCTensor_(catArray)(THCState *state, THCTensor *result, THCTensor **inputs,
int numInputs,
int dimension);
11 THC_API
void THCTensor_(nonzero)(THCState* state, THCudaLongTensor *tensor, THCTensor *
self);
13 THC_API
void THCTensor_(triu)(THCState *state, THCTensor *
self, THCTensor *src, int64_t k);
14 THC_API
void THCTensor_(diag)(THCState *state, THCTensor *
self, THCTensor *src, int64_t k);
16 THC_API accreal THCTensor_(trace)(THCState *state, THCTensor *
self);