mtl::MutableMatrix< T > Struct Template Reference
[Concepts]

Concept MutableMatrix. More...

#include <matrix.hpp>

Inheritance diagram for mtl::MutableMatrix< T >:

Inheritance graph
[legend]
Collaboration diagram for mtl::MutableMatrix< T >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

reference T::operator() (size_type row, size_type col)
 Element access (in addition to const access).


Detailed Description

template<typename T>
struct mtl::MutableMatrix< T >

Concept MutableMatrix.

Refinement of:
Notation:
  • X is a type that models MutableMatrix
  • A is an object of type X
  • r, c are objects of size_type
Valid expressions:
  • Element access:
    A(r, c)
    Return Type: reference
    Semantics: Element in row r and column c
  • Element access:
    A[r][c]
    Equivalent to A(r, c)
Models:
Note:
  1. The access via A[r][c] is supposed to be implemented by means of A(r, c) (typically via CRTP and proxies). If it would become (extremely) important to support 2D C arrays, it might be necessary to drop the requirement of element access by A(r, c).

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





mtl::MutableMatrix< T > Struct Template Reference -- MTL 4 -- Peter Gottschling and Andrew Lumsdaine -- Generated on 19 May 2009 by Doxygen 1.5.5 -- Copyright 2007 by the Trustees of Indiana University.