BasicMatrix
The BasicMatrix concept provides a minimalist interface for accessing elements from a 2 dimensional table of values.
Notation
{ |
The matrix, index, and values types that together model the BasicMatrix concept. |
|
An object of type |
|
Objects of type |
Valid Expressions
|
Returns a reference to the
element object stored at index |
Concept Checking Class
template <class M, class I, class V>
struct BasicMatrixConcept
{
void constraints() {
V& elt = A[i][j];
const_constraints(A);
ignore_unused_variable_warning(elt);
}
void const_constraints(const M& A) {
const V& elt = A[i][j];
ignore_unused_variable_warning(elt);
}
M A;
I i, j;
};