2024-10-23 13:27:18 +00:00
|
|
|
#ifndef TENSOR_H
|
|
|
|
#define TENSOR_H
|
2023-10-25 13:02:23 +00:00
|
|
|
|
2024-10-23 13:27:18 +00:00
|
|
|
typedef struct _tensor {
|
|
|
|
float *data;
|
|
|
|
size_t len;
|
|
|
|
size_t width;
|
|
|
|
} Tensor;
|
2023-10-25 13:02:23 +00:00
|
|
|
|
2024-11-20 00:00:18 +00:00
|
|
|
Tensor *tensor_new(size_t, size_t, int);
|
2023-10-25 13:02:23 +00:00
|
|
|
|
2024-10-23 13:27:18 +00:00
|
|
|
Tensor *tensor_fromVertexBuffer(float *, size_t);
|
|
|
|
|
|
|
|
Tensor *tensor_multip(Tensor *, Tensor *);
|
|
|
|
|
|
|
|
void tensor_free(Tensor *);
|
2023-10-25 13:02:23 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|