aboutsummaryrefslogtreecommitdiff
path: root/sys/mwcs/mwmkidmd.x
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
commitfa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch)
treebdda434976bc09c864f2e4fa6f16ba1952b1e555 /sys/mwcs/mwmkidmd.x
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'sys/mwcs/mwmkidmd.x')
-rw-r--r--sys/mwcs/mwmkidmd.x18
1 files changed, 18 insertions, 0 deletions
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