CX/include/tensor.h
Marcel Plch 9702382a16
Refactor tensors (matrices).
Tensors now have dynamic length and width.
2024-10-23 15:27:18 +02:00

19 lines
291 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);
Tensor *tensor_fromVertexBuffer(float *, size_t);
Tensor *tensor_multip(Tensor *, Tensor *);
void tensor_free(Tensor *);
#endif