pub struct NormForm {
pub x: String,
pub part: Option<Part>,
pub add: Option<String>,
pub pre: bool,
pub sum: bool,
pub w: Option<String>,
pub out: String,
pub own: bool,
pub rows: usize,
pub cols: usize,
pub eps: Epsilon,
}Expand description
A norm: the input it reads (in place as a part of a wider tensor, or whole), the operand it adds first, the norm it takes of that operand, whether it writes the sum on, its weight, rows and columns, epsilon, and where it lands.
Fields§
§x: String§part: Option<Part>§add: Option<String>§pre: bool§sum: bool§w: Option<String>§out: String§own: bool§rows: usize§cols: usize§eps: EpsilonTrait Implementations§
Auto Trait Implementations§
impl Freeze for NormForm
impl RefUnwindSafe for NormForm
impl Send for NormForm
impl Sync for NormForm
impl Unpin for NormForm
impl UnsafeUnpin for NormForm
impl UnwindSafe for NormForm
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,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§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.§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.§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.§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.