From 024867f3da16c7b51a768399401de1edcd417384 Mon Sep 17 00:00:00 2001 From: Peter Mikkelsen Date: Wed, 26 Jan 2022 13:51:28 +0000 Subject: Add a better implementation of inner product, and don't simplify nested arrays if the contents are also arrays --- array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'array.c') diff --git a/array.c b/array.c index a4bde78..e333870 100644 --- a/array.c +++ b/array.c @@ -217,7 +217,7 @@ simplifyarray(Array *a) return fnSame(a); /* cannot be simplified */ } - if(sametype){ + if(sametype && type != AtypeArray){ Array *b = duparrayshape(a, type); for(i = 0; i < a->size; i++){ if(nested){ -- cgit v1.2.3