Trait ha_ndarray::CType
source · pub trait CType: PartialEq + PartialOrd + Copy + Send + Sync + Display + Debug + 'static {
type Float: Float;
const TYPE: &'static str;
const MAX: Self;
const MIN: Self;
const ZERO: Self;
const ONE: Self;
const IS_FLOAT: bool;
Show 14 methods
// Required methods
fn from_f64(float: f64) -> Self;
fn from_float(float: Self::Float) -> Self;
fn abs(self) -> Self;
fn add(self, other: Self) -> Self;
fn div(self, other: Self) -> Self;
fn mul(self, other: Self) -> Self;
fn sub(self, other: Self) -> Self;
fn rem(self, other: Self) -> Self;
fn min(l: Self, r: Self) -> Self;
fn max(l: Self, r: Self) -> Self;
fn pow(self, exp: Self) -> Self;
fn round(self) -> Self;
fn to_f64(self) -> f64;
fn to_float(self) -> Self::Float;
}
Expand description
A numeric type supported by ha-ndarray
Required Associated Types§
Required Associated Constants§
Required Methods§
sourcefn from_float(float: Self::Float) -> Self
fn from_float(float: Self::Float) -> Self
Construct an instance of this type from an instance of its floating-point type.
Object Safety§
This trait is not object safe.