diff options
Diffstat (limited to 'sys/vops/lz/amgsr.x')
-rw-r--r-- | sys/vops/lz/amgsr.x | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sys/vops/lz/amgsr.x b/sys/vops/lz/amgsr.x new file mode 100644 index 00000000..fbfbb880 --- /dev/null +++ b/sys/vops/lz/amgsr.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 amgsr (a, b, c, npix) + +real a[ARB], b[ARB], c[ARB] +int npix, i + +begin + do i = 1, npix + c[i] = a[i] ** 2 + b[i] ** 2 +end |