aboutsummaryrefslogtreecommitdiff
path: root/sys/vops/lz/awsur.x
blob: 4efd890913dbdb84db1fb9351d30043838e16e28 (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 awsur (a, b, c, npix, k1, k2)

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

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