MTL 4: mtl::MatrixInserter< T > Struct Template Reference
#include <matrix.hpp>
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. |
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).
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.