You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
7 years ago | |
|---|---|---|
| .. | ||
| FUNCTIONS.rst | 7 years ago | |
| LICENSE | 7 years ago | |
| Makefile | 7 years ago | |
| README.rst | 7 years ago | |
| fixarray.c | 7 years ago | |
| fixarray.h | 7 years ago | |
| fixmatrix.c | 7 years ago | |
| fixmatrix.h | 7 years ago | |
| fixmatrix_unittests.c | 7 years ago | |
| fixquat.c | 7 years ago | |
| fixquat.h | 7 years ago | |
| fixquat_unittests.c | 7 years ago | |
| fixstring.c | 7 years ago | |
| fixstring.h | 7 years ago | |
| fixvector2d.c | 7 years ago | |
| fixvector2d.h | 7 years ago | |
| fixvector3d.c | 7 years ago | |
| fixvector3d.h | 7 years ago | |
| fixvector3d_unittests.c | 7 years ago | |
| unittests.h | 7 years ago | |
README.rst
.. image:: http://kapsi.fi/~jpa/stuff/pix/fixmatrixlogo.png
:align: right
Fixed point matrix library
==========================
Libfixmatrix is a matrix computation library for microcontrollers.
It is based on the libfixmath_ library, which uses 16.16 bit fixed point values.
The main focus is processors without an FPU, such as ARM Cortex-M3.
The compiled size of the library is less than 5 kB, depending on optimization settings and processor.
The library includes all basic matrix operations, such as multiplication, addition and transposition.
Matrix equation solving (and matrix inversion) is implemented through `QR decomposition`_.
Also `Cholesky decomposition`_ is included. See `function reference`_ for details.
To avoid complexity and dynamic memory allocations, all matrices are allocated a buffer with constant size, specified with parameter
`FIXMATRIX_MAX_SIZE`. This wastes some memory with matrices smaller than the maximum size, but allows more predictable memory usage.
Libfixmatrix is suited well for tasks involving small matrices (often less than 10x10):
`Kalman filters`_, `transformation matrices`_ and solving `systems of linear equations`_.
.. _libfixmath: http://code.google.com/p/libfixmath/
.. _QR decomposition: http://en.wikipedia.org/wiki/QR_decomposition
.. _Cholesky decomposition: http://en.wikipedia.org/wiki/Cholesky_decomposition
.. _function reference: https://github.com/PetteriAimonen/libfixmatrix/blob/master/FUNCTIONS.rst
.. _Kalman filters: http://en.wikipedia.org/wiki/Kalman_filter
.. _transformation matrices: http://en.wikipedia.org/wiki/Transformation_matrix
.. _systems of linear equations: http://en.wikipedia.org/wiki/System_of_linear_equations