|
dune-pdelab 2.8
|
Loading...
Searching...
No Matches
sparse.hh
Go to the documentation of this file.
192 std::transform(_container->_data.begin(),_container->_data.end(),_container->_data.begin(),std::bind(std::multiplies<ET>(),e,_1));
286 static void allocate_matrix(std::shared_ptr<Container> & c, const GO & go, const ElementType& e)
297 auto calc_offset = [=](const col_type & entry) mutable -> size_t { offset += entry.size(); return offset; };
322 auto mult = [=](const ElementType & a, const index_type & i) -> ElementType { return a * x.base()[i]; };
double alpha() const
Y & rhs()
iterator end()
iterator begin()
size_t() const
STL namespace.
For backward compatibility – Do not use this!
Tag for requesting a vector or matrix container without a pre-attached underlying object.
Definition backend/common/tags.hh:24
Tag for requesting a vector or matrix container with a pre-attached underlying object.
Definition backend/common/tags.hh:28
Definition sparse.hh:24
std::unordered_set< std::size_t > col_type
Definition sparse.hh:28
SparseMatrixPattern(std::size_t rows)
Definition sparse.hh:36
void add_link(const RI &ri, const CI &ci)
Definition sparse.hh:31
Definition sparse.hh:44
Definition sparse.hh:79
Container::size_type size_type
Definition sparse.hh:94
void clear_row_block(const RowIndex &ri, const ElementType &diagonal_entry)
Definition sparse.hh:276
SparseMatrixContainer(Backend::attached_container)
Creates an SparseMatrixContainer with an empty underlying ISTL matrix.
Definition sparse.hh:130
void mv(const V &x, V &y) const
Definition sparse.hh:197
ElementType field_type
Definition sparse.hh:93
SparseMatrixContainer & operator=(const SparseMatrixContainer &rhs)
Definition sparse.hh:138
void clear_row(const RowIndex &ri, const ElementType &diagonal_entry)
Definition sparse.hh:268
void attach(std::shared_ptr< Container > container)
Definition sparse.hh:158
SparseMatrixPattern Pattern
Definition sparse.hh:109
std::shared_ptr< Container > _container
Definition sparse.hh:332
SparseMatrixContainer(Backend::unattached_container=Backend::unattached_container())
Creates an SparseMatrixContainer without allocating an underlying ISTL matrix.
Definition sparse.hh:126
const Container & base() const
Definition sparse.hh:238
const ElementType & operator()(const RowIndex &ri, const ColIndex &ci) const
Definition sparse.hh:228
ElementType & operator()(const RowIndex &ri, const ColIndex &ci)
Definition sparse.hh:218
const std::shared_ptr< Container > & storage() const
Definition sparse.hh:168
GFSV::Ordering::Traits::ContainerIndex RowIndex
Definition sparse.hh:100
ElementType sparse_inner_product(std::size_t row, const V &x) const
Definition sparse.hh:318
GFSU::Ordering::Traits::ContainerIndex ColIndex
Definition sparse.hh:101
SparseMatrixContainer(const SparseMatrixContainer &rhs)
Definition sparse.hh:134
GFSU TrialGridFunctionSpace
Definition sparse.hh:97
SparseMatrixData< C, ET, I > Container
Definition sparse.hh:83
SparseMatrixContainer & operator=(const ElementType &e)
Definition sparse.hh:183
static void allocate_matrix(std::shared_ptr< Container > &c, const GO &go, const ElementType &e)
Definition sparse.hh:286
SparseMatrixContainer(const GO &go, const ElementType &e)
Definition sparse.hh:119
void usmv(const ElementType alpha, const V &x, V &y) const
Definition sparse.hh:208
GFSV TestGridFunctionSpace
Definition sparse.hh:98
SparseMatrixContainer(const GO &go)
Definition sparse.hh:112
SparseMatrixContainer & operator*=(const ElementType &e)
Definition sparse.hh:189
Various tags for influencing backend behavior.
T bind(T... args)
T copy(T... args)
T fill(T... args)
T inner_product(T... args)
T lower_bound(T... args)
T reset(T... args)
T sort(T... args)
T transform(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8