CX/include/tensor.h

19 lines
296 B
C

#ifndef TENSOR_H
#define TENSOR_H
typedef struct _tensor {
float *data;
size_t len;
size_t width;
} Tensor;
Tensor *tensor_new(size_t, size_t, int);
Tensor *tensor_fromVertexBuffer(float *, size_t);
Tensor *tensor_multip(Tensor *, Tensor *);
void tensor_free(Tensor *);
#endif