Stratax
Scientific computing containers and operations
Loading...
Searching...
No Matches
Comparison.hpp File Reference

Go to the source code of this file.

Functions

template<Array A>
bool operator== (const A &lhs, const A &rhs)
 Compares two array-like containers for exact equality.
template<Array A>
bool operator!= (const A &lhs, const A &rhs)
 Compares two array-like containers for inequality.

Function Documentation

◆ operator!=()

template<Array A>
bool operator!= ( const A & lhs,
const A & rhs )
nodiscard

Compares two array-like containers for inequality.

Template Parameters
AArray type satisfying the Stratax array concept.
Parameters
lhsLeft-hand operand.
rhsRight-hand operand.
Returns
true if the arrays differ in shape or element values.

Definition at line 48 of file Comparison.hpp.

◆ operator==()

template<Array A>
bool operator== ( const A & lhs,
const A & rhs )
nodiscard

Compares two array-like containers for exact equality.

Template Parameters
AArray type satisfying the Stratax array concept.
Parameters
lhsLeft-hand operand.
rhsRight-hand operand.
Returns
true if both arrays have the same shape and element values.

Definition at line 17 of file Comparison.hpp.

References stratax::core::validation::same_shape().