Skip to main content

TensorStorageRef

Trait TensorStorageRef 

Source
pub trait TensorStorageRef {
    // Required method
    fn buffer(&self) -> &[f64];
}

Required Methods§

Source

fn buffer(&self) -> &[f64]

Reference to underlying buffer for tensor storage. This is only gaurenteed to be >= the most recent call to length.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl TensorStorageRef for Vec<f64>

Source§

fn buffer(&self) -> &[f64]

Source§

impl TensorStorageRef for f64

Source§

fn buffer(&self) -> &[f64]

Source§

impl<'a> TensorStorageRef for &'a [f64]

Source§

fn buffer(&self) -> &[f64]

Source§

impl<'a> TensorStorageRef for &'a mut [f64]

Source§

fn buffer(&self) -> &[f64]

Source§

impl<const L: usize> TensorStorageRef for [f64; L]

Source§

fn buffer(&self) -> &[f64]

Implementors§