SkillAgentSearch skills...

Libfixmatrix

C library for fixed point matrix, quaternion and vector calculations

Install / Use

/learn @PetteriAimonen/Libfixmatrix
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

.. 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

View on GitHub
GitHub Stars454
CategoryDevelopment
Updated6d ago
Forks106

Languages

C

Security Score

95/100

Audited on Apr 2, 2026

No findings