<T>LAPACK 0.1.2
C++ Template Linear Algebra PACKage
|
Concept for a matrix. More...
#include <concepts.hpp>
Concept for a matrix.
A matrix is a two-dimensional array of elements. The indexes and sizes of a matrix are representable by an integral type idx_t
. The following operations must be available:
matrix_t::operator(idx_t, idx_t)
. Entry i of a matrix A is accessed using A(i,j)
.nrows(const matrix_t&)
.ncols(const matrix_t&)
.size(const matrix_t&)
.nrows
, ncols
, and size
are required to be callable from the namespace tlapack
.Optionally, the matrix type can also implement:
tlapack::traits::layout_trait<matrix_t,int>
, with a member value
that satisfies the concept tlapack::concepts::Layout.tlapack::traits::matrix_type_traits<matrix_t,matrix_t>
, with a member type
that satisfies the concept tlapack::concepts::Matrix.tlapack::traits::vector_type_traits<matrix_t,matrix_t>
, with a member type
that satisfies the concept tlapack::concepts::Vector.matrix_t | Matrix type. |