Logo MTL4
Public Types | Public Member Functions
mtl::MatrixInserter< T > Struct Template Reference

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:
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 -- Gen. with rev. 7542 on Sat Aug 11 2012 by doxygen 1.7.6.1 -- © 2010 by SimuNova UG.