|
aest 0.1.0
Collection of C++ utility libraries
|
aest.blas provides fixed-size vectors and matrices and the linear algebra the other libraries build on, in the aest::blas namespace. Everything is constexpr and avoids <cmath>, so matrices can be derived at compile time.
Being aliases of std::array, they are aggregates: build them with braces, compare them with ==, and pass them to any code taking std::array.
| Function | Does | Sizes |
|---|---|---|
| aest::blas::multiply() | Matrix times column vector, or matrix times matrix | Any matching sizes |
| aest::blas::transpose() | Swap rows and columns | Any |
| aest::blas::diagonal() | Square matrix with a vector on its diagonal | Any |
| aest::blas::determinant() | Determinant, by cofactor expansion | 3×3 |
| aest::blas::inverse() | Inverse, through the adjugate; floating-point only | 3×3 |
The functions are free templates in aest::blas. The types are aliases of std::array, so argument-dependent lookup does not find them: qualify the calls, or bring them in with using.