pub struct TraceDescriptor {
pub n: i32,
pub element: ElementKind,
}Expand description
Descriptor for a matrix-trace reduction.
n is the matrix dimension (rows == cols). The kernel walks the
diagonal of an n × n matrix, accumulating in f32 for half-precision
inputs (native dtype for f32 / f64).
Fields§
§n: i32Matrix dimension — rows == cols == n. Must be non-negative.
element: ElementKindElement type.
Trait Implementations§
Source§impl Clone for TraceDescriptor
impl Clone for TraceDescriptor
Source§fn clone(&self) -> TraceDescriptor
fn clone(&self) -> TraceDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TraceDescriptor
Auto Trait Implementations§
impl Freeze for TraceDescriptor
impl RefUnwindSafe for TraceDescriptor
impl Send for TraceDescriptor
impl Sync for TraceDescriptor
impl Unpin for TraceDescriptor
impl UnsafeUnpin for TraceDescriptor
impl UnwindSafe for TraceDescriptor
Blanket Implementations§
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
Mutably borrows from an owned value. Read more