From 2df7d811ef300c3d1e36d0ee3488fcd98c57eb02 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 16 Oct 2018 01:40:20 +0100 Subject: [PATCH] add reshaping section --- simple_v_extension/specification.mdwn | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/simple_v_extension/specification.mdwn b/simple_v_extension/specification.mdwn index 22c22febb..894a62f9b 100644 --- a/simple_v_extension/specification.mdwn +++ b/simple_v_extension/specification.mdwn @@ -457,12 +457,12 @@ below shows how the permutation dimensionality order works: | permute | order | array format | | ------- | ----- | ------------------------ | -| 000 | 0,1,2 | (xdim+1){ydim+1)(zdim+1) | -| 001 | 0,2,1 | (xdim+1){zdim+1)(ydim+1) | -| 010 | 1,0,2 | (ydim+1){xdim+1)(zdim+1) | -| 011 | 1,2,0 | (ydim+1){zdim+1)(xdim+1) | -| 100 | 2,0,1 | (zdim+1){xdim+1)(ydim+1) | -| 101 | 2,1,0 | (zdim+1){ydim+1)(xdim+1) | +| 000 | 0,1,2 | (xdim+1)(ydim+1)(zdim+1) | +| 001 | 0,2,1 | (xdim+1)(zdim+1)(ydim+1) | +| 010 | 1,0,2 | (ydim+1)(xdim+1)(zdim+1) | +| 011 | 1,2,0 | (ydim+1)(zdim+1)(xdim+1) | +| 100 | 2,0,1 | (zdim+1)(xdim+1)(ydim+1) | +| 101 | 2,1,0 | (zdim+1)(ydim+1)(xdim+1) | In other words, the "permute" option changes the order in which nested for-loops over the array would be done. The algorithm below -- 2.30.2