MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / expr

Class expr

extern/half/include/half.hpp:352–365  ·  view source on GitHub ↗

Temporary half-precision expression. This class represents a half-precision expression which just stores a single-precision value internally.

Source from the content-addressed store, hash-verified

350 /// Temporary half-precision expression.
351 /// This class represents a half-precision expression which just stores a single-precision value internally.
352 struct expr
353 {
354 /// Conversion constructor.
355 /// \param f single-precision value to convert
356 explicit HALF_CONSTEXPR expr(float f) HALF_NOEXCEPT : value_(f) {}
357
358 /// Conversion to single-precision.
359 /// \return single precision value representing expression value
360 HALF_CONSTEXPR operator float() const HALF_NOEXCEPT { return value_; }
361
362 private:
363 /// Internal expression value stored in single-precision.
364 float value_;
365 };
366
367 /// SFINAE helper for generic half-precision functions.
368 /// This class template has to be specialized for each valid combination of argument types to provide a corresponding

Callers 15

plusMethod · 0.85
minusMethod · 0.85
multipliesMethod · 0.85
dividesMethod · 0.85
fmodMethod · 0.85
remainderMethod · 0.85
remquoMethod · 0.85
fdimMethod · 0.85
fmaMethod · 0.85
expMethod · 0.85
expm1Method · 0.85
exp2Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected