TensorLibraryData

Trait TensorLibraryData 

Source
pub trait TensorLibraryData: Neg<Output = Self> {
    // Required methods
    fn one() -> Self;
    fn minus_one() -> Self;
    fn zero() -> Self;
}

Required Methods§

Source

fn one() -> Self

Source

fn minus_one() -> Self

Source

fn zero() -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl TensorLibraryData for Atom

Source§

fn zero() -> Self

Returns the additive identity element (zero) of this type.

Source§

fn minus_one() -> Self

Returns the additive inverse element (minus one) of this type.

Source§

fn one() -> Self

Returns the multiplicative identity element (one) of this type.

Source§

impl TensorLibraryData for f32

Source§

fn zero() -> Self

Returns the additive identity element (zero) of this type.

Source§

fn minus_one() -> Self

Returns the additive inverse element (minus one) of this type.

Source§

fn one() -> Self

Returns the multiplicative identity element (one) of this type.

Source§

impl TensorLibraryData for f64

Source§

fn zero() -> Self

Returns the additive identity element (zero) of this type.

Source§

fn minus_one() -> Self

Returns the additive inverse element (minus one) of this type.

Source§

fn one() -> Self

Returns the multiplicative identity element (one) of this type.

Source§

impl TensorLibraryData for i32

Source§

fn zero() -> Self

Returns the additive identity element (zero) of this type.

Source§

fn minus_one() -> Self

Returns the additive inverse element (minus one) of this type.

Source§

fn one() -> Self

Returns the multiplicative identity element (one) of this type.

Source§

impl TensorLibraryData for i64

Source§

fn zero() -> Self

Returns the additive identity element (zero) of this type.

Source§

fn minus_one() -> Self

Returns the additive inverse element (minus one) of this type.

Source§

fn one() -> Self

Returns the multiplicative identity element (one) of this type.

Implementors§