summaryrefslogtreecommitdiff
path: root/operators.c
diff options
context:
space:
mode:
authorPeter Mikkelsen <petermikkelsen10@gmail.com>2022-02-12 15:41:12 +0000
committerPeter Mikkelsen <petermikkelsen10@gmail.com>2022-02-12 15:41:12 +0000
commit7c39c4eab3e16c201b22e0bf29e51006f60e99e7 (patch)
tree3b687fe9c0967981dd9d05c250e165984bd538d1 /operators.c
parent232190126274508840b3511554892cb1bc78351c (diff)
Add comment for later
Diffstat (limited to 'operators.c')
-rw-r--r--operators.c2
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];