Skip to main content

RankedTensor

Trait RankedTensor 

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§

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§

§

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

§

const SHAPE: [usize; RANK]

Source§

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