MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
mtl::Matrix Concept Reference

A 2D collection with num_rows(), num_cols(), and (r,c) access. More...

#include <matrix.hpp>

Concept definition

template<typename T>
concept mtl::Matrix = Collection<T> && requires(const T& m, std::size_t r, std::size_t c) {
{ m.num_rows() } -> std::convertible_to<typename T::size_type>;
{ m.num_cols() } -> std::convertible_to<typename T::size_type>;
{ m(r, c) } -> std::convertible_to<typename T::value_type>;
}
A read-only collection with value_type, size_type, and size().
Definition collection.hpp:10
A 2D collection with num_rows(), num_cols(), and (r,c) access.
Definition matrix.hpp:14

Detailed Description

A 2D collection with num_rows(), num_cols(), and (r,c) access.