Skip to main content

TensorRank1RefVec

Type Alias TensorRank1RefVec 

Source
pub type TensorRank1RefVec<'a, const D: usize, I, U = Dimensionless> = TensorVector<&'a TensorRank1<D, I, U>>;
Expand description

A vector of references to rank-1 tensors.

Aliased Type§

pub struct TensorRank1RefVec<'a, const D: usize, I, U = Dimensionless>(/* private fields */);

Implementations§

Source§

impl<'a, const D: usize, I, U> TensorRank1RefVec<'a, D, I, U>

Source

pub fn bounding_box(&self) -> TensorRank1List<D, I, 2, U>

Source

pub fn iter(&self) -> impl Iterator<Item = &&TensorRank1<D, I, U>>

Source

pub fn is_empty(&self) -> bool

Source

pub fn len(&self) -> usize

Trait Implementations§

Source§

impl<'a, const D: usize, I, U> Index<usize> for TensorRank1RefVec<'a, D, I, U>

Source§

type Output = TensorRank1<D, I, U>

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

Performs the indexing (container[index]) operation. Read more