mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-21 08:42:03 +00:00
parent
c5fd075f1e
commit
e09bf69648
|
@ -1,6 +1,6 @@
|
||||||
# Linear algebra library for Python
|
# Linear algebra library for Python
|
||||||
|
|
||||||
This module contains some useful classes and functions for dealing with linear algebra in python 2.
|
This module contains classes and functions for doing linear algebra.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ This module contains some useful classes and functions for dealing with linear a
|
||||||
|
|
||||||
### class Vector
|
### class Vector
|
||||||
-
|
-
|
||||||
- This class represents a vector of arbitray size and operations on it.
|
- This class represents a vector of arbitray size and related operations.
|
||||||
|
|
||||||
**Overview about the methods:**
|
**Overview about the methods:**
|
||||||
|
|
||||||
|
@ -58,22 +58,18 @@ This module contains some useful classes and functions for dealing with linear a
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
The module is well documented. You can use the python in-built ```help(...)``` function.
|
This module uses docstrings to enable the use of Python's in-built `help(...)` function.
|
||||||
For instance: ```help(Vector)``` gives you all information about the Vector-class.
|
For instance, try `help(Vector)`, `help(unitBasisVector)`, and `help(CLASSNAME.METHODNAME)`.
|
||||||
Or ```help(unitBasisVector)``` gives you all information you needed about the
|
|
||||||
global function ```unitBasisVector(...)```. If you need informations about a certain
|
|
||||||
method you type ```help(CLASSNAME.METHODNAME)```.
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
You will find the module in the **src** directory its called ```lib.py```. You need to
|
Import the module `lib.py` from the **src** directory into your project.
|
||||||
import this module in your project. Alternative you can also use the file ```lib.pyc``` in python-bytecode.
|
Alternatively, you can directly use the Python bytecode file `lib.pyc`.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Tests
|
## Tests
|
||||||
|
|
||||||
In the **src** directory you also find the test-suite, its called ```tests.py```.
|
`src/tests.py` contains Python unit tests which can be run with `python3 -m unittest -v`.
|
||||||
The test-suite uses the built-in python-test-framework **unittest**.
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user