Skip to main content

NdTensor

Trait NdTensor 

Source
pub trait NdTensor<S, D, A = <S as RawData>::Elem>: TensorBase<S, D, A, Cont<S, D, A> = ArrayBase<S, D, A>>
where D: Dimension, S: RawData<Elem = A>,
{
Show 13 methods // Required methods fn as_ptr(&self) -> *const A; fn as_mut_ptr(&mut self) -> *mut A where S: RawDataMut; fn apply<F, B>(&self, f: F) -> Self::Cont<OwnedRepr<B>, D, B> where F: FnMut(A) -> B, A: Clone, S: Data; // Provided methods fn powi(&self, n: i32) -> Self::Cont<OwnedRepr<A>, D, A> where A: Float, S: DataMut { ... } fn exp(&self) -> Self::Cont<OwnedRepr<A>, D, A> where A: Float, S: DataMut { ... } fn log(&self) -> Self::Cont<OwnedRepr<A>, D, A> where A: Float, S: DataMut { ... } fn ln(&self) -> Self::Cont<OwnedRepr<A>, D, A> where A: Float, S: DataMut { ... } fn cos(&self) -> Self::Cont<OwnedRepr<A>, D, A> where A: Float, S: DataMut { ... } fn cosh(&self) -> Self::Cont<OwnedRepr<A>, D, A> where A: Float, S: DataMut { ... } fn sin(&self) -> Self::Cont<OwnedRepr<A>, D, A> where A: Float, S: DataMut { ... } fn sinh(&self) -> Self::Cont<OwnedRepr<A>, D, A> where A: Float, S: DataMut { ... } fn tan(&self) -> Self::Cont<OwnedRepr<A>, D, A> where A: Float, S: DataMut { ... } fn tanh(&self) -> Self::Cont<OwnedRepr<A>, D, A> where A: Float, S: DataMut { ... }
}

Required Methods§

Source

fn as_ptr(&self) -> *const A

Source

fn as_mut_ptr(&mut self) -> *mut A
where S: RawDataMut,

Source

fn apply<F, B>(&self, f: F) -> Self::Cont<OwnedRepr<B>, D, B>
where F: FnMut(A) -> B, A: Clone, S: Data,

Provided Methods§

Source

fn powi(&self, n: i32) -> Self::Cont<OwnedRepr<A>, D, A>
where A: Float, S: DataMut,

Source

fn exp(&self) -> Self::Cont<OwnedRepr<A>, D, A>
where A: Float, S: DataMut,

Source

fn log(&self) -> Self::Cont<OwnedRepr<A>, D, A>
where A: Float, S: DataMut,

Source

fn ln(&self) -> Self::Cont<OwnedRepr<A>, D, A>
where A: Float, S: DataMut,

Source

fn cos(&self) -> Self::Cont<OwnedRepr<A>, D, A>
where A: Float, S: DataMut,

Source

fn cosh(&self) -> Self::Cont<OwnedRepr<A>, D, A>
where A: Float, S: DataMut,

Source

fn sin(&self) -> Self::Cont<OwnedRepr<A>, D, A>
where A: Float, S: DataMut,

Source

fn sinh(&self) -> Self::Cont<OwnedRepr<A>, D, A>
where A: Float, S: DataMut,

Source

fn tan(&self) -> Self::Cont<OwnedRepr<A>, D, A>
where A: Float, S: DataMut,

Source

fn tanh(&self) -> Self::Cont<OwnedRepr<A>, D, A>
where A: Float, S: DataMut,

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<A, S, D> NdTensor<S, D, A> for ArrayBase<S, D, A>
where D: Dimension, S: RawData<Elem = A>,

Source§

fn as_ptr(&self) -> *const A

Source§

fn as_mut_ptr(&mut self) -> *mut A
where S: RawDataMut,

Source§

fn apply<F, B>( &self, f: F, ) -> <ArrayBase<S, D, A> as TensorBase<S, D, A>>::Cont<OwnedRepr<B>, D, B>
where A: Clone, F: FnMut(A) -> B, S: Data,

Implementors§