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

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

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

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

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

$endfor