dune-pdelab  2.7-git
simple/descriptors.hh
Go to the documentation of this file.
1 // -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 // vi: set et ts=4 sw=2 sts=2:
3 #ifndef DUNE_PDELAB_BACKEND_SIMPLE_DESCRIPTORS_HH
4 #define DUNE_PDELAB_BACKEND_SIMPLE_DESCRIPTORS_HH
5 
6 #include <vector>
7 
9 
10 namespace Dune {
11  namespace PDELab {
12 
13 #ifndef DOXYGEN
14 
15  namespace Simple {
16 
17  template<typename GFS, typename C>
18  class VectorContainer;
19 
20  template<typename GFSV, typename GFSU, typename C>
21  class MatrixContainer;
22 
23  template<typename GFSV, typename GFSU, template<typename> class C, typename ET, typename I>
24  class SparseMatrixContainer;
25 
26  class SparseMatrixPattern;
27 
28  template<typename E>
29  using default_vector = std::vector<E>;
30 
31  }
32 
33 #endif // DOXYGEN
34 
35  namespace Simple {
36 
37  template<template<typename> class Container = Simple::default_vector>
39  {
40  template<typename E>
41  using vector_type = Container<E>;
42 
44 
45  struct Traits
46  {
47  static const size_type max_blocking_depth = 0;
48  };
49 
50  template<typename GFS>
51  bool blocked(const GFS& gfs) const
52  {
53  return false;
54  }
55 
56  };
57 
58  template<template<typename> class Container = Simple::default_vector>
60  {
61 
62  typedef std::size_t size_type;
63 
64  template<typename Matrix, typename GFSV, typename GFSU>
65  struct Pattern
66  {};
67 
68  template<typename VV, typename VU, typename E>
69  struct MatrixHelper
70  {
72  };
73  };
74 
75  template<template<typename> class Container = Simple::default_vector, typename IndexType = std::size_t>
77  {
78 
79  typedef IndexType size_type;
80 
82  template<typename Matrix, typename GFSV, typename GFSU>
84 
85  template<typename VV, typename VU, typename E>
86  struct MatrixHelper
87  {
89  };
90  };
91 
92  } // namespace Simple
93 
94  } // namespace PDELab
95 } // namespace Dune
96 
97 #endif // DUNE_PDELAB_BACKEND_SIMPLE_DESCRIPTORS_HH
For backward compatibility – Do not use this!
Definition: adaptivity.hh:28
Definition: simple/descriptors.hh:39
Container< E > vector_type
Definition: simple/descriptors.hh:41
bool blocked(const GFS &gfs) const
Definition: simple/descriptors.hh:51
vector_type< double >::size_type size_type
Definition: simple/descriptors.hh:43
Definition: simple/descriptors.hh:46
static const size_type max_blocking_depth
Definition: simple/descriptors.hh:47
Definition: simple/descriptors.hh:60
std::size_t size_type
Definition: simple/descriptors.hh:62
Definition: simple/descriptors.hh:66
Definition: simple/descriptors.hh:70
Simple::MatrixContainer< typename VV::GridFunctionSpace, typename VU::GridFunctionSpace, Container< E > > type
Definition: simple/descriptors.hh:71
Definition: simple/descriptors.hh:77
IndexType size_type
Definition: simple/descriptors.hh:79
Simple::SparseMatrixContainer< typename VV::GridFunctionSpace, typename VU::GridFunctionSpace, Container, E, size_type > type
Definition: simple/descriptors.hh:88
Definition: simple/matrix.hh:24