Tpetra Matrix/Vector Services Version of the Day
Public Member Functions
Tpetra::MatrixMarket::SymmetrizingAdder< AdderType > Class Template Reference

Adds entries with optional symmetry to a sparse matrix. More...

#include <MatrixMarket_util.hpp>

List of all members.

Public Member Functions

Teuchos::RCP< AdderType > getAdder () const
 Persisting non-const view of the underlying adder object.

Detailed Description

template<class AdderType>
class Tpetra::MatrixMarket::SymmetrizingAdder< AdderType >

Adds entries with optional symmetry to a sparse matrix.

Author:
Mark Hoemmen This class wraps any existing class (AdderType) that defines the index_type and value_type typedefs, and a "void operator() (const index_type, const index_type, const value_type&)" (that conceptually adds an entry to a sparse matrix). Given the Matrix Market symmetry type, this class' corresponding operator() may invoke AdderType's operator() twice, in order to add entry (j,i) if entry (i,j) is to be added.

Definition at line 216 of file MatrixMarket_util.hpp.


Member Function Documentation

template<class AdderType >
Teuchos::RCP<AdderType> Tpetra::MatrixMarket::SymmetrizingAdder< AdderType >::getAdder ( ) const [inline]

Persisting non-const view of the underlying adder object.

This violates encapsulation, so please be careful with this.

Definition at line 247 of file MatrixMarket_util.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines