aGrUM 3.0.0
a C++ library for (probabilistic) graphical models
gum::GUM_Numeric Concept Reference

Complete concept for GUM_SCALAR template parameter. More...

#include <concepts.h>

Concept definition

template< typename T >
Concept checking that std::numeric_limits is specialized for a type.
Definition concepts.h:70
Concept defining requirements for scalar types used as GUM_SCALAR.
Definition concepts.h:99
Complete concept for GUM_SCALAR template parameter.
Definition concepts.h:148

Detailed Description

Complete concept for GUM_SCALAR template parameter.

Combines IsGumScalar arithmetic requirements with HasNumericLimits to ensure the type can be used in all aGrUM operations including:

  • Tensor operations and aggregations
  • Probability computations
  • Min/max projections (using numeric_limits::min/max as neutral elements)
  • Continuous variables (using numeric_limits::infinity for bounds)
Template Parameters
TThe type to check
// Usage example:
template < GUM_Numeric GUM_SCALAR >
class BayesNet { ... };
template < GUM_Numeric GUM_SCALAR >
class Tensor { ... };
Class representing a Bayesian network.
Definition BayesNet.h:93
aGrUM's Tensor is a multi-dimensional array with tensor operators.
Definition tensor.h:85

Definition at line 148 of file concepts.h.