Trait TensorIterator

Source
pub trait TensorIterator<'a, T: CommonBounds>
where Self: TensorInfo<T> + 'a, &'a Self: TensorInfo<T>, &'a mut Self: TensorInfo<T>,
{ // Provided methods fn iter(&'a self) -> Strided<T> { ... } fn iter_mut(&'a mut self) -> StridedMut<'a, T> { ... } fn iter_simd(&'a self) -> StridedSimd<T> { ... } fn iter_mut_simd(&'a self) -> StridedMutSimd<'a, T> { ... } fn par_iter_simd(&'a self) -> ParStridedSimd<T> { ... } fn par_iter_mut_simd(&'a mut self) -> ParStridedMutSimd<'a, T> { ... } fn par_iter(&'a self) -> ParStrided<T> { ... } fn par_iter_mut(&'a mut self) -> ParStridedMut<'a, T> { ... } }
Expand description

A trait for converting a tensor into an iterator.

Provided Methods§

Source

fn iter(&'a self) -> Strided<T>

Convert the tensor into a strided iterator.

strided iterator is a single-threaded iterator

Source

fn iter_mut(&'a mut self) -> StridedMut<'a, T>

Convert the tensor into a mutable strided iterator.

strided iterator is a single-threaded iterator

Source

fn iter_simd(&'a self) -> StridedSimd<T>

Convert the tensor into a strided simd iterator.

strided simd iterator is a single-threaded simd iterator

Source

fn iter_mut_simd(&'a self) -> StridedMutSimd<'a, T>

Convert the tensor into a mutable strided simd iterator.

strided simd iterator is a single-threaded simd iterator

Source

fn par_iter_simd(&'a self) -> ParStridedSimd<T>

Convert the tensor into a parallel strided simd iterator.

parallel strided simd iterator is a multi-threaded simd iterator

Source

fn par_iter_mut_simd(&'a mut self) -> ParStridedMutSimd<'a, T>

Convert the tensor into a mutable parallel strided simd iterator.

parallel strided simd iterator is a multi-threaded simd iterator

Source

fn par_iter(&'a self) -> ParStrided<T>

Convert the tensor into a parallel strided iterator.

parallel strided iterator is a multi-threaded iterator

Source

fn par_iter_mut(&'a mut self) -> ParStridedMut<'a, T>

Convert the tensor into a mutable parallel strided iterator.

parallel strided iterator is a multi-threaded iterator

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§