2 #ifndef _BPAS_FIELD_OF_FRACTIONS_ 3 #define _BPAS_FIELD_OF_FRACTIONS_ 5 #include "BPASField.hpp" 6 #include "../Utils/TemplateHelpers.hpp" 15 template <
class Domain,
class Derived>
An abstract class defining the interface of a field of fractions.
Definition: BPASFieldOfFractions.hpp:16
virtual Domain denominator() const =0
Get the fraction's denominator.
virtual void canonicalize()=0
Canonicalize this fraction, reducing terms as needed.
virtual Domain numerator() const =0
Get the fraction's numerator.
An abstract class defining the interface of a field.
Definition: BPASField.hpp:11