diff options
Diffstat (limited to 'sys/vops/lz/aminkx.x')
-rw-r--r-- | sys/vops/lz/aminkx.x | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sys/vops/lz/aminkx.x b/sys/vops/lz/aminkx.x new file mode 100644 index 00000000..5f0f852d --- /dev/null +++ b/sys/vops/lz/aminkx.x @@ -0,0 +1,21 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +# AMINK -- Compute the minimum of a constant and a vector (generic). + +procedure aminkx (a, b, c, npix) + +complex a[ARB] +complex b +complex c[ARB] +int npix, i +real abs_b + +begin + abs_b = abs (b) + + do i = 1, npix + if (abs(a[i]) <= abs_b) + c[i] = a[i] + else + c[i] = b +end |