Skip to content

mp_units::utility

Types

NameDescription
binomial_distribution
binomial_distribution
cartesian_tensor
cartesian_vector
cauchy_distribution
cauchy_distribution
chi_squared_distribution
chi_squared_distribution
constrained A transparent wrapper that carries an error policy for domain constraint enforcement.
discrete_distribution
discrete_distribution
exponential_distribution
exponential_distribution
extreme_value_distribution
extreme_value_distribution
fill_align_width_format_specs
fill_t
fisher_f_distribution
fisher_f_distribution
fmt_arg_ref
gamma_distribution
gamma_distribution
geometric_distribution
geometric_distribution
lognormal_distribution
lognormal_distribution
negative_binomial_distribution
negative_binomial_distribution
normal_distribution
normal_distribution
piecewise_constant_distribution
piecewise_constant_distribution
piecewise_linear_distribution
piecewise_linear_distribution
poisson_distribution
poisson_distribution
polar_vector A 2-D polar coordinate facade: a scalar-quantity radius r and an angle theta from the +x axis (counter-clockwise).
safe_int Wraps an integral type with overflow detection.
safe_int_terminate_policy Error policy that terminates the program on overflow (always available, freestanding-safe).
safe_int_throw_policy Error policy that throws std::overflow_error on overflow (hosted only).
spherical_vector A 3-D spherical coordinate facade (ISO physics convention): a scalar-quantity radius r, inclination theta from +z in [0, pi], and azimuth phi from +x in [-pi, pi].
student_t_distribution
student_t_distribution
terminate_policy Error policy that terminates the program on constraint violation (freestanding-safe).
throw_policy Error policy that throws std::domain_error on constraint violation (hosted only).
uncertain
uncertain A representation type for values with uncertainties
uniform_int_distribution
uniform_int_distribution
uniform_real_distribution
uniform_real_distribution
unspecified_t Sentinel default for a specializable variable-template customization point with no usable default.
weibull_distribution
weibull_distribution
width_checker

Type Aliases

Enums

Functions

NameDescription
abs Absolute value of an uncertain value
acos Arc cosine of an uncertain value (result in radians)
asin Arc sine of an uncertain value (result in radians)
at_most_one_of
atan Arc tangent of an uncertain value (result in radians)
atan2 Two-argument arc tangent (result in radians)
cbrt Cube root of an uncertain value
cos Cosine of an uncertain value (argument in radians)
exp Exponential function of an uncertain value
fold_conversion_uncertainty Adds the uncertainty of a unit conversion factor to the value
get
handle_dynamic_spec
log Natural logarithm of an uncertain value
log10 Common (base-10) logarithm of an uncertain value
log2 Binary (base-2) logarithm of an uncertain value
magnitude
measurement_of Returns a measured constant as a quantity with an uncertain representation
norm
operator% Modulus operators
operator* Multiplication operators
operator+ Addition of two uncertain values
operator- Subtraction of two uncertain values
operator/ Division operators
parse_align
parse_dynamic_spec
parse_fill_align_width
parse_nonnegative_int
pow Power function with runtime exponent
sin Sine of an uncertain value (argument in radians)
sqrt Square root of an uncertain value
tan Tangent of an uncertain value (argument in radians)
tensor_product
unit_vector
write_padded Writes a string to an output iterator with fill/align/width padding.
operator<< Stream insertion operators
operator== Equality operators
operator<=> Three-way comparison operators

Variables

NameDescription
radian_of Maps an angle quantity kind to the unit that measures one radian in that kind's system.
unspecified

Concepts

NameDescription
Complex A complex-field representation type.
ComplexScalar A complex scalar: complex field with real()/imag()/modulus().
ConstraintPolicy
OverflowPolicy
Real A real-field representation type.
RealScalar A real scalar (tensor order 0): real field, totally ordered, self-scalable.
Scalar A scalar (real or complex, tensor order 0) - the element type a vector/tensor is built from.
Tensor A second-order tensor (or a lower-order type filling its slot).
Vector A vector (a scalar, or a magnitude-bearing tensor-order-1 type).
specified Satisfied when a customization point has been given a value (i.e. is not unspecified).