Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::numeric::ublas::fill_policy::sparse_insert Class Reference

The sparse insert fill policy. More...

#include <assignment.hpp>

Inheritance diagram for boost::numeric::ublas::fill_policy::sparse_insert:
Collaboration diagram for boost::numeric::ublas::fill_policy::sparse_insert:

Public Types

typedef sparse_insert type
 

Static Public Member Functions

template<class T , class S , class V >
static BOOST_UBLAS_INLINE void apply (T &e, const S &i, const V &v)
 
template<class T , class S , class V >
static BOOST_UBLAS_INLINE void apply (T &e, const S &i, const S &j, const V &v)
 

Detailed Description

The sparse insert fill policy.

This policy is adequate for sparse types, when fast filling is required, where indexing assign is pretty slow. It is slower than sparse_push_back fill policy, but it can be used to insert elements anywhere inside the container.

Member Typedef Documentation

Member Function Documentation

template<class T , class S , class V >
static BOOST_UBLAS_INLINE void boost::numeric::ublas::fill_policy::sparse_insert::apply ( T e,
const S &  i,
const V &  v 
)
inlinestatic
template<class T , class S , class V >
static BOOST_UBLAS_INLINE void boost::numeric::ublas::fill_policy::sparse_insert::apply ( T e,
const S &  i,
const S &  j,
const V &  v 
)
inlinestatic

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