Tensor

Trait Tensor 

Source
pub trait Tensor: Clone {
    // Required methods
    fn shape(&self) -> &[usize];
    fn zeros(shape: Vec<usize>) -> Self;
}
Expand description

TODO

Required Methods§

Source

fn shape(&self) -> &[usize]

TODO

Source

fn zeros(shape: Vec<usize>) -> Self

TODO

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<'a> Tensor for Tensor<'a>