pub trait Comparison<Rhs = Self> {
type BoolTensor;
// Required methods
fn lt(self, other: Rhs) -> Self::BoolTensor;
fn le(self, other: Rhs) -> Self::BoolTensor;
fn gt(self, other: Rhs) -> Self::BoolTensor;
fn ge(self, other: Rhs) -> Self::BoolTensor;
fn eq(self, other: Rhs) -> Self::BoolTensor;
fn ne(self, other: Rhs) -> Self::BoolTensor;
}Expand description
Element-wise comparison against Rhs, producing a boolean-valued tensor.
Required Associated Types§
Sourcetype BoolTensor
type BoolTensor
The boolean-valued tensor type produced by these comparisons.
Required Methods§
Sourcefn lt(self, other: Rhs) -> Self::BoolTensor
fn lt(self, other: Rhs) -> Self::BoolTensor
Element-wise less-than.
Sourcefn le(self, other: Rhs) -> Self::BoolTensor
fn le(self, other: Rhs) -> Self::BoolTensor
Element-wise less-than-or-equal.
Sourcefn gt(self, other: Rhs) -> Self::BoolTensor
fn gt(self, other: Rhs) -> Self::BoolTensor
Element-wise greater-than.
Sourcefn ge(self, other: Rhs) -> Self::BoolTensor
fn ge(self, other: Rhs) -> Self::BoolTensor
Element-wise greater-than-or-equal.
Sourcefn eq(self, other: Rhs) -> Self::BoolTensor
fn eq(self, other: Rhs) -> Self::BoolTensor
Element-wise equality.
Sourcefn ne(self, other: Rhs) -> Self::BoolTensor
fn ne(self, other: Rhs) -> Self::BoolTensor
Element-wise inequality.