diff options
Diffstat (limited to 'sys/vops/lz/amgsl.x')
-rw-r--r-- | sys/vops/lz/amgsl.x | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sys/vops/lz/amgsl.x b/sys/vops/lz/amgsl.x new file mode 100644 index 00000000..6ae850e9 --- /dev/null +++ b/sys/vops/lz/amgsl.x @@ -0,0 +1,13 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +# AMGS -- Return the square of the magnitude of two vectors. + +procedure amgsl (a, b, c, npix) + +long a[ARB], b[ARB], c[ARB] +int npix, i + +begin + do i = 1, npix + c[i] = a[i] ** 2 + b[i] ** 2 +end |