dune-pdelab  2.4.1
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  template<typename _RowOrdering, typename _ColOrdering>
27  class SparseMatrixPattern;
28 
29  template<typename E>
30  using default_vector = std::vector<E>;
31 
32  }
33 
34 #endif // DOXYGEN
35 
36  template<template<typename> class Container = simple::default_vector>
38  {
39  template<typename E>
40  using vector_type = Container<E>;
41 
43 
44  struct Traits
45  {
46  static const size_type max_blocking_depth = 0;
47  };
48 
49  template<typename GFS>
50  bool blocked(const GFS& gfs) const
51  {
52  return false;
53  }
54 
55  };
56 
57  template<template<typename> class Container = simple::default_vector>
59  {
60 
61  typedef std::size_t size_type;
62 
63  template<typename Matrix, typename GFSV, typename GFSU>
64  struct Pattern
65  {};
66 
67  template<typename VV, typename VU, typename E>
68  struct MatrixHelper
69  {
71  };
72  };
73 
74  template<template<typename> class Container = simple::default_vector, typename IndexType = std::size_t>
76  {
77 
78  typedef IndexType size_type;
79 
81  template<typename Matrix, typename GFSV, typename GFSU>
84  typename GFSV::Ordering::Traits::DOFIndex,
85  typename GFSV::Ordering::Traits::ContainerIndex
86  >,
88  typename GFSU::Ordering::Traits::DOFIndex,
89  typename GFSU::Ordering::Traits::ContainerIndex> >;
90 
91 
92  template<typename VV, typename VU, typename E>
93  struct MatrixHelper
94  {
96  };
97  };
98 
99  } // namespace PDELab
100 } // namespace Dune
101 
102 #endif // DUNE_PDELAB_BACKEND_SIMPLE_DESCRIPTORS_HH
vector_type< double >::size_type size_type
Definition: simple/descriptors.hh:42
Definition: simple/matrix.hh:22
Definition: simple/descriptors.hh:58
Definition: simple/descriptors.hh:64
Definition: simple/descriptors.hh:75
Definition: adaptivity.hh:27
simple::MatrixContainer< typename VV::GridFunctionSpace, typename VU::GridFunctionSpace, Container< E > > type
Definition: simple/descriptors.hh:70
bool blocked(const GFS &gfs) const
Definition: simple/descriptors.hh:50
std::size_t size_type
Definition: simple/descriptors.hh:61
Definition: simple/descriptors.hh:93
Definition: simple/descriptors.hh:37
IndexType size_type
Definition: simple/descriptors.hh:78
Definition: simple/descriptors.hh:44
Definition: orderingbase.hh:20
Definition: simple/descriptors.hh:68
Container< E > vector_type
Definition: simple/descriptors.hh:40
simple::SparseMatrixContainer< typename VV::GridFunctionSpace, typename VU::GridFunctionSpace, Container, E, size_type > type
Definition: simple/descriptors.hh:95