cotila
« Back to VersTracker
Description:
Compile-time linear algebra system for C++
Type: Formula  |  Latest Version: 1.2.1@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: c++ linear-algebra constexpr header-only compile-time mathematics
Install: brew install cotila
About:
Cotila is a header-only C++ library that leverages C++17 constexpr capabilities to perform linear algebra operations at compile time. It provides compile-time matrix and vector types, enabling developers to pre-calculate complex numerical computations during the build process. This results in highly optimized binaries with zero runtime overhead for mathematical operations.
Key Features:
  • Header-only library requiring no build or installation
  • Full constexpr support for compile-time matrix and vector operations
  • C++17 compliant with no external dependencies
  • Focus on performance and embedded systems constraints
Use Cases:
  • Embedded systems development where runtime resources are limited
  • High-performance computing requiring pre-computed mathematical constants
  • Game development for optimizing physics calculations at compile time
Alternatives:
  • Eigen – Eigen is a mature, feature-rich library but operates primarily at runtime with heavy template metaprogramming overhead
  • Armadillo – Armadillo provides a MATLAB-like syntax but requires linking against external BLAS/LAPACK libraries and runs at runtime
License: Apache-2.0
Bottles available for: all
Version History
Detected Version Rev Change Commit