Added tensor subtraction.
This commit is contained in:
1
tensor.h
1
tensor.h
@@ -42,6 +42,7 @@ void tensor_sub_scalar(tensor t, dtype n);
|
||||
void tensor_mult_scalar(tensor t, dtype n);
|
||||
void tensor_div_scalar(tensor t, dtype n);
|
||||
int tensor_add(tensor t1, const tensor t2);
|
||||
int tensor_sub(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