summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
authorPeter Mikkelsen <petermikkelsen10@gmail.com>2022-01-26 13:51:28 +0000
committerPeter Mikkelsen <petermikkelsen10@gmail.com>2022-01-26 13:51:28 +0000
commit024867f3da16c7b51a768399401de1edcd417384 (patch)
tree45b8a7f7820f7870d6ad2212cfa74cf3211a27e3 /array.c
parent7f66d444451dab0e831cc0f14cc77ad691936f42 (diff)
Add a better implementation of inner product, and don't simplify nested arrays if the contents are also arrays
Diffstat (limited to 'array.c')
-rw-r--r--array.c2
1 files changed, 1 insertions, 1 deletions
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){