Matrix Library

Previous Page TOC Index Next Page See Page

Mindy Compiler Mindy Debugger Mindy Object Extensions Streams Library Standard IO Print Library Format Library Melange Interface TK Library Collection extensions Table Extensions String extensions Regular Expressions Transcendental Library Time Library Random Library Matrix Library


The Matrix Library

This library implements some basic matrix operations. These functions are not guarenteed to be stable or numerically sound, nor are they very optimized, but for smaller applications they should be suitable.

The <matrix> class is a subclass of <array>, so all operations on <array>s and collections in general should work as expected. One important limitation of matrices is that they are limited to two dimensions, and trying to use any other size results in an error.

1. Initialization

The generic function make will create matrices, with two keywords:

matrix(#rest row-vectors) => <matrix> [Function]


2. Functions

+ (x :: <matrix>, y :: <matrix>) => <matrix> [Method]
- (x :: <matrix>, y :: <matrix>) => <matrix> [Method]
* (x :: <matrix>, y :: <matrix>) => <matrix> [Method]
* (x :: <number>, y :: <matrix>) => <matrix> [Method]
* (x :: <matrix>, y :: <number>) => <matrix> [Method]

identity-matrix (#key dimensions :: <sequence>) => <matrix> [Function]

augment-matrix (x :: <matrix>, y :: <matrix>) => <matrix> [Function]

gauss-jordan (x :: <matrix>) => <matrix> [Function]

inverse (x :: <matrix>) => <matrix> [Function]

det (x :: <matrix>) => <matrix> [Function]

transpose (x :: <matrix>) => <matrix> [Function]


3. Future Revisions

Write functions for row-operations, eigen-value, and eigen-vector.

4. References

[1]: Sedgwick, Robert. Algorithms. 1993. Addison-Wesley Publishing Co.

[2]: Strang, Gilbert. Introduction to Linear Algebra. 1993. Wellesley-Cambridge Press.

Mindy Compiler Mindy Debugger Mindy Object Extensions Streams Library Standard IO Print Library Format Library Melange Interface TK Library Collection extensions Table Extensions String extensions Regular Expressions Transcendental Library Time Library Random Library Matrix Library

Previous Page TOC Index Next Page See Page

Copyright 1994, 1995, 1996, 1997 Carnegie Mellon University. All rights reserved.

Send comments and bug reports to gwydion-bugs@cs.cmu.edu