pub struct TensorRank1Vec2D<const D: usize, const I: usize>(/* private fields */);
Expand description
A 2D vector of d-dimensional tensors of rank 1.
D
is the dimension, I
is the configuration.
Implementations§
Source§impl<const D: usize, const I: usize> TensorRank1Vec2D<D, I>
impl<const D: usize, const I: usize> TensorRank1Vec2D<D, I>
pub fn iter(&self) -> impl Iterator<Item = &TensorRank1Vec<D, I>>
pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut TensorRank1Vec<D, I>>
Trait Implementations§
Source§impl<const D: usize, const I: usize> Clone for TensorRank1Vec2D<D, I>
impl<const D: usize, const I: usize> Clone for TensorRank1Vec2D<D, I>
Source§fn clone(&self) -> TensorRank1Vec2D<D, I>
fn clone(&self) -> TensorRank1Vec2D<D, I>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<const D: usize, const I: usize> FromIterator<TensorRank1Vec<D, I>> for TensorRank1Vec2D<D, I>
impl<const D: usize, const I: usize> FromIterator<TensorRank1Vec<D, I>> for TensorRank1Vec2D<D, I>
Source§fn from_iter<Ii: IntoIterator<Item = TensorRank1Vec<D, I>>>(
into_iterator: Ii,
) -> Self
fn from_iter<Ii: IntoIterator<Item = TensorRank1Vec<D, I>>>( into_iterator: Ii, ) -> Self
Creates a value from an iterator. Read more
Source§impl<const D: usize, const I: usize> TensorVec for TensorRank1Vec2D<D, I>
impl<const D: usize, const I: usize> TensorVec for TensorRank1Vec2D<D, I>
Source§type Item = TensorRank1Vec<D, I>
type Item = TensorRank1Vec<D, I>
The type of item encountered when iterating over the tensor.
Source§fn append(&mut self, other: &mut Self)
fn append(&mut self, other: &mut Self)
Moves all the items of other into self, leaving other empty.
Auto Trait Implementations§
impl<const D: usize, const I: usize> Freeze for TensorRank1Vec2D<D, I>
impl<const D: usize, const I: usize> RefUnwindSafe for TensorRank1Vec2D<D, I>
impl<const D: usize, const I: usize> Send for TensorRank1Vec2D<D, I>
impl<const D: usize, const I: usize> Sync for TensorRank1Vec2D<D, I>
impl<const D: usize, const I: usize> Unpin for TensorRank1Vec2D<D, I>
impl<const D: usize, const I: usize> UnwindSafe for TensorRank1Vec2D<D, I>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more