aboutsummaryrefslogtreecommitdiff
path: root/sys/vops/ak/aabsd.x
blob: d9a85b4a9795ca0d019d429713bb60f1c332db24 (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 aabsd (a, b, npix)

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

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