PolyBoRi
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
groebner
include
polybori
groebner
TimesVariableSubstitution.h
Go to the documentation of this file.
1
// -*- c++ -*-
2
//*****************************************************************************
14
//*****************************************************************************
15
16
#ifndef polybori_groebner_TimesVariableSubstitution_h_
17
#define polybori_groebner_TimesVariableSubstitution_h_
18
19
// include basic definitions
20
#include "
groebner_defs.h
"
21
22
BEGIN_NAMESPACE_PBORIGB
23
31
class
TimesVariableSubstitution
{
32
public
:
33
template
<
class
PairType>
34
Polynomial
operator()
(
const
Polynomial
& lhs,
const
PairType& rhs)
const
{
35
return
lhs * (lhs.
ring
().
variable
(rhs.first) +
36
lhs.
ring
().
variable
(rhs.second));
37
}
38
};
39
40
41
END_NAMESPACE_PBORIGB
42
43
#endif
/* polybori_groebner_TimesVariableSubstitution_h_ */
Generated by
1.8.3.1