Next: Tests of basic operations
Up: Getting started and examples
Previous: Getting started and examples
  Contents
You can start by either trying the interactive mode or running and examining
the examples.
To start with the interactive mode, within any python interactive
environment, type from MatPy.interact import *. Then follow the
instructions to type help, names, lookfor, demo, and so on. The
demo command would run all the examples as described
below. 1
The examples are in the tests directory. These examples serve to
- Test the correctness of the implementation MatPy.
- Demo the relevant behavior of MatPy.
- As examples of usage for MatPy.
There are several ways to use the examples
- During installation. make installmod; make examples would run
all the examples. Alternatively, make install will call
make which will call make examples.
- After install. run matpy (directly on Unix or run python
matpy on Windows). Within it you can explore help,
functions, demo, lookfor(name), etc.
- Run individually. For example, python tests/test_basic.py will
test some basic functionalities. To run them all, do python
tests/test_all.py.
- Within normal python interpreter. Type from MatPy.tests import
* will run all the tests.
- Just read the example code to see how it works.
The programs and results are listed below.
Next: Tests of basic operations
Up: Getting started and examples
Previous: Getting started and examples
  Contents
Huaiyu Zhu
2002-03-23