Skip to content
This repository
Browse code

docs and cleanup for CLS

  • Loading branch information...
commit 8dc65cf47815c65a5c44318229432794f4b3b32d 1 parent 90292ee
Tony Rossini authored
19  README.org
Source Rendered
... ...
@@ -1,14 +1,16 @@
1 1
 	-*- mode: org -*-
2 2
 
3 3
 * Introduction
4  
-  Lisp-Matrix is a reasonably modern, flexible system for numeric
5  
-  algebra in Lisp.
  4
+
  5
+  Lisp-Matrix intends to be a reasonably modern, flexible system for
  6
+  numeric algebra in Lisp.
6 7
 
7 8
   Rif, Tomas Papp, and Mark H contributed various critical pieces
8 9
   (code, design, code, testing, code, benchmarks, code, and more
9 10
   code).
10 11
 
11  
-  Some of them continued on other projects, but I took this one on. 
  12
+  Some of them continued on other projects and left this behind, a gem
  13
+  in the rough, so I took this one on.
12 14
 
13 15
   I'm just a dwarf standing on the shoulders of giants.
14 16
 
@@ -102,14 +104,13 @@ These dependencies need to be better worked out.
102 104
   (asdf:oos 'asdf:load-op :lisp-matrix)
103 105
 #+end_src
104 106
 
105  
-
106  
-
107 107
   Need to autogenerate approach for documenting what we can do with
108 108
   this. Until then, simple reference.
109 109
 
110 110
   Instantiates a supported matrix type:
111  
-  - lisp/foriegn
  111
+  - lisp/foreign
112 112
   - single/double/complex-single/complex-double/integer
  113
+  - (TODO: need to consider normal or mmap'd structures as well) 
113 114
   by:
114 115
 #+srcname: 
115 116
 #+begin_src lisp
@@ -119,7 +120,11 @@ These dependencies need to be better worked out.
119 120
   right now, we are being numerical analysts, and only allow for a
120 121
   single modality, i.e. lisp-integer, foriegn-doubleFloat, etc.
121 122
 
122  
-  Referencing elements is done using the xarray system.  
  123
+  A different package, based on this, should manage mixed-data type
  124
+  typed matrices/arrays.
  125
+
  126
+  Referencing elements is done using the xarray system, so that needs
  127
+  to be a dependency of this.
123 128
 
124 129
 #+srcname: 
125 130
 #+begin_src lisp
10  src/matrix-operations.lisp
@@ -165,16 +165,18 @@
165 165
 	    &optional
166 166
 	    (op t))
167 167
 
168  
-    (let ((resultdims  (list (dims 1 mata)
169  
-			     (dims 2 mata)
170  
-			     (dims 1 matb)
171  
-			     (dims 2 matb)))
  168
+    (let ((resultdims  (list (xdims 1 mata)
  169
+			     (xdims 2 mata)
  170
+			     (xdims 1 matb)
  171
+			     (xdims 2 matb)))
172 172
 	  (mresult (make-array resultdims)))
  173
+#|
173 174
       (loop 
174 175
 	 over i j k l in resultdims
175 176
 	   (setf (xref mresult i j k l)
176 177
 		 (funcall op
177 178
 			  (xref mata i j) (xref matb j k))))
  179
+|#
178 180
       mresult)))
179 181
 
180 182
 
18  src/package.lisp
... ...
@@ -1,10 +1,24 @@
1  
-;;;; lisp-matrix package definition.
2  
-;;;; Author: mfh
  1
+;;; -*- mode: lisp -*-
  2
+
  3
+;;; Time-stamp: <2011-03-17 11:59:42 tony>
  4
+;;; Creation:   ??
  5
+;;; File:       package.lisp
  6
+;;; Author:     mfh
  7
+;;; Maintainer: AJ Rossini <blindglobe@gmail.com>
  8
+;;; Copyright:  (c)2009--2011, AJ Rossini.  Currently licensed under MIT
  9
+;;;             license.  See file LICENSE.mit in top-level directory
  10
+;;;             for information.
  11
+;;; Purpose:    lisp-matrix package definition.
  12
+
  13
+;;; What is this talk of 'release'? Klingons do not make software
  14
+;;; 'releases'.  Our software 'escapes', leaving a bloody trail of
  15
+;;; designers and quality assurance people in its wake.
3 16
 
4 17
 (in-package :cl-user)
5 18
 
6 19
 (defpackage :lisp-matrix
7 20
   (:use :cl
  21
+	:xarray
8 22
         :cffi
9 23
         :cl-utilities
10 24
         :org.middleangle.foreign-numeric-vector

0 notes on commit 8dc65cf

Please sign in to comment.
Something went wrong with that request. Please try again.