ALP User Documentation 0.7.0
Algebraic Programming User Documentation
List of all members
abs_diff< D1, D2, D3, implementation > Class Template Reference

This operator returns the absolute difference between two numbers. More...

#include <ops.hpp>

Inherits Operator< internal::abs_diff< D1, D1, D1, config::default_backend > >.

Detailed Description

template<typename D1, typename D2 = D1, typename D3 = D2, enum Backend implementation = config::default_backend>
class grb::operators::abs_diff< D1, D2, D3, implementation >

This operator returns the absolute difference between two numbers.

Mathematical notation: \( \odot(x,y) \to |x-y| \).

Warning
This operator expects numerical types for D1, D2, and D3, or types that have the appropriate operator- and std::abs overloads available.
See also
square_diff

The documentation for this class was generated from the following file: