Logo MTL4
Public Member Functions
mtl::Matrix< T > Struct Template Reference

Concept Matrix. More...

#include <matrix.hpp>

Inheritance diagram for mtl::Matrix< T >:
Inheritance graph
[legend]
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 -- Gen. with rev. 7542 on Sat Aug 11 2012 by doxygen 1.7.6.1 -- © 2010 by SimuNova UG.