Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
tracked.hpp File Reference
#include <cmath>
#include <limits>
#include <type_traits>
#include <ostream>
#include <iomanip>
#include <string>
#include "error_tracking_traits.hpp"
#include "tracked_exact.hpp"
#include "tracked_shadow.hpp"
#include "tracked_bounded.hpp"
#include "tracked_statistical.hpp"

Classes

class  sw::universal::TrackedAreal< ArealType >
 TrackedAreal exposes areal's native ubit uncertainty tracking with a consistent interface matching other tracked types. More...
class  sw::universal::TrackedInterval< Scalar >
 TrackedInterval exposes interval's native bound tracking with a consistent interface matching other tracked types. More...
struct  sw::universal::detail::tracked_impl< T, Strategy >
struct  sw::universal::detail::tracked_impl< T, ErrorStrategy::Exact >
struct  sw::universal::detail::tracked_impl< T, ErrorStrategy::Shadow >
struct  sw::universal::detail::tracked_impl< T, ErrorStrategy::Bounded >
struct  sw::universal::detail::tracked_impl< T, ErrorStrategy::Statistical >
struct  sw::universal::detail::is_areal< T >
struct  sw::universal::detail::is_areal< areal< nbits, es, bt > >
struct  sw::universal::detail::is_interval< T >
struct  sw::universal::detail::is_interval< interval< Scalar > >
struct  sw::universal::detail::tracked_base_selector< T, Strategy, typename >
struct  sw::universal::detail::tracked_base_selector< T, Strategy, std::enable_if_t< is_areal< T >::value > >
struct  sw::universal::detail::tracked_base_selector< T, Strategy, std::enable_if_t< is_interval< T >::value > >
class  sw::universal::Tracked< T, Strategy >
 Tracked<T> automatically selects the appropriate error tracking strategy based on the type's capabilities via error_tracking_traits<T>. More...
class  sw::universal::Tracked< interval< Scalar >, Strategy >

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal
namespace  sw::universal::detail

Typedefs

template<typename T, ErrorStrategy Strategy>
using sw::universal::detail::tracked_base_t = typename tracked_base_selector<T, Strategy>::type

Functions

template<typename ArealType>
std::ostream & sw::universal::operator<< (std::ostream &os, const TrackedAreal< ArealType > &v)
template<typename Scalar>
std::ostream & sw::universal::operator<< (std::ostream &os, const TrackedInterval< Scalar > &v)
template<typename ArealType>
TrackedAreal< ArealType > sw::universal::abs (const TrackedAreal< ArealType > &v)
template<typename ArealType>
TrackedAreal< ArealType > sw::universal::sqrt (const TrackedAreal< ArealType > &v)
template<typename Scalar>
TrackedInterval< Scalar > sw::universal::abs (const TrackedInterval< Scalar > &v)
template<typename Scalar>
TrackedInterval< Scalar > sw::universal::sqrt (const TrackedInterval< Scalar > &v)
template<typename T, ErrorStrategy S>
std::string sw::universal::type_tag (const Tracked< T, S > &={})
template<typename ArealType>
std::string sw::universal::type_tag (const TrackedAreal< ArealType > &={})
template<typename Scalar>
std::string sw::universal::type_tag (const TrackedInterval< Scalar > &={})