pub struct FromDiagElem<Len, Elem>where
Self: Computation,{
pub len: Len,
pub elem: Elem,
}
Expand description
A computation representing a diagonal matrix from an element.
Fields§
§len: Len
§elem: Elem
Implementations§
Source§impl<Len, Elem> FromDiagElem<Len, Elem>where
Self: Computation,
impl<Len, Elem> FromDiagElem<Len, Elem>where
Self: Computation,
Trait Implementations§
Source§impl<Rhs, Len, Elem> Add<Rhs> for FromDiagElem<Len, Elem>
impl<Rhs, Len, Elem> Add<Rhs> for FromDiagElem<Len, Elem>
Source§impl<Len: Clone, Elem: Clone> Clone for FromDiagElem<Len, Elem>where
Self: Computation,
impl<Len: Clone, Elem: Clone> Clone for FromDiagElem<Len, Elem>where
Self: Computation,
Source§fn clone(&self) -> FromDiagElem<Len, Elem>
fn clone(&self) -> FromDiagElem<Len, Elem>
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, Elem> Computation for FromDiagElem<Len, Elem>
impl<Len, Elem> Computation for FromDiagElem<Len, Elem>
type Dim = Suc<Suc<Zero>>
type Item = <Elem as Computation>::Item
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, Elem> ComputationFn for FromDiagElem<Len, Elem>where
Self: Computation,
Len: ComputationFn,
Elem: ComputationFn,
FromDiagElem<Len::Filled, Elem::Filled>: Computation,
impl<Len, Elem> ComputationFn for FromDiagElem<Len, Elem>where
Self: Computation,
Len: ComputationFn,
Elem: ComputationFn,
FromDiagElem<Len::Filled, Elem::Filled>: Computation,
Source§impl<Len: Debug, Elem: Debug> Debug for FromDiagElem<Len, Elem>where
Self: Computation,
impl<Len: Debug, Elem: Debug> Debug for FromDiagElem<Len, Elem>where
Self: Computation,
Source§impl<Len, Elem> Display for FromDiagElem<Len, Elem>
impl<Len, Elem> Display for FromDiagElem<Len, Elem>
Source§impl<Rhs, Len, Elem> Div<Rhs> for FromDiagElem<Len, Elem>
impl<Rhs, Len, Elem> Div<Rhs> for FromDiagElem<Len, Elem>
Source§impl<Rhs, Len, Elem> Mul<Rhs> for FromDiagElem<Len, Elem>
impl<Rhs, Len, Elem> Mul<Rhs> for FromDiagElem<Len, Elem>
Source§impl<Len, Elem> Neg for FromDiagElem<Len, Elem>
impl<Len, Elem> Neg for FromDiagElem<Len, Elem>
Source§impl<Len, Elem, T> RunCore for FromDiagElem<Len, Elem>
impl<Len, Elem, T> RunCore for FromDiagElem<Len, Elem>
Source§impl<Rhs, Len, Elem> Sub<Rhs> for FromDiagElem<Len, Elem>
impl<Rhs, Len, Elem> Sub<Rhs> for FromDiagElem<Len, Elem>
impl<Len: Copy, Elem: Copy> Copy for FromDiagElem<Len, Elem>where
Self: Computation,
Auto Trait Implementations§
impl<Len, Elem> Freeze for FromDiagElem<Len, Elem>
impl<Len, Elem> RefUnwindSafe for FromDiagElem<Len, Elem>where
Len: RefUnwindSafe,
Elem: RefUnwindSafe,
impl<Len, Elem> Send for FromDiagElem<Len, Elem>
impl<Len, Elem> Sync for FromDiagElem<Len, Elem>
impl<Len, Elem> Unpin for FromDiagElem<Len, Elem>
impl<Len, Elem> UnwindSafe for FromDiagElem<Len, Elem>where
Len: UnwindSafe,
Elem: 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.