Logo MTL4

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

Concept Matrix. More...

#include <matrix.hpp>

Inherits AlgebraicCollection< T >.

Collaboration diagram for mtl::Matrix< T >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

const_reference T::operator() (size_type row, size_type col) const
 Element access.


Detailed Description

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

Concept Matrix.

Refinement of:
Notation:
  • X is a type that models Matrix
  • A is an object of type X
  • r, c are objects of size_type
Valid expressions:
  • Element access:
    A(r, c)
    Return Type: const_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).
  2. The name const_reference does not imply that the return type is necessarily referrable. For instance compressed2D returns value_type.

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


mtl::Matrix< T > Struct Template Reference -- MTL 4 -- Peter Gottschling and Andrew Lumsdaine -- Generated on 24 Aug 2009 by Doxygen 1.5.9 -- Copyright 2008-09 by TU Dresden and the Trustees of Indiana University.