blob: 6c7f9dc447dfdaf12cebdb62045af1fa775195a4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
# ARCP -- Reciprocal of a constant divided by a vector. No divide by zero
# checking is performed.
procedure arcp$t (a, b, c, npix)
PIXEL a # constant numerator
PIXEL b[ARB] # vector denominator
PIXEL c[ARB] # output vector
int npix
int i
begin
if (a == 0$f) {
call aclr$t (c, npix)
} else if (a == 1$f) {
do i = 1, npix
c[i] = 1$f / b[i]
} else {
do i = 1, npix
c[i] = a / b[i]
}
end
|