From 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 Mon Sep 17 00:00:00 2001 From: Joe Hunkeler Date: Tue, 11 Aug 2015 16:51:37 -0400 Subject: Repatch (from linux) of OSX IRAF --- sys/mwcs/mwmkidmd.x | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 sys/mwcs/mwmkidmd.x (limited to 'sys/mwcs/mwmkidmd.x') diff --git a/sys/mwcs/mwmkidmd.x b/sys/mwcs/mwmkidmd.x new file mode 100644 index 00000000..acdbb077 --- /dev/null +++ b/sys/mwcs/mwmkidmd.x @@ -0,0 +1,18 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +# MW_MKIDMD -- Make the identity matrix. + +procedure mw_mkidmd (ltm, ndim) + +double ltm[ndim,ndim] #O set to the identity matrix +int ndim #I dimension of (square) matrix + +int i, j + +begin + do j = 1, ndim { + do i = 1, ndim + ltm[i,j] = 0.0 + ltm[j,j] = 1.0 + } +end -- cgit