Trait burn::tensor::ElementComparison

source ·
pub trait ElementComparison {
    // Required method
    fn cmp(&self, other: &Self) -> Ordering;
}
Expand description

Element ordering trait.

Required Methods§

source

fn cmp(&self, other: &Self) -> Ordering

Returns and Ordering between self and other.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ElementComparison for f32

source§

fn cmp(&self, other: &f32) -> Ordering

source§

impl ElementComparison for f64

source§

fn cmp(&self, other: &f64) -> Ordering

source§

impl ElementComparison for i8

source§

fn cmp(&self, other: &i8) -> Ordering

source§

impl ElementComparison for i16

source§

fn cmp(&self, other: &i16) -> Ordering

source§

impl ElementComparison for i32

source§

fn cmp(&self, other: &i32) -> Ordering

source§

impl ElementComparison for i64

source§

fn cmp(&self, other: &i64) -> Ordering

source§

impl ElementComparison for u8

source§

fn cmp(&self, other: &u8) -> Ordering

source§

impl ElementComparison for u32

source§

fn cmp(&self, other: &u32) -> Ordering

Implementors§