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

# AWSU -- Vector weighted sum.  C = A * k1 + B * k2

procedure awsud (a, b, c, npix, k1, k2)

double	a[ARB], b[ARB], c[ARB]
double	k1, k2
int	npix, i

begin
	do i = 1, npix
	    c[i] = a[i] * k1 + b[i] * k2
end