Skip to content

Commit

Permalink
added test file
Browse files Browse the repository at this point in the history
  • Loading branch information
mjfitzpatrick authored and olebole committed Jan 9, 2024
1 parent 9a179b0 commit 6ec9dab
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions unix/boot/generic/test.gx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.

# AABS -- Compute the absolute value of a vector (generic).

procedure aabs$t (a, b, npix)

PIXEL a[ARB], b[ARB], c[ARB]
int npix, i

begin
do i = 1, npix
b[i] = abs(a[i])

$if (datatype == x)
call amovk$t ((1.0,1.0), c, npix)
$else
call amovk$t (1$f, c, npix)
$endif
end

0 comments on commit 6ec9dab

Please sign in to comment.