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

Typedefs

template<typename T, std::size_t Size>
using aest::blas::Vector = std::array<T, Size>
 A column vector of fixed size.
template<typename T, std::size_t Rows, std::size_t Columns>
using aest::blas::Matrix = std::array<Vector<T, Columns>, Rows>
 A matrix of fixed size, stored as an array of rows.

Functions

template<typename T, std::size_t Rows, std::size_t Columns>
constexpr Vector< T, Rows > aest::blas::multiply (const Matrix< T, Rows, Columns > &matrix, const Vector< T, Columns > &vector)
 Multiplies a matrix by a column vector.
template<typename T, std::size_t Rows, std::size_t Inner, std::size_t Columns>
constexpr Matrix< T, Rows, Columns > aest::blas::multiply (const Matrix< T, Rows, Inner > &lhs, const Matrix< T, Inner, Columns > &rhs)
 Multiplies two matrices.
template<typename T, std::size_t Rows, std::size_t Columns>
constexpr Matrix< T, Columns, Rows > aest::blas::transpose (const Matrix< T, Rows, Columns > &matrix)
 Swaps the rows and columns of a matrix.
template<typename T, std::size_t Size>
constexpr Matrix< T, Size, Size > aest::blas::diagonal (const Vector< T, Size > &vector)
 Builds a square matrix with a vector on its diagonal and 0 elsewhere.
template<typename T>
constexpr T aest::blas::determinant (const Matrix< T, 3, 3 > &matrix)
 Determinant of a 3x3 matrix, by cofactor expansion along the first row.
template<std::floating_point T>
constexpr Matrix< T, 3, 3 > aest::blas::inverse (const Matrix< T, 3, 3 > &matrix)
 Inverts a 3x3 matrix through its adjugate.

Files

file  blas/src/lib.ixx
 Primary interface of aest.blas, re-exporting its partitions.
file  blas/src/Matrix.cppm
 Partition aest.blas:matrix: fixed-size vectors and matrices and their compile-time operations.