aboutsummaryrefslogtreecommitdiff
path: root/sys/vops/alta.gx
diff options
context:
space:
mode:
Diffstat (limited to 'sys/vops/alta.gx')
-rw-r--r--sys/vops/alta.gx19
1 files changed, 19 insertions, 0 deletions
diff --git a/sys/vops/alta.gx b/sys/vops/alta.gx
new file mode 100644
index 00000000..c09bd38f
--- /dev/null
+++ b/sys/vops/alta.gx
@@ -0,0 +1,19 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+# ALTA -- Linearly map a vector into another vector of the same datatype.
+# b[i] = (a[i] + k1) * k2
+
+procedure alta$t (a, b, npix, k1, k2)
+
+PIXEL a[ARB], b[ARB]
+$if (datatype == ld)
+double k1, k2
+$else
+real k1, k2
+$endif
+int npix, i
+
+begin
+ do i = 1, npix
+ b[i] = (a[i] + k1) * k2
+end