Added tensor addition.

This commit is contained in:
2023-02-27 14:45:21 +01:00
parent 3cb2f272eb
commit dbf11ef652
2 changed files with 19 additions and 4 deletions

View File

@@ -33,6 +33,8 @@ int tensor_init_one(tensor t, int dimension, const int *size);
int tensor_init_zero(tensor t, int dimension, const int *size);
int tensor_init_rand(tensor t, int dimension, const int *size, int max);
int tensor_add(tensor t1, const tensor t2);
void tensor_for_each_elem(tensor t, dtype (*func)(dtype));
void tensor_print(const tensor t);