Skip to main content

RankedTensor

Trait RankedTensor 

Source
pub trait RankedTensor<D, const RANK: usize>: Clone
where D: Dtype,
{ const SHAPE: [usize; RANK]; }
Expand description

A tensor with a statically-known shape.

Required Associated Constants§

Source

const SHAPE: [usize; RANK]

This tensor’s shape.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<D, const RANK: usize> RankedTensor<D, RANK> for SymTensor
where D: Dtype,

Source§

impl<D: Dtype, const RANK: usize> RankedTensor<D, RANK> for LlvmTensor<D>