pub trait NdTensor<S, D, A = <S as RawData>::Elem>: TensorBase<S, D, A, Cont<S, D, A> = ArrayBase<S, D, 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§
fn as_ptr(&self) -> *const A
fn as_mut_ptr(&mut self) -> *mut Awhere
S: RawDataMut,
fn apply<F, B>(&self, f: F) -> Self::Cont<OwnedRepr<B>, D, B>
Provided Methods§
fn powi(&self, n: i32) -> Self::Cont<OwnedRepr<A>, D, A>
fn exp(&self) -> Self::Cont<OwnedRepr<A>, D, A>
fn log(&self) -> Self::Cont<OwnedRepr<A>, D, A>
fn ln(&self) -> Self::Cont<OwnedRepr<A>, D, A>
fn cos(&self) -> Self::Cont<OwnedRepr<A>, D, A>
fn cosh(&self) -> Self::Cont<OwnedRepr<A>, D, A>
fn sin(&self) -> Self::Cont<OwnedRepr<A>, D, A>
fn sinh(&self) -> Self::Cont<OwnedRepr<A>, D, A>
fn tan(&self) -> Self::Cont<OwnedRepr<A>, D, A>
fn tanh(&self) -> Self::Cont<OwnedRepr<A>, D, A>
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.