[−][src]Struct quick_maths::DynTensor
A Tensor which only specifies the number of dimensions
Implementations
impl<T, const D: usize> DynTensor<D, T>
[src]
pub fn len(&self) -> usize
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn shape(&self) -> &[usize; D]
[src]
pub fn iter(&self) -> impl Iterator<Item = &T>
[src]
pub fn reshape<const D2: usize>(
self,
new_shape: Vector<D2, usize>
) -> DynTensor<D2, T>
[src]
self,
new_shape: Vector<D2, usize>
) -> DynTensor<D2, T>
pub fn from_iter(shape: [usize; D], iter: impl Iterator<Item = T>) -> Self
[src]
Trait Implementations
impl<T: Add + Copy, const D: usize> Add<DynTensor<D, T>> for DynTensor<D, T>
[src]
type Output = DynTensor<D, T::Output>
The resulting type after applying the +
operator.
fn add(self, o: Self) -> Self::Output
[src]
impl<const D: usize, T: Clone> Clone for DynTensor<D, T>
[src]
impl<const D: usize, T: Debug> Debug for DynTensor<D, T>
[src]
impl<T: Div + Copy, const D: usize> Div<DynTensor<D, T>> for DynTensor<D, T>
[src]
type Output = DynTensor<D, T::Output>
The resulting type after applying the /
operator.
fn div(self, o: Self) -> Self::Output
[src]
impl<T: Mul + Copy, const D: usize> Mul<DynTensor<D, T>> for DynTensor<D, T>
[src]
type Output = DynTensor<D, T::Output>
The resulting type after applying the *
operator.
fn mul(self, o: Self) -> Self::Output
[src]
impl<T: Sub + Copy, const D: usize> Sub<DynTensor<D, T>> for DynTensor<D, T>
[src]
Auto Trait Implementations
impl<const D: usize, T> RefUnwindSafe for DynTensor<D, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<const D: usize, T> Send for DynTensor<D, T> where
T: Send,
T: Send,
impl<const D: usize, T> Sync for DynTensor<D, T> where
T: Sync,
T: Sync,
impl<const D: usize, T> Unpin for DynTensor<D, T>
impl<const D: usize, T> UnwindSafe for DynTensor<D, T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,