diff options
author | Peter Mikkelsen <petermikkelsen10@gmail.com> | 2022-01-13 09:39:00 +0000 |
---|---|---|
committer | Peter Mikkelsen <petermikkelsen10@gmail.com> | 2022-01-13 09:39:00 +0000 |
commit | b1b55e907a5aaf177344769d2b303351ba936bff (patch) | |
tree | 34059065e8290a4b310563b9e019aef4727cb03f | |
parent | 988c43659035a64f0204125f49169fc65cffcc3d (diff) |
Print multi dimensional arrays correctly. The axis were in the wrong order before
-rw-r--r-- | print.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -76,7 +76,7 @@ pparray(Array *a) int j = 1; int spaceprinted = 0; for(int dim = 0; dim < a->rank && i+1 != a->size; dim++){ - j *= a->shape[dim]; + j *= a->shape[a->rank-dim-1]; tmp = res; if((i+1)%j == 0){ spaceprinted = 1; |