diff options
author | Peter Mikkelsen <petermikkelsen10@gmail.com> | 2022-02-12 15:41:12 +0000 |
---|---|---|
committer | Peter Mikkelsen <petermikkelsen10@gmail.com> | 2022-02-12 15:41:12 +0000 |
commit | 7c39c4eab3e16c201b22e0bf29e51006f60e99e7 (patch) | |
tree | 3b687fe9c0967981dd9d05c250e165984bd538d1 /operators.c | |
parent | 232190126274508840b3511554892cb1bc78351c (diff) |
Add comment for later
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]; |