|
Tannic
A C++ Tensor Library
|
Defines element-wise comparison operations for tensor expressions. More...

Go to the source code of this file.
Classes | |
| class | tannic::expression::Comparison< Criteria, First, Second > |
| Expression template for element-wise tensor comparisons. More... | |
| struct | tannic::expression::EQ |
| struct | tannic::expression::NE |
| struct | tannic::expression::GT |
| struct | tannic::expression::GE |
| struct | tannic::expression::LT |
| struct | tannic::expression::LE |
Namespaces | |
| namespace | tannic |
| namespace | tannic::expression |
Functions | |
| template<Expression First, Expression Second> | |
| constexpr auto | tannic::expression::operator== (First &&lhs, Second &&rhs) |
| template<Expression First, Expression Second> | |
| constexpr auto | tannic::expression::operator!= (First &&lhs, Second &&rhs) |
| template<Expression First, Expression Second> | |
| constexpr auto | tannic::expression::operator< (First &&lhs, Second &&rhs) |
| template<Expression First, Expression Second> | |
| constexpr auto | tannic::expression::operator<= (First &&lhs, Second &&rhs) |
| template<Expression First, Expression Second> | |
| constexpr auto | tannic::expression::operator> (First &&lhs, Second &&rhs) |
| template<Expression First, Expression Second> | |
| constexpr auto | tannic::expression::operator>= (First &&lhs, Second &&rhs) |
| bool | tannic::expression::allclose (Tensor const &first, Tensor const &second, double rtol=1e-5f, double atol=1e-8f) |
| Determine whether two tensors are element-wise equal within a tolerance. | |
Defines element-wise comparison operations for tensor expressions.
This header provides lazy-evaluated comparison operators for Tensor and expression types. All comparisons are element-wise and produce boolean tensors of the same shape as the operands.
Supported operators:
== (equal)!= (not equal)< (less than)<= (less than or equal)> (greater than)>= (greater than or equal)Part of the Tannic Tensor Library.