pub struct tf32(/* private fields */);Expand description
Implementations§
Source§impl tf32
impl tf32
Sourcepub const fn from_f32(value: f32) -> tf32
pub const fn from_f32(value: f32) -> tf32
Constructs a tf32 value from a 32-bit floating point value.
This operation is lossy. If the 32-bit value is too large to fit, ±∞ will result. NaN values are preserved. Subnormal values that are too tiny to be represented will result in ±0. All other values are truncated and rounded to the nearest representable value.
Sourcepub const fn from_f64(value: f64) -> tf32
pub const fn from_f64(value: f64) -> tf32
Constructs a tf32 value from a 64-bit floating point value.
This operation is lossy. If the 64-bit value is to large to fit, ±∞ will result. NaN values are preserved. 64-bit subnormal values are too tiny to be represented and result in ±0. Exponents that underflow the minimum exponent will result in subnormals or ±0. All other values are truncated and rounded to the nearest representable value.
Trait Implementations§
Source§impl Abs for tf32
impl Abs for tf32
fn abs(self) -> Self
fn __expand_abs(scope: &Scope, x: NativeExpand<Self>) -> NativeExpand<Self>
Source§impl AbsNativeExpand for tf32
impl AbsNativeExpand for tf32
fn __expand_native_abs(scope: &Scope, input: ExpandValue) -> ExpandValue
Source§impl AddAssign for tf32
impl AddAssign for tf32
Source§fn add_assign(&mut self, rhs: tf32)
fn add_assign(&mut self, rhs: tf32)
+= operation. Read moreSource§impl AddNativeExpand for tf32
impl AddNativeExpand for tf32
fn __expand_native_add( scope: &Scope, this: ExpandValue, rhs: ExpandValue, ) -> ExpandValue
Source§impl ArcCos for tf32
impl ArcCos for tf32
fn acos(self) -> Self
fn __expand_acos(scope: &Scope, x: NativeExpand<Self>) -> NativeExpand<Self>
Source§impl ArcCosNativeExpand for tf32
impl ArcCosNativeExpand for tf32
fn __expand_native_acos(scope: &Scope, input: ExpandValue) -> ExpandValue
Source§impl ArcCosh for tf32
impl ArcCosh for tf32
fn acosh(self) -> Self
fn __expand_acosh(scope: &Scope, x: NativeExpand<Self>) -> NativeExpand<Self>
Source§impl ArcCoshNativeExpand for tf32
impl ArcCoshNativeExpand for tf32
fn __expand_native_acosh(scope: &Scope, input: ExpandValue) -> ExpandValue
Source§impl ArcSin for tf32
impl ArcSin for tf32
fn asin(self) -> Self
fn __expand_asin(scope: &Scope, x: NativeExpand<Self>) -> NativeExpand<Self>
Source§impl ArcSinNativeExpand for tf32
impl ArcSinNativeExpand for tf32
fn __expand_native_asin(scope: &Scope, input: ExpandValue) -> ExpandValue
Source§impl ArcSinh for tf32
impl ArcSinh for tf32
fn asinh(self) -> Self
fn __expand_asinh(scope: &Scope, x: NativeExpand<Self>) -> NativeExpand<Self>
Source§impl ArcSinhNativeExpand for tf32
impl ArcSinhNativeExpand for tf32
fn __expand_native_asinh(scope: &Scope, input: ExpandValue) -> ExpandValue
Source§impl ArcTan for tf32
impl ArcTan for tf32
fn atan(self) -> Self
fn __expand_atan(scope: &Scope, x: NativeExpand<Self>) -> NativeExpand<Self>
Source§impl ArcTan2 for tf32
impl ArcTan2 for tf32
fn atan2(self, _rhs: Self) -> Self
fn __expand_atan2( scope: &Scope, lhs: NativeExpand<Self>, rhs: NativeExpand<Self>, ) -> NativeExpand<Self>
Source§impl ArcTan2NativeExpand for tf32
impl ArcTan2NativeExpand for tf32
fn __expand_native_atan2( scope: &Scope, lhs: ExpandValue, rhs: ExpandValue, ) -> ExpandValue
Source§impl ArcTanNativeExpand for tf32
impl ArcTanNativeExpand for tf32
fn __expand_native_atan(scope: &Scope, input: ExpandValue) -> ExpandValue
Source§impl ArcTanh for tf32
impl ArcTanh for tf32
fn atanh(self) -> Self
fn __expand_atanh(scope: &Scope, x: NativeExpand<Self>) -> NativeExpand<Self>
Source§impl ArcTanhNativeExpand for tf32
impl ArcTanhNativeExpand for tf32
fn __expand_native_atanh(scope: &Scope, input: ExpandValue) -> ExpandValue
Source§impl AtomicNumeric for tf32
impl AtomicNumeric for tf32
fn __expand_fetch_add( scope: &Scope, ptr: ExpandValue, value: ExpandValue, ) -> ExpandValue
fn __expand_fetch_sub( scope: &Scope, ptr: ExpandValue, value: ExpandValue, ) -> ExpandValue
fn __expand_fetch_min( scope: &Scope, ptr: ExpandValue, value: ExpandValue, ) -> ExpandValue
fn __expand_fetch_max( scope: &Scope, ptr: ExpandValue, value: ExpandValue, ) -> ExpandValue
Source§impl Ceil for tf32
impl Ceil for tf32
fn ceil(self) -> Self
fn __expand_ceil(scope: &Scope, x: NativeExpand<Self>) -> NativeExpand<Self>
Source§impl CeilNativeExpand for tf32
impl CeilNativeExpand for tf32
fn __expand_native_ceil(scope: &Scope, input: ExpandValue) -> ExpandValue
impl Copy for tf32
Source§impl Cos for tf32
impl Cos for tf32
fn cos(self) -> Self
fn __expand_cos(scope: &Scope, x: NativeExpand<Self>) -> NativeExpand<Self>
Source§impl CosNativeExpand for tf32
impl CosNativeExpand for tf32
fn __expand_native_cos(scope: &Scope, input: ExpandValue) -> ExpandValue
Source§impl Cosh for tf32
impl Cosh for tf32
fn cosh(self) -> Self
fn __expand_cosh(scope: &Scope, x: NativeExpand<Self>) -> NativeExpand<Self>
Source§impl CoshNativeExpand for tf32
impl CoshNativeExpand for tf32
fn __expand_native_cosh(scope: &Scope, input: ExpandValue) -> ExpandValue
Source§impl CubeDebug for tf32
impl CubeDebug for tf32
Source§fn set_debug_name(&self, scope: &Scope, name: &'static str)
fn set_debug_name(&self, scope: &Scope, name: &'static str)
Source§impl CubeElement for tf32
impl CubeElement for tf32
Source§fn from_bytes(bytes: &[u8]) -> &[Self]
fn from_bytes(bytes: &[u8]) -> &[Self]
Source§fn maximum_value() -> Self
fn maximum_value() -> Self
Source§fn minimum_value() -> Self
fn minimum_value() -> Self
Source§impl CubePrimitive for tf32
impl CubePrimitive for tf32
type Scalar = tf32
type Size = Const<1>
type WithScalar<S: Scalar> = S
fn __expand_as_type(scope: &Scope) -> TypeHandle
fn from_const_value(value: ConstantValue) -> Self
Source§fn as_type() -> TypeHandle
fn as_type() -> TypeHandle
fn from_expand_elem(elem: ExpandValue) -> Self::ExpandType
fn into_lit_unchecked(self) -> Self
fn packing_factor() -> usize
fn vector_size() -> usize
fn __expand_size(scope: &Scope) -> usize
fn __expand_size_bits(scope: &Scope) -> usize
fn __expand_packing_factor(scope: &Scope) -> usize
fn __expand_vector_size(scope: &Scope) -> usize
Source§impl CubeType for tf32
impl CubeType for tf32
type ExpandType = NativeExpand<tf32>
Source§impl Degrees for tf32
impl Degrees for tf32
fn to_degrees(self) -> Self
fn __expand_to_degrees( scope: &Scope, x: NativeExpand<Self>, ) -> NativeExpand<Self>
Source§impl DegreesNativeExpand for tf32
impl DegreesNativeExpand for tf32
fn __expand_native_to_degrees(scope: &Scope, input: ExpandValue) -> ExpandValue
Source§impl<'de> Deserialize<'de> for tf32
impl<'de> Deserialize<'de> for tf32
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<tf32, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<tf32, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl DivAssign for tf32
impl DivAssign for tf32
Source§fn div_assign(&mut self, rhs: tf32)
fn div_assign(&mut self, rhs: tf32)
/= operation. Read moreSource§impl DivNativeExpand for tf32
impl DivNativeExpand for tf32
fn __expand_native_div( scope: &Scope, this: ExpandValue, rhs: ExpandValue, ) -> ExpandValue
Source§impl Dot for tf32
impl Dot for tf32
fn dot(self, _rhs: Self) -> Self::Scalar
fn __expand_dot( scope: &Scope, lhs: NativeExpand<Self>, rhs: NativeExpand<Self>, ) -> NativeExpand<Self::Scalar>
Source§impl DotNativeExpand for tf32
impl DotNativeExpand for tf32
fn __expand_native_dot_scalar( scope: &Scope, lhs: ExpandValue, rhs: ExpandValue, ) -> ExpandValue
fn __expand_native_dot( scope: &Scope, lhs: ExpandValue, rhs: ExpandValue, ) -> ExpandValue
Source§impl Erf for tf32
impl Erf for tf32
fn erf(self) -> Self
fn __expand_erf(scope: &Scope, x: NativeExpand<Self>) -> NativeExpand<Self>
Source§impl ErfNativeExpand for tf32
impl ErfNativeExpand for tf32
fn __expand_native_erf(scope: &Scope, input: ExpandValue) -> ExpandValue
Source§impl Exp for tf32
impl Exp for tf32
fn exp(self) -> Self
fn __expand_exp(scope: &Scope, x: NativeExpand<Self>) -> NativeExpand<Self>
Source§impl ExpNativeExpand for tf32
impl ExpNativeExpand for tf32
fn __expand_native_exp(scope: &Scope, input: ExpandValue) -> ExpandValue
Source§impl Expm1 for tf32
impl Expm1 for tf32
fn exp_m1(self) -> Self
fn __expand_exp_m1(scope: &Scope, x: NativeExpand<Self>) -> NativeExpand<Self>
Source§impl Expm1NativeExpand for tf32
impl Expm1NativeExpand for tf32
fn __expand_native_exp_m1(scope: &Scope, input: ExpandValue) -> ExpandValue
Source§impl Float for tf32
impl Float for tf32
Source§const MAX_10_EXP: i32 = 38
const MAX_10_EXP: i32 = 38
Maximum possible cubecl_common::tf32 power of 10 exponent
Source§const MAX_EXP: i32 = 128
const MAX_EXP: i32 = 128
Maximum possible cubecl_common::tf32 power of 2 exponent
Source§const MIN_10_EXP: i32 = -37
const MIN_10_EXP: i32 = -37
Minimum possible normal cubecl_common::tf32 power of 10 exponent
Source§const MIN_EXP: i32 = -125
const MIN_EXP: i32 = -125
One greater than the minimum possible normal cubecl_common::tf32 power of 2 exponent
Source§const MIN_POSITIVE: Self
const MIN_POSITIVE: Self
MIN_POSITIVE is defined by precision, so use f16 as reference
const DIGITS: u32 = 32
const EPSILON: Self
const INFINITY: Self
const MANTISSA_DIGITS: u32 = 10
const NAN: Self
const NEG_INFINITY: Self
const RADIX: u32 = 2
fn new(val: f32) -> Self
fn __expand_new(scope: &Scope, val: f32) -> <Self as CubeType>::ExpandType
Source§impl Floor for tf32
impl Floor for tf32
fn floor(self) -> Self
fn __expand_floor(scope: &Scope, x: NativeExpand<Self>) -> NativeExpand<Self>
Source§impl FloorNativeExpand for tf32
impl FloorNativeExpand for tf32
fn __expand_native_floor(scope: &Scope, input: ExpandValue) -> ExpandValue
Source§impl Hypot for tf32
impl Hypot for tf32
fn hypot(self, _rhs: Self) -> Self
fn __expand_hypot( scope: &Scope, lhs: NativeExpand<Self>, rhs: NativeExpand<Self>, ) -> NativeExpand<Self>
Source§impl HypotNativeExpand for tf32
impl HypotNativeExpand for tf32
fn __expand_native_hypot( scope: &Scope, lhs: ExpandValue, rhs: ExpandValue, ) -> ExpandValue
Source§impl IntoExpand for tf32
impl IntoExpand for tf32
type Expand = NativeExpand<tf32>
fn into_expand(self, _: &Scope) -> Self::Expand
Source§impl IntoRuntime for tf32
impl IntoRuntime for tf32
fn __expand_runtime_method(self, _scope: &Scope) -> NativeExpand<Self>
fn runtime(self) -> Self
Source§impl InverseSqrt for tf32
impl InverseSqrt for tf32
fn inverse_sqrt(self) -> Self
fn __expand_inverse_sqrt( scope: &Scope, x: NativeExpand<Self>, ) -> NativeExpand<Self>
Source§impl InverseSqrtNativeExpand for tf32
impl InverseSqrtNativeExpand for tf32
fn __expand_native_inverse_sqrt( scope: &Scope, input: ExpandValue, ) -> ExpandValue
Source§impl IsInf for tf32
impl IsInf for tf32
fn is_inf(self) -> Self::WithScalar<bool>
fn __expand_is_inf( scope: &Scope, x: NativeExpand<Self>, ) -> NativeExpand<Self::WithScalar<bool>>
Source§impl IsNan for tf32
impl IsNan for tf32
fn is_nan(self) -> Self::WithScalar<bool>
fn __expand_is_nan( scope: &Scope, x: NativeExpand<Self>, ) -> NativeExpand<Self::WithScalar<bool>>
Source§impl Log for tf32
impl Log for tf32
fn ln(self) -> Self
fn __expand_ln(scope: &Scope, x: NativeExpand<Self>) -> NativeExpand<Self>
Source§impl Log1p for tf32
impl Log1p for tf32
fn log1p(self) -> Self
fn __expand_log1p(scope: &Scope, x: NativeExpand<Self>) -> NativeExpand<Self>
Source§impl Log1pNativeExpand for tf32
impl Log1pNativeExpand for tf32
fn __expand_native_log1p(scope: &Scope, input: ExpandValue) -> ExpandValue
Source§impl LogNativeExpand for tf32
impl LogNativeExpand for tf32
fn __expand_native_ln(scope: &Scope, input: ExpandValue) -> ExpandValue
Source§impl Magnitude for tf32
impl Magnitude for tf32
fn magnitude(self) -> Self::Scalar
fn __expand_magnitude( scope: &Scope, x: NativeExpand<Self>, ) -> NativeExpand<Self::Scalar>
Source§impl MagnitudeNativeExpand for tf32
impl MagnitudeNativeExpand for tf32
fn __expand_native_magnitude_scalar( scope: &Scope, input: ExpandValue, ) -> ExpandValue
fn __expand_native_magnitude(scope: &Scope, input: ExpandValue) -> ExpandValue
Source§impl ModFloor for tf32
impl ModFloor for tf32
fn mod_floor(self, _rhs: Self) -> Self
fn __expand_mod_floor( scope: &Scope, lhs: NativeExpand<Self>, rhs: NativeExpand<Self>, ) -> NativeExpand<Self>
Source§impl ModFloorNativeExpand for tf32
impl ModFloorNativeExpand for tf32
fn __expand_native_mod_floor( scope: &Scope, lhs: ExpandValue, rhs: ExpandValue, ) -> ExpandValue
Source§impl MulAssign for tf32
impl MulAssign for tf32
Source§fn mul_assign(&mut self, rhs: tf32)
fn mul_assign(&mut self, rhs: tf32)
*= operation. Read moreSource§impl MulNativeExpand for tf32
impl MulNativeExpand for tf32
fn __expand_native_mul( scope: &Scope, this: ExpandValue, rhs: ExpandValue, ) -> ExpandValue
Source§impl NativeAssign for tf32
impl NativeAssign for tf32
fn elem_init_mut(scope: &Scope, elem: ExpandValue) -> ExpandValue
Source§impl NegNativeExpand for tf32
impl NegNativeExpand for tf32
fn __expand_native_neg(scope: &Scope, this: ExpandValue) -> ExpandValue
Source§impl Normalize for tf32
impl Normalize for tf32
fn normalize(self) -> Self
fn __expand_normalize( scope: &Scope, x: NativeExpand<Self>, ) -> NativeExpand<Self>
Source§impl Num for tf32
impl Num for tf32
Source§impl Numeric for tf32
impl Numeric for tf32
fn min_value() -> Self
fn max_value() -> Self
fn __expand_min_value(scope: &Scope) -> <Self as CubeType>::ExpandType
fn __expand_max_value(scope: &Scope) -> <Self as CubeType>::ExpandType
Source§fn from_int_128(val: i128) -> Self
fn from_int_128(val: i128) -> Self
i128 to be able to represent both signed integers, and
u64::MAX. Read morefn from_vec<const D: usize>(_vec: [u32; D]) -> Self
fn __expand_from_int( scope: &Scope, val: NativeExpand<i64>, ) -> <Self as CubeType>::ExpandType
Source§impl OrdNativeExpand for tf32
impl OrdNativeExpand for tf32
fn __expand_native_min( scope: &Scope, lhs: ExpandValue, rhs: ExpandValue, ) -> ExpandValue
fn __expand_native_max( scope: &Scope, lhs: ExpandValue, rhs: ExpandValue, ) -> ExpandValue
fn __expand_native_clamp( scope: &Scope, input: ExpandValue, min: ExpandValue, max: ExpandValue, ) -> ExpandValue
Source§impl PartialEqNativeExpand for tf32
impl PartialEqNativeExpand for tf32
fn __expand_native_eq( scope: &Scope, lhs: ExpandValue, rhs: ExpandValue, ) -> ExpandValue
fn __expand_native_ne( scope: &Scope, lhs: ExpandValue, rhs: ExpandValue, ) -> ExpandValue
Source§impl PartialOrd for tf32
impl PartialOrd for tf32
Source§impl PartialOrdNativeExpand for tf32
impl PartialOrdNativeExpand for tf32
fn __expand_native_lt( scope: &Scope, lhs: ExpandValue, rhs: ExpandValue, ) -> ExpandValue
fn __expand_native_le( scope: &Scope, lhs: ExpandValue, rhs: ExpandValue, ) -> ExpandValue
fn __expand_native_gt( scope: &Scope, lhs: ExpandValue, rhs: ExpandValue, ) -> ExpandValue
fn __expand_native_ge( scope: &Scope, lhs: ExpandValue, rhs: ExpandValue, ) -> ExpandValue
Source§impl PlaneNumeric for tf32
impl PlaneNumeric for tf32
fn __expand_native_sum(scope: &Scope, value: ExpandValue) -> ExpandValue
fn __expand_native_inclusive_sum( scope: &Scope, value: ExpandValue, ) -> ExpandValue
fn __expand_native_exclusive_sum( scope: &Scope, value: ExpandValue, ) -> ExpandValue
fn __expand_native_prod(scope: &Scope, value: ExpandValue) -> ExpandValue
fn __expand_native_inclusive_prod( scope: &Scope, value: ExpandValue, ) -> ExpandValue
fn __expand_native_exclusive_prod( scope: &Scope, value: ExpandValue, ) -> ExpandValue
fn __expand_native_plane_min(scope: &Scope, value: ExpandValue) -> ExpandValue
fn __expand_native_plane_max(scope: &Scope, value: ExpandValue) -> ExpandValue
impl Pod for tf32
Source§impl Powf for tf32
impl Powf for tf32
fn powf(self, _rhs: Self) -> Self
fn __expand_powf( scope: &Scope, lhs: NativeExpand<Self>, rhs: NativeExpand<Self>, ) -> NativeExpand<Self>
Source§impl PowfNativeExpand for tf32
impl PowfNativeExpand for tf32
fn __expand_native_powf( scope: &Scope, lhs: ExpandValue, rhs: ExpandValue, ) -> ExpandValue
Source§impl Powi<i32> for tf32
impl Powi<i32> for tf32
fn powi(self, _rhs: Rhs) -> Self
fn __expand_powi( scope: &Scope, lhs: NativeExpand<Self>, rhs: NativeExpand<Rhs>, ) -> NativeExpand<Self>
Source§impl Radians for tf32
impl Radians for tf32
fn to_radians(self) -> Self
fn __expand_to_radians( scope: &Scope, x: NativeExpand<Self>, ) -> NativeExpand<Self>
Source§impl RadiansNativeExpand for tf32
impl RadiansNativeExpand for tf32
fn __expand_native_to_radians(scope: &Scope, input: ExpandValue) -> ExpandValue
Source§impl Recip for tf32
impl Recip for tf32
fn recip(self) -> Self
fn __expand_recip(scope: &Scope, x: NativeExpand<Self>) -> NativeExpand<Self>
Source§impl RecipNativeExpand for tf32
impl RecipNativeExpand for tf32
fn __expand_native_recip(scope: &Scope, input: ExpandValue) -> ExpandValue
Source§impl RemAssign for tf32
impl RemAssign for tf32
Source§fn rem_assign(&mut self, rhs: tf32)
fn rem_assign(&mut self, rhs: tf32)
%= operation. Read moreSource§impl RemNativeExpand for tf32
impl RemNativeExpand for tf32
fn __expand_native_rem( scope: &Scope, this: ExpandValue, rhs: ExpandValue, ) -> ExpandValue
Source§impl Rhypot for tf32
impl Rhypot for tf32
fn rhypot(self, _rhs: Self) -> Self
fn __expand_rhypot( scope: &Scope, lhs: NativeExpand<Self>, rhs: NativeExpand<Self>, ) -> NativeExpand<Self>
Source§impl RhypotNativeExpand for tf32
impl RhypotNativeExpand for tf32
fn __expand_native_rhypot( scope: &Scope, lhs: ExpandValue, rhs: ExpandValue, ) -> ExpandValue
Source§impl Round for tf32
impl Round for tf32
fn round(self) -> Self
fn __expand_round(scope: &Scope, x: NativeExpand<Self>) -> NativeExpand<Self>
Source§impl RoundNativeExpand for tf32
impl RoundNativeExpand for tf32
fn __expand_native_round(scope: &Scope, input: ExpandValue) -> ExpandValue
Source§impl Serialize for tf32
impl Serialize for tf32
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Source§impl Sin for tf32
impl Sin for tf32
fn sin(self) -> Self
fn __expand_sin(scope: &Scope, x: NativeExpand<Self>) -> NativeExpand<Self>
Source§impl SinNativeExpand for tf32
impl SinNativeExpand for tf32
fn __expand_native_sin(scope: &Scope, input: ExpandValue) -> ExpandValue
Source§impl Sinh for tf32
impl Sinh for tf32
fn sinh(self) -> Self
fn __expand_sinh(scope: &Scope, x: NativeExpand<Self>) -> NativeExpand<Self>
Source§impl SinhNativeExpand for tf32
impl SinhNativeExpand for tf32
fn __expand_native_sinh(scope: &Scope, input: ExpandValue) -> ExpandValue
Source§impl Sqrt for tf32
impl Sqrt for tf32
fn sqrt(self) -> Self
fn __expand_sqrt(scope: &Scope, x: NativeExpand<Self>) -> NativeExpand<Self>
Source§impl SqrtNativeExpand for tf32
impl SqrtNativeExpand for tf32
fn __expand_native_sqrt(scope: &Scope, input: ExpandValue) -> ExpandValue
impl StructuralPartialEq for tf32
Source§impl SubAssign for tf32
impl SubAssign for tf32
Source§fn sub_assign(&mut self, rhs: tf32)
fn sub_assign(&mut self, rhs: tf32)
-= operation. Read moreSource§impl SubNativeExpand for tf32
impl SubNativeExpand for tf32
fn __expand_native_sub( scope: &Scope, this: ExpandValue, rhs: ExpandValue, ) -> ExpandValue
Source§impl Tan for tf32
impl Tan for tf32
fn tan(self) -> Self
fn __expand_tan(scope: &Scope, x: NativeExpand<Self>) -> NativeExpand<Self>
Source§impl TanNativeExpand for tf32
impl TanNativeExpand for tf32
fn __expand_native_tan(scope: &Scope, input: ExpandValue) -> ExpandValue
Source§impl Tanh for tf32
impl Tanh for tf32
fn tanh(self) -> Self
fn __expand_tanh(scope: &Scope, x: NativeExpand<Self>) -> NativeExpand<Self>
Source§impl TanhNativeExpand for tf32
impl TanhNativeExpand for tf32
fn __expand_native_tanh(scope: &Scope, input: ExpandValue) -> ExpandValue
Source§impl ToPrimitive for tf32
impl ToPrimitive for tf32
Source§fn to_i64(&self) -> Option<i64>
fn to_i64(&self) -> Option<i64>
self to an i64. If the value cannot be
represented by an i64, then None is returned.Source§fn to_u64(&self) -> Option<u64>
fn to_u64(&self) -> Option<u64>
self to a u64. If the value cannot be
represented by a u64, then None is returned.Source§fn to_f32(&self) -> Option<f32>
fn to_f32(&self) -> Option<f32>
self to an f32. Overflows may map to positive
or negative inifinity, otherwise None is returned if the value cannot
be represented by an f32.Source§fn to_f64(&self) -> Option<f64>
fn to_f64(&self) -> Option<f64>
self to an f64. Overflows may map to positive
or negative inifinity, otherwise None is returned if the value cannot
be represented by an f64. Read moreSource§fn to_isize(&self) -> Option<isize>
fn to_isize(&self) -> Option<isize>
self to an isize. If the value cannot be
represented by an isize, then None is returned.Source§fn to_i8(&self) -> Option<i8>
fn to_i8(&self) -> Option<i8>
self to an i8. If the value cannot be
represented by an i8, then None is returned.Source§fn to_i16(&self) -> Option<i16>
fn to_i16(&self) -> Option<i16>
self to an i16. If the value cannot be
represented by an i16, then None is returned.Source§fn to_i32(&self) -> Option<i32>
fn to_i32(&self) -> Option<i32>
self to an i32. If the value cannot be
represented by an i32, then None is returned.Source§fn to_i128(&self) -> Option<i128>
fn to_i128(&self) -> Option<i128>
self to an i128. If the value cannot be
represented by an i128 (i64 under the default implementation), then
None is returned. Read moreSource§fn to_usize(&self) -> Option<usize>
fn to_usize(&self) -> Option<usize>
self to a usize. If the value cannot be
represented by a usize, then None is returned.Source§fn to_u8(&self) -> Option<u8>
fn to_u8(&self) -> Option<u8>
self to a u8. If the value cannot be
represented by a u8, then None is returned.Source§fn to_u16(&self) -> Option<u16>
fn to_u16(&self) -> Option<u16>
self to a u16. If the value cannot be
represented by a u16, then None is returned.Source§impl Trunc for tf32
impl Trunc for tf32
fn trunc(self) -> Self
fn __expand_trunc(scope: &Scope, x: NativeExpand<Self>) -> NativeExpand<Self>
Source§impl TruncNativeExpand for tf32
impl TruncNativeExpand for tf32
fn __expand_native_trunc(scope: &Scope, input: ExpandValue) -> ExpandValue
Source§impl VectorSum for tf32
impl VectorSum for tf32
fn vector_sum(self) -> Self::Scalar
fn __expand_vector_sum( scope: &Scope, x: NativeExpand<Self>, ) -> NativeExpand<Self::Scalar>
Source§impl VectorSumNativeExpand for tf32
impl VectorSumNativeExpand for tf32
fn __expand_native_vector_sum_scalar( scope: &Scope, input: ExpandValue, ) -> ExpandValue
fn __expand_native_vector_sum(scope: &Scope, input: ExpandValue) -> ExpandValue
Auto Trait Implementations§
impl Freeze for tf32
impl RefUnwindSafe for tf32
impl Send for tf32
impl Sync for tf32
impl Unpin for tf32
impl UnsafeUnpin for tf32
impl UnwindSafe for tf32
Blanket Implementations§
impl<T> AnyBitPattern for Twhere
T: Pod,
Source§impl<T> Assign for Twhere
T: CubePrimitive,
impl<T> Assign for Twhere
T: CubePrimitive,
Source§fn __expand_assign_method(&mut self, _scope: &Scope, value: T)
fn __expand_assign_method(&mut self, _scope: &Scope, value: T)
value to self in scope.Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<T> CanReadValue for T
Source§impl<P> Cast for Pwhere
P: CubePrimitive,
impl<P> Cast for Pwhere
P: CubePrimitive,
fn cast_from<From>(_value: From) -> Pwhere
From: CubePrimitive,
fn __expand_cast_from<From: CubePrimitive>( scope: &Scope, value: NativeExpand<From>, ) -> <Self as CubeType>::ExpandType
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
bits
as &Self.Source§impl<T> CloneExpand for Twhere
T: Clone,
impl<T> CloneExpand for Twhere
T: Clone,
fn __expand_clone_method(&self, _: &Scope) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CubeAdd for Twhere
T: Add<Output = T> + CubePrimitive + IntoRuntime,
<T as CubePrimitive>::Scalar: AddNativeExpand,
impl<T> CubeAdd for Twhere
T: Add<Output = T> + CubePrimitive + IntoRuntime,
<T as CubePrimitive>::Scalar: AddNativeExpand,
fn __expand_add_method( self, scope: &Scope, rhs: NativeExpand<Self>, ) -> NativeExpand<Self>
fn __expand_add( scope: &Scope, lhs: NativeExpand<Self>, rhs: NativeExpand<Self>, ) -> NativeExpand<Self>
Source§impl<T> CubeAddAssign for T
impl<T> CubeAddAssign for T
fn __expand_add_assign( scope: &Scope, lhs: &mut NativeExpand<Self>, rhs: NativeExpand<Self>, )
Source§impl<T> CubeDiv for Twhere
T: Div<Output = T> + CubePrimitive + IntoRuntime,
<T as CubePrimitive>::Scalar: DivNativeExpand,
impl<T> CubeDiv for Twhere
T: Div<Output = T> + CubePrimitive + IntoRuntime,
<T as CubePrimitive>::Scalar: DivNativeExpand,
fn __expand_div_method( self, scope: &Scope, rhs: NativeExpand<Self>, ) -> NativeExpand<Self>
fn __expand_div( scope: &Scope, lhs: NativeExpand<Self>, rhs: NativeExpand<Self>, ) -> NativeExpand<Self>
Source§impl<T> CubeDivAssign for T
impl<T> CubeDivAssign for T
fn __expand_div_assign( scope: &Scope, lhs: &mut NativeExpand<Self>, rhs: NativeExpand<Self>, )
Source§impl<T> CubeMul for Twhere
T: Mul<Output = T> + CubePrimitive + IntoRuntime,
<T as CubePrimitive>::Scalar: MulNativeExpand,
impl<T> CubeMul for Twhere
T: Mul<Output = T> + CubePrimitive + IntoRuntime,
<T as CubePrimitive>::Scalar: MulNativeExpand,
fn __expand_mul_method( self, scope: &Scope, rhs: NativeExpand<Self>, ) -> NativeExpand<Self>
fn __expand_mul( scope: &Scope, lhs: NativeExpand<Self>, rhs: NativeExpand<Self>, ) -> NativeExpand<Self>
Source§impl<T> CubeMulAssign for T
impl<T> CubeMulAssign for T
fn __expand_mul_assign( scope: &Scope, lhs: &mut NativeExpand<Self>, rhs: NativeExpand<Self>, )
Source§impl<T> CubeNeg for Twhere
T: CubePrimitive + IntoExpand<Expand = <T as CubeType>::ExpandType> + Neg<Output = T>,
<T as CubePrimitive>::Scalar: NegNativeExpand,
impl<T> CubeNeg for Twhere
T: CubePrimitive + IntoExpand<Expand = <T as CubeType>::ExpandType> + Neg<Output = T>,
<T as CubePrimitive>::Scalar: NegNativeExpand,
fn __expand_neg_method(self, scope: &Scope) -> NativeExpand<Self>
fn __expand_neg(scope: &Scope, lhs: NativeExpand<Self>) -> NativeExpand<Self>
Source§impl<T> CubePartialEq for Twhere
T: PartialEq + CubePrimitive + IntoExpand<Expand = <T as CubeType>::ExpandType>,
<T as CubePrimitive>::Scalar: PartialEqNativeExpand,
impl<T> CubePartialEq for Twhere
T: PartialEq + CubePrimitive + IntoExpand<Expand = <T as CubeType>::ExpandType>,
<T as CubePrimitive>::Scalar: PartialEqNativeExpand,
fn __expand_eq_method( &self, scope: &Scope, rhs: &NativeExpand<Self>, ) -> NativeExpand<bool>
fn __expand_ne_method( &self, scope: &Scope, rhs: &NativeExpand<Self>, ) -> NativeExpand<bool>
fn __expand_eq( scope: &Scope, lhs: &NativeExpand<Self>, rhs: &NativeExpand<Self>, ) -> NativeExpand<bool>
fn __expand_ne( scope: &Scope, lhs: &NativeExpand<Self>, rhs: &NativeExpand<Self>, ) -> NativeExpand<bool>
Source§impl<T> CubePartialOrd for Twhere
T: PartialOrd + CubePrimitive,
<T as CubePrimitive>::Scalar: PartialOrdNativeExpand + OrdNativeExpand,
impl<T> CubePartialOrd for Twhere
T: PartialOrd + CubePrimitive,
<T as CubePrimitive>::Scalar: PartialOrdNativeExpand + OrdNativeExpand,
fn __expand_partial_cmp( scope: &Scope, lhs: &Self::ExpandType, rhs: &Self::ExpandType, ) -> OptionExpand<Ordering>
fn __expand_lt( scope: &Scope, lhs: &Self::ExpandType, rhs: &Self::ExpandType, ) -> NativeExpand<bool>
fn __expand_le( scope: &Scope, lhs: &Self::ExpandType, rhs: &Self::ExpandType, ) -> NativeExpand<bool>
fn __expand_gt( scope: &Scope, lhs: &Self::ExpandType, rhs: &Self::ExpandType, ) -> NativeExpand<bool>
fn __expand_ge( scope: &Scope, lhs: &Self::ExpandType, rhs: &Self::ExpandType, ) -> NativeExpand<bool>
Source§impl<T> CubeRem for Twhere
T: Rem<Output = T> + CubePrimitive + IntoRuntime,
<T as CubePrimitive>::Scalar: RemNativeExpand,
impl<T> CubeRem for Twhere
T: Rem<Output = T> + CubePrimitive + IntoRuntime,
<T as CubePrimitive>::Scalar: RemNativeExpand,
fn __expand_rem_method( self, scope: &Scope, rhs: NativeExpand<Self>, ) -> NativeExpand<Self>
fn __expand_rem( scope: &Scope, lhs: NativeExpand<Self>, rhs: NativeExpand<Self>, ) -> NativeExpand<Self>
Source§impl<T> CubeRemAssign for T
impl<T> CubeRemAssign for T
fn __expand_rem_assign( scope: &Scope, lhs: &mut NativeExpand<Self>, rhs: NativeExpand<Self>, )
Source§impl<T> CubeSub for Twhere
T: Sub<Output = T> + CubePrimitive + IntoRuntime,
<T as CubePrimitive>::Scalar: SubNativeExpand,
impl<T> CubeSub for Twhere
T: Sub<Output = T> + CubePrimitive + IntoRuntime,
<T as CubePrimitive>::Scalar: SubNativeExpand,
fn __expand_sub_method( self, scope: &Scope, rhs: NativeExpand<Self>, ) -> NativeExpand<Self>
fn __expand_sub( scope: &Scope, lhs: NativeExpand<Self>, rhs: NativeExpand<Self>, ) -> NativeExpand<Self>
Source§impl<T> CubeSubAssign for T
impl<T> CubeSubAssign for T
fn __expand_sub_assign( scope: &Scope, lhs: &mut NativeExpand<Self>, rhs: NativeExpand<Self>, )
Source§impl<T> DefaultExpand for T
impl<T> DefaultExpand for T
fn __expand_default(scope: &Scope) -> <T as CubeType>::ExpandType
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> FloatOps for Twhere
T: Float,
impl<T> FloatOps for Twhere
T: Float,
fn min(self, other: Self) -> Self
fn max(self, other: Self) -> Self
fn clamp(self, min: Self, max: Self) -> Self
fn __expand_min( scope: &Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType
fn __expand_max( scope: &Scope, this: <Self as CubeType>::ExpandType, other: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType
fn __expand_clamp( scope: &Scope, this: <Self as CubeType>::ExpandType, min: <Self as CubeType>::ExpandType, max: <Self as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreimpl<T> NativeCubeType for T
impl<T> NoUninit for Twhere
T: Pod,
impl<T> NumAssign for Twhere
T: Num + NumAssignOps,
impl<T, Rhs> NumAssignOps<Rhs> for T
impl<T, Rhs, Output> NumOps<Rhs, Output> for T
Source§impl<T> OneExpand for T
impl<T> OneExpand for T
fn __expand_one(scope: &Scope) -> <T as CubeType>::ExpandType
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<P> Reinterpret for Pwhere
P: CubePrimitive,
impl<P> Reinterpret for Pwhere
P: CubePrimitive,
Source§fn reinterpret<From: CubePrimitive>(value: From) -> Self
fn reinterpret<From: CubePrimitive>(value: From) -> Self
Source§fn reinterpret_vectorization<From: CubePrimitive>() -> usize
fn reinterpret_vectorization<From: CubePrimitive>() -> usize
fn __expand_reinterpret<From: CubePrimitive>( scope: &Scope, value: NativeExpand<From>, ) -> <Self as CubeType>::ExpandType
fn __expand_reinterpret_vectorization<From: CubePrimitive>( scope: &Scope, ) -> usize
Source§impl<T> RuntimeAssign for T
impl<T> RuntimeAssign for T
Source§fn init_mut(&self, scope: &Scope) -> NativeExpand<T>
fn init_mut(&self, scope: &Scope) -> NativeExpand<T>
scope.impl<T> ScalarAbs for Twhere
T: Abs + AbsNativeExpand,
impl<T> ScalarAdd for Twhere
T: CubeAdd + AddNativeExpand,
impl<T> ScalarArcCos for Twhere
T: ArcCos + ArcCosNativeExpand,
impl<T> ScalarArcCosh for Twhere
T: ArcCosh + ArcCoshNativeExpand,
impl<T> ScalarArcSin for Twhere
T: ArcSin + ArcSinNativeExpand,
impl<T> ScalarArcSinh for Twhere
T: ArcSinh + ArcSinhNativeExpand,
impl<T> ScalarArcTan for Twhere
T: ArcTan + ArcTanNativeExpand,
impl<T> ScalarArcTan2 for Twhere
T: ArcTan2 + ArcTan2NativeExpand,
impl<T> ScalarArcTanh for Twhere
T: ArcTanh + ArcTanhNativeExpand,
Source§impl<E> ScalarArgSettings for Ewhere
E: ScalarArgType,
impl<E> ScalarArgSettings for Ewhere
E: ScalarArgType,
Source§fn register<R>(&self, launcher: &mut KernelLauncher<R>)where
R: Runtime,
fn register<R>(&self, launcher: &mut KernelLauncher<R>)where
R: Runtime,
KernelLauncher.