<T>LAPACK 0.1.1
C++ Template Linear Algebra PACKage
Loading...
Searching...
No Matches
Matrix Interface Reference

Concept for a matrix. More...

#include <concepts.hpp>

Detailed Description

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:

  • Entry access using matrix_t::operator(idx_t, idx_t). Entry i of a matrix A is accessed using A(i,j).
  • Number of rows using a function nrows(const matrix_t&).
  • Number of columns using a function ncols(const matrix_t&).
  • Number of entries using a function size(const matrix_t&).
Note
The functions 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.
Template Parameters
matrix_tMatrix type.

The documentation for this interface was generated from the following file: