Skip to content

aidedinertial/Matrice

 
 

Repository files navigation

Matrice

Project Overview

Matrice is a lightweight linear algebra library for matrix operations written with C++ template classes. The API is meant to be clean and expressive, similar to existing C++ matrix libraries like Eigen, however, it's been optimized for embedded systems to minimize resource usage. Compared to Eigen, Matrice operations run slightly slower but use much less ROM because the operations are not linearized like Eigen.

This project was designed to be fully interoperable with the Plat4m project, but it doesn't have any dependencies on Plat4m.

Features

  • Clean, expressive API in C++ that uses templates and operator overloading to simplify mathematical operations
  • Template-based proportional RAM usage without using dynamically-allocated memory
  • Optimized matrix traversing logic that is ~10x faster than traditional nested for-loops (based on real-world testing)
  • Only external dependency is stdint.h/cstdint

Supported Matrix Types and Operations

  • N-by-M Matrix

    • Addition (scalar and matrix)
    • Subtraction (scalar and matrix)
    • Multiplication (scalar and matrix)
    • Transpose
  • N-by-1 Vector

    • Addition and subtraction provided by N-by-M Matrix (scalar and vector)
    • Multiplication (optimized for vectors)

    Design Documents

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 99.6%
  • Other 0.4%