carl  24.04
Computer ARithmetic Library
Sign.h File Reference
#include <carl-logging/carl-logging.h>
#include <carl-arith/numbers/numbers.h>
#include <functional>
#include <iostream>
Include dependency graph for Sign.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 carl
 carl is the main namespace for the library.
 

Enumerations

enum class  carl::Sign { carl::NEGATIVE = -1 , carl::ZERO = 0 , carl::POSITIVE = 1 }
 This class represents the sign of a number $n$. More...
 

Functions

std::ostream & carl::operator<< (std::ostream &os, const Sign &sign)
 
template<typename Number >
Sign carl::sgn (const Number &n)
 Obtain the sign of the given number. More...
 
template<typename InputIterator >
std::size_t carl::sign_variations (InputIterator begin, InputIterator end)
 Counts the number of sign variations in the given object range. More...
 
template<typename InputIterator , typename Function >
std::size_t carl::sign_variations (InputIterator begin, InputIterator end, const Function &f)
 Counts the number of sign variations in the given object range. More...
 

Detailed Description

Author
Sebastian Junges
Since
August 23, 2013

Definition in file Sign.h.