From 1dcff63d378cb7b289ca24c42cf899d699c9db58 Mon Sep 17 00:00:00 2001 From: bangerth Date: Fri, 22 Aug 2008 19:36:25 +0000 Subject: [PATCH] Add a Traits class to the Trilinos sparse matrix class. git-svn-id: https://svn.dealii.org/trunk@16655 0785d39b-7218-0410-832d-ea1e28bc413d --- .../lac/include/lac/trilinos_sparse_matrix.h | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/deal.II/lac/include/lac/trilinos_sparse_matrix.h b/deal.II/lac/include/lac/trilinos_sparse_matrix.h index d1fbe3a1eb..54b078c972 100755 --- a/deal.II/lac/include/lac/trilinos_sparse_matrix.h +++ b/deal.II/lac/include/lac/trilinos_sparse_matrix.h @@ -294,6 +294,27 @@ namespace TrilinosWrappers class SparseMatrix : public Subscriptor { public: + /** + * A structure that describes some of + * the traits of this class in terms of + * its run-time behavior. Some other + * classes (such as the block matrix + * classes) that take one or other of + * the matrix classes as its template + * parameters can tune their behavior + * based on the variables in this + * class. + */ + struct Traits + { + /** + * It is safe to elide additions of + * zeros to individual elements of + * this matrix. + */ + static const bool zero_addition_can_be_elided = true; + }; + /** * Declare a typedef for the iterator * class. -- 2.39.5