From 7c39c4eab3e16c201b22e0bf29e51006f60e99e7 Mon Sep 17 00:00:00 2001 From: Peter Mikkelsen Date: Sat, 12 Feb 2022 15:41:12 +0000 Subject: Add comment for later --- operators.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'operators.c') 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]; -- cgit v1.2.3