Logo  0.95.0-final
Finite Element Embedded Library and Language in C++
Feel++ Feel++ on Github Feel++ community
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
imexact.hpp
Go to the documentation of this file.
1 /* -*- mode: c++; coding: utf-8; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; show-trailing-whitespace: t -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2 
3  This file is part of the Feel library
4 
5  Author(s): Christophe Prud'homme <christophe.prudhomme@feelpp.org>
6  Date: 2006-07-02
7 
8  Copyright (C) 2006 EPFL
9 
10  This library is free software; you can redistribute it and/or
11  modify it under the terms of the GNU Lesser General Public
12  License as published by the Free Software Foundation; either
13  version 3.0 of the License, or (at your option) any later version.
14 
15  This library is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  Lesser General Public License for more details.
19 
20  You should have received a copy of the GNU Lesser General Public
21  License along with this library; if not, write to the Free Software
22  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23 */
29 #ifndef __IMExact_H
30 #define __IMExact_H 1
31 
32 namespace Feel
33 {
41 template<typename T = double>
42 class IMExact
43 {
44 public:
45 
46 
50 
51  static const bool is_exact = true;
52  static const bool is_face_im = false;
53 
54  typedef T value_type;
55  typedef ublas::matrix<value_type,ublas::column_major> points_type;
56 
58 
60 
64 
65  IMExact() {}
66  IMExact( IMExact const & ) {}
67  ~IMExact() {}
68 
70 
74 
75 
77 
81 
85  uint16_type nPoints() const
86  {
87  return 0;
88  }
89 
93  points_type points() const
94  {
95  return points_type();
96  }
97 
99 
103 
104 
106 
110 
115  template<typename Expression>
116  value_type integrate( Expression const& f ) const
117  {
118  uint32_type k = 0;
119  return value_type( f( k ) );
120  }
121 
123 
124 
125 
126 protected:
127 
128 private:
129 
130 };
131 } // Feel
132 #endif /* __IMExact_H */
points_type points() const
Definition: imexact.hpp:93
exact integration method
Definition: imexact.hpp:42
uint16_type nPoints() const
Definition: imexact.hpp:85
value_type integrate(Expression const &f) const
Definition: imexact.hpp:116

Generated on Sun Dec 22 2013 13:11:05 for Feel++ by doxygen 1.8.5