Trait TensorLibraryData
Source pub trait TensorLibraryData: Neg<Output = Self> {
// Required methods
fn one() -> Self;
fn minus_one() -> Self;
fn zero() -> Self;
}
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Returns the additive identity element (zero) of this type.
Returns the additive inverse element (minus one) of this type.
Returns the multiplicative identity element (one) of this type.
Returns the additive identity element (zero) of this type.
Returns the additive inverse element (minus one) of this type.
Returns the multiplicative identity element (one) of this type.
Returns the additive identity element (zero) of this type.
Returns the additive inverse element (minus one) of this type.
Returns the multiplicative identity element (one) of this type.
Returns the additive identity element (zero) of this type.
Returns the additive inverse element (minus one) of this type.
Returns the multiplicative identity element (one) of this type.
Returns the additive identity element (zero) of this type.
Returns the additive inverse element (minus one) of this type.
Returns the multiplicative identity element (one) of this type.