10 #ifndef INCLUDED_FROM_NUMBERS_H
11 static_assert(
false,
"This file may only be included indirectly by numbers.h");
29 template<
typename T, EnableIf<has_is_positive<T>>>
31 return t.is_positive();
34 template<
typename T, DisableIf<has_is_positive<T>>>
39 template<
typename T, EnableIf<has_is_negative<T>>>
41 return t.is_negative();
44 template<
typename T, DisableIf<has_is_negative<T>>>
60 template<
typename T, DisableIf<is_
interval_type<T>> = dummy>
61 T
pow(
const T& basis, std::size_t
exp) {
64 for (std::size_t e =
exp; e > 0; e /= 2) {
65 if (e &
static_cast<std::size_t
>(1)) {
88 for (std::size_t e =
exp; e > 0; e /= 2) {
89 if (e &
static_cast<std::size_t
>(1)) {
carl is the main namespace for the library.
bool is_positive(const cln::cl_I &n)
void pow_assign(Interval< Number > &i, Integer exp)
Interval< Number > exp(const Interval< Number > &i)
bool is_zero(const Interval< Number > &i)
Check if this interval is a point-interval containing 0.
bool is_negative(const cln::cl_I &n)
Interval< Number > pow(const Interval< Number > &i, Integer exp)
bool is_one(const Interval< Number > &i)
Check if this interval is a point-interval containing 1.