aboutsummaryrefslogtreecommitdiff
path: root/pkg/proto/vol/src/im3dtran/tyzx3.gx
blob: 108910aa37be432f8acacc62918f2509b5a2874e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$for (silrdx)

# TYZX3 -- Generic 3d transpose, x->y, y->z, z->x.  The arrays need not be
# identical.

procedure tyzx3$t (a, b, nx, ny, nz)

PIXEL	a[nx, ny, nz], b[ny, nz, nx]
int	nx, ny, nz, x, y, z

begin
	do x = 1, nx
	   do y = 1, ny
	       do z = 1, nz
		   b[y, z, x] = a[x, y, z]
end

$endfor