Added tensor addition.
This commit is contained in:
2
tensor.h
2
tensor.h
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user