Trait cubecl_cuda::compiler::unary::Unary
source · pub trait Unary {
// Required method
fn format_scalar<Input, Out>(
f: &mut Formatter<'_>,
input: Input,
out: Out,
elem: Elem,
) -> Result
where Input: Component,
Out: Component;
// Provided methods
fn format(f: &mut Formatter<'_>, input: &Variable, out: &Variable) -> Result { ... }
fn settings(_elem: Elem) -> InstructionSettings { ... }
fn format_native_vec4(
f: &mut Formatter<'_>,
input: &Variable,
out: &Variable,
elem: Elem,
) -> Result { ... }
fn format_native_vec3(
f: &mut Formatter<'_>,
input: &Variable,
out: &Variable,
elem: Elem,
) -> Result { ... }
fn format_native_vec2(
f: &mut Formatter<'_>,
input: &Variable,
out: &Variable,
elem: Elem,
) -> Result { ... }
fn unroll_vec2(
f: &mut Formatter<'_>,
input: &Variable,
out: &Variable,
elem: Elem,
) -> Result { ... }
fn unroll_vec3(
f: &mut Formatter<'_>,
input: &Variable,
out: &Variable,
elem: Elem,
) -> Result { ... }
fn unroll_vec4(
f: &mut Formatter<'_>,
input: &Variable,
out: &Variable,
elem: Elem,
) -> Result { ... }
fn unroll_vec(
f: &mut Formatter<'_>,
input: &Variable,
out: &Variable,
elem: Elem,
index: usize,
) -> Result { ... }
}
Required Methods§
fn format_scalar<Input, Out>( f: &mut Formatter<'_>, input: Input, out: Out, elem: Elem, ) -> Result
Provided Methods§
fn format(f: &mut Formatter<'_>, input: &Variable, out: &Variable) -> Result
fn settings(_elem: Elem) -> InstructionSettings
fn format_native_vec4( f: &mut Formatter<'_>, input: &Variable, out: &Variable, elem: Elem, ) -> Result
fn format_native_vec3( f: &mut Formatter<'_>, input: &Variable, out: &Variable, elem: Elem, ) -> Result
fn format_native_vec2( f: &mut Formatter<'_>, input: &Variable, out: &Variable, elem: Elem, ) -> Result
fn unroll_vec2( f: &mut Formatter<'_>, input: &Variable, out: &Variable, elem: Elem, ) -> Result
fn unroll_vec3( f: &mut Formatter<'_>, input: &Variable, out: &Variable, elem: Elem, ) -> Result
fn unroll_vec4( f: &mut Formatter<'_>, input: &Variable, out: &Variable, elem: Elem, ) -> Result
fn unroll_vec( f: &mut Formatter<'_>, input: &Variable, out: &Variable, elem: Elem, index: usize, ) -> Result
Object Safety§
This trait is not object safe.