Logo MTL4

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

Concept MatrixInserter: classes that enable efficient insertion into matrices, esp. compressed sparse. More...

#include <matrix.hpp>

List of all members.

Public Types

typedef associated_type matrix_type
 Type of matrix into which is inserted.
typedef associated_type proxy_type
 Return type of element access; only proxy.

Public Member Functions

proxy_type operator() (Matrix< matrix_type >::size_type row, Matrix< matrix_type >::size_type col)
 Element access; returns a proxy that handles insertion.


Detailed Description

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

Concept MatrixInserter: classes that enable efficient insertion into matrices, esp. compressed sparse.

Used to fill non-mutable matrices like compressed2D. Matrix inserters might be parametrizable with update functor. This allow to perform different operations when entry already exist, e.g. overwriting, incrementing, minimum, ... The most important updates are certainly overwrite and increment (add).

Associated types
  • matrix_type
Requires:
  • Matrix<matrix_type>
Notation:
Valid expressions:
  • Insertion with shift operator:
    A(r, c) << v
    Return type: T
Models:
  • mtl::matrix::inserter < T >
Note:
  1. Used in concept InsertableMatrix

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


mtl::MatrixInserter< 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.