Reference documentation for deal.II version 9.1.1
\(\newcommand{\dealcoloneq}{\mathrel{\vcenter{:}}=}\)
symengine_types.cc
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2019 by the deal.II authors
4 //
5 // This file is part of the deal.II library.
6 //
7 // The deal.II library is free software; you can use it, redistribute
8 // it, and/or modify it under the terms of the GNU Lesser General
9 // Public License as published by the Free Software Foundation; either
10 // version 2.1 of the License, or (at your option) any later version.
11 // The full text of the license can be found in the file LICENSE at
12 // the top level of the deal.II distribution.
13 //
14 // ---------------------------------------------------------------------
15 
16 #include <deal.II/base/config.h>
17 
18 #ifdef DEAL_II_WITH_SYMENGINE
19 
20 # include <deal.II/differentiation/sd/symengine_number_types.h>
21 # include <deal.II/differentiation/sd/symengine_types.h>
22 
23 # include <symengine/basic.h>
24 # include <symengine/dict.h>
25 
26 
27 DEAL_II_NAMESPACE_OPEN
28 
29 namespace Differentiation
30 {
31  namespace SD
32  {
33  namespace SE = ::SymEngine;
34 
35  namespace types
36  {
37  namespace internal
38  {
39  bool
40  ExpressionKeyLess::operator()(const SD::Expression &lhs,
41  const SD::Expression &rhs) const
42  {
43  return SE::RCPBasicKeyLess()(lhs.get_RCP(), rhs.get_RCP());
44  }
45  } // namespace internal
46 
47  } // namespace types
48 
49  } // namespace SD
50 } // namespace Differentiation
51 
52 
53 DEAL_II_NAMESPACE_CLOSE
54 
55 #endif // DEAL_II_WITH_SYMENGINE
Definition: types.h:31