diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
commit | fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch) | |
tree | bdda434976bc09c864f2e4fa6f16ba1952b1e555 /sys/mwcs/gen/mwvtrand.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'sys/mwcs/gen/mwvtrand.x')
-rw-r--r-- | sys/mwcs/gen/mwvtrand.x | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sys/mwcs/gen/mwvtrand.x b/sys/mwcs/gen/mwvtrand.x new file mode 100644 index 00000000..1a1cb662 --- /dev/null +++ b/sys/mwcs/gen/mwvtrand.x @@ -0,0 +1,18 @@ +# MW_VTRAN -- Transform an array of N-dimensional points, expressed as a +# 2D vector where v[1,i] is point I of vector V. + +procedure mw_vtrand (ct, v1, v2, ndim, npts) + +pointer ct #I pointer to CTRAN descriptor +double v1[ndim,npts] #I points to be transformed +double v2[ndim,npts] #O vector to get the transformed points +int ndim #I dimensionality of each point +int npts #I number of points + +int i +errchk mw_ctrand + +begin + do i = 1, npts + call mw_ctrand (ct, v1[1,i], v2[1,i], ndim) +end |