diff options
Diffstat (limited to 'operators.c')
-rw-r--r-- | operators.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/operators.c b/operators.c index 73d5ec2..7a7f12d 100644 --- a/operators.c +++ b/operators.c @@ -50,6 +50,8 @@ opEach(Datum *lefto, Array *left, Array *right) rightarr = fnSame(right); } + /* TODO handle empty arrays by applying the function to their prototype */ + Array *result = allocarray(AtypeArray, GetRank(rightarr), GetSize(rightarr)); for(i = 0; i < GetRank(rightarr); i++) result->shape[i] = rightarr->shape[i]; |