aboutsummaryrefslogtreecommitdiff
path: root/sys/vops/aabs.gx
blob: 54cbe1973e8809e7ffeca39b22f60f398b26fd9b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.

# AABS -- Compute the absolute value of a vector (generic).

procedure aabs$t (a, b, npix)

PIXEL	a[ARB], b[ARB]
int	npix, i

begin
	do i = 1, npix
	    b[i] = abs(a[i])
end