pub struct IdentityMatrix<Len, T>where
Self: Computation,{
pub len: Len,
/* private fields */
}
Expand description
Fields§
§len: Len
Implementations§
Source§impl<Len, T> IdentityMatrix<Len, T>where
Self: Computation,
impl<Len, T> IdentityMatrix<Len, T>where
Self: Computation,
Trait Implementations§
Source§impl<Rhs, Len, T> Add<Rhs> for IdentityMatrix<Len, T>
impl<Rhs, Len, T> Add<Rhs> for IdentityMatrix<Len, T>
Source§impl<Len: Clone, T: Clone> Clone for IdentityMatrix<Len, T>where
Self: Computation,
impl<Len: Clone, T: Clone> Clone for IdentityMatrix<Len, T>where
Self: Computation,
Source§fn clone(&self) -> IdentityMatrix<Len, T>
fn clone(&self) -> IdentityMatrix<Len, T>
Returns a duplicate 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<Len, T> Computation for IdentityMatrix<Len, T>
impl<Len, T> Computation for IdentityMatrix<Len, T>
type Dim = Suc<Suc<Zero>>
type Item = T
fn add<Rhs>(self, rhs: Rhs) -> Add<Self, Rhs>
fn sub<Rhs>(self, rhs: Rhs) -> Sub<Self, Rhs>
fn mul<Rhs>(self, rhs: Rhs) -> Mul<Self, Rhs>
fn div<Rhs>(self, rhs: Rhs) -> Div<Self, Rhs>
fn pow<Rhs>(self, rhs: Rhs) -> Pow<Self, Rhs>
fn neg(self) -> Neg<Self>
fn abs(self) -> Abs<Self>
fn sin(self) -> Sin<Self>
fn cos(self) -> Cos<Self>
fn tan(self) -> Tan<Self>
fn asin(self) -> Asin<Self>
fn acos(self) -> Acos<Self>
fn atan(self) -> Atan<Self>
fn eq<Rhs>(self, rhs: Rhs) -> Eq<Self, Rhs>
fn ne<Rhs>(self, rhs: Rhs) -> Ne<Self, Rhs>
fn lt<Rhs>(self, rhs: Rhs) -> Lt<Self, Rhs>
fn le<Rhs>(self, rhs: Rhs) -> Le<Self, Rhs>
fn gt<Rhs>(self, rhs: Rhs) -> Gt<Self, Rhs>
fn ge<Rhs>(self, rhs: Rhs) -> Ge<Self, Rhs>
fn max(self) -> Max<Self>
fn enumerate<F>(self, f: Function<(Name, Name), F>) -> Enumerate<Self, F>
fn sum(self) -> Sum<Self>
fn zip<Rhs>(self, rhs: Rhs) -> Zip<Self, Rhs>
Source§fn black_box<F, FDim, FItem>(self, f: F) -> BlackBox<Self, F, FDim, FItem>
fn black_box<F, FDim, FItem>(self, f: F) -> BlackBox<Self, F, FDim, FItem>
Run the given regular function
F
. Read morefn if_<ArgNames, P, FTrue, FFalse>( self, arg_names: ArgNames, predicate: P, f_true: FTrue, f_false: FFalse, ) -> If<Self, ArgNames, P, FTrue, FFalse>
fn loop_while<ArgNames, F, P>( self, arg_names: ArgNames, f: F, predicate: P, ) -> LoopWhile<Self, ArgNames, F, P>
fn then<ArgNames, F>(self, f: Function<ArgNames, F>) -> Then<Self, ArgNames, F>
Source§fn identity_matrix<T>(self) -> IdentityMatrix<Self, T>
fn identity_matrix<T>(self) -> IdentityMatrix<Self, T>
Source§fn scalar_product<Rhs>(self, rhs: Rhs) -> ScalarProduct<Self, Rhs>
fn scalar_product<Rhs>(self, rhs: Rhs) -> ScalarProduct<Self, Rhs>
Multiply and sum the elements of two vectors. Read more
Source§impl<Len, T> ComputationFn for IdentityMatrix<Len, T>
impl<Len, T> ComputationFn for IdentityMatrix<Len, T>
Source§impl<Len: Debug, T: Debug> Debug for IdentityMatrix<Len, T>where
Self: Computation,
impl<Len: Debug, T: Debug> Debug for IdentityMatrix<Len, T>where
Self: Computation,
Source§impl<Len, T> Display for IdentityMatrix<Len, T>where
Self: Computation,
Len: Display,
impl<Len, T> Display for IdentityMatrix<Len, T>where
Self: Computation,
Len: Display,
Source§impl<Rhs, Len, T> Div<Rhs> for IdentityMatrix<Len, T>
impl<Rhs, Len, T> Div<Rhs> for IdentityMatrix<Len, T>
Source§impl<Rhs, Len, T> Mul<Rhs> for IdentityMatrix<Len, T>
impl<Rhs, Len, T> Mul<Rhs> for IdentityMatrix<Len, T>
Source§impl<Len, T> Neg for IdentityMatrix<Len, T>
impl<Len, T> Neg for IdentityMatrix<Len, T>
Source§impl<Len, T> RunCore for IdentityMatrix<Len, T>
impl<Len, T> RunCore for IdentityMatrix<Len, T>
Source§impl<Rhs, Len, T> Sub<Rhs> for IdentityMatrix<Len, T>
impl<Rhs, Len, T> Sub<Rhs> for IdentityMatrix<Len, T>
impl<Len: Copy, T: Copy> Copy for IdentityMatrix<Len, T>where
Self: Computation,
Auto Trait Implementations§
impl<Len, T> Freeze for IdentityMatrix<Len, T>where
Len: Freeze,
impl<Len, T> RefUnwindSafe for IdentityMatrix<Len, T>where
Len: RefUnwindSafe,
T: RefUnwindSafe,
impl<Len, T> Send for IdentityMatrix<Len, T>
impl<Len, T> Sync for IdentityMatrix<Len, T>
impl<Len, T> Unpin for IdentityMatrix<Len, T>
impl<Len, T> UnwindSafe for IdentityMatrix<Len, T>where
Len: UnwindSafe,
T: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.