aest 0.1.0
Collection of C++ utility libraries
Loading...
Searching...
No Matches
blas Directory Reference

Directories

 
src

Detailed Description

aest.blas

Fixed-size vectors, matrices and compile-time linear algebra, under the aest::blas namespace.

#include <array>
import aest.blas;
constexpr Matrix<double, 3, 3> scale = {{{2, 0, 0}, {0, 4, 0}, {0, 0, 8}}};
constexpr Vector<double, 3> point = aest::blas::multiply(scale, {1, 1, 1}); // {2, 4, 8}
constexpr auto unscale = aest::blas::inverse(scale);
constexpr Vector< T, Rows > multiply(const Matrix< T, Rows, Columns > &matrix, const Vector< T, Columns > &vector)
Multiplies a matrix by a column vector.
Definition Matrix.cppm:69
constexpr Matrix< T, 3, 3 > inverse(const Matrix< T, 3, 3 > &matrix)
Inverts a 3x3 matrix through its adjugate.
Definition Matrix.cppm:158
std::array< Vector< T, Columns >, Rows > Matrix
A matrix of fixed size, stored as an array of rows.
Definition Matrix.cppm:57
std::array< T, Size > Vector
A column vector of fixed size.
Definition Matrix.cppm:48

Usage

With vcpkg (see the root README for registry setup):

{ "dependencies": ["aest-blas"] }
find_package(aest-blas CONFIG REQUIRED)
target_link_libraries(app PRIVATE aest::blas)

Layout

Path Content
src/ Primary interface lib.ixx and partitions (.cppm)
tests/ Catch2 unit tests
examples/ Usage examples (-DAEST_BUILD_EXAMPLES=ON)
docs/ Additional Doxygen pages