Trait gad::arith::ArithAlgebra [−][src]
pub trait ArithAlgebra<Value> { fn sub(&mut self, v0: &Value, v1: &Value) -> Result<Value>; fn mul(&mut self, v0: &Value, v1: &Value) -> Result<Value>; fn zeros(&mut self, v: &Value) -> Value; fn ones(&mut self, v: &Value) -> Value; fn neg(&mut self, v: &Value) -> Value { ... } }
Element-wise arithmetic operations.
Required methods
fn sub(&mut self, v0: &Value, v1: &Value) -> Result<Value>
[src]
Element-wise subtraction v0 - v1
fn mul(&mut self, v0: &Value, v1: &Value) -> Result<Value>
[src]
Element-wise multiplication v0 * v1
fn zeros(&mut self, v: &Value) -> Value
[src]
Element-wise zero (same dimensions as v).
fn ones(&mut self, v: &Value) -> Value
[src]
Element-wise one (same dimensions as v).
Provided methods
Loading content...Implementors
impl ArithAlgebra<()> for Check
[src]
impl ArithAlgebra<()> for Check
[src]impl<D, E, Dims> ArithAlgebra<Value<D>> for Graph<Config1<E>> where
E: Default + Clone + CoreAlgebra<D, Value = D> + ArithAlgebra<D> + LinkedAlgebra<Value<D>, D>,
D: HasDims<Dims = Dims> + Clone + 'static + Send + Sync,
Dims: PartialEq + Debug + Clone + 'static + Send + Sync,
[src]
impl<D, E, Dims> ArithAlgebra<Value<D>> for Graph<Config1<E>> where
E: Default + Clone + CoreAlgebra<D, Value = D> + ArithAlgebra<D> + LinkedAlgebra<Value<D>, D>,
D: HasDims<Dims = Dims> + Clone + 'static + Send + Sync,
Dims: PartialEq + Debug + Clone + 'static + Send + Sync,
[src]impl<D, E, Dims> ArithAlgebra<Value<D>> for Graph<ConfigN<E>> where
E: Default + Clone + CoreAlgebra<D, Value = D> + ArithAlgebra<D> + LinkedAlgebra<Value<D>, D>,
D: HasDims<Dims = Dims> + Clone + 'static + Send + Sync,
Dims: PartialEq + Debug + Clone + 'static + Send + Sync,
[src]
impl<D, E, Dims> ArithAlgebra<Value<D>> for Graph<ConfigN<E>> where
E: Default + Clone + CoreAlgebra<D, Value = D> + ArithAlgebra<D> + LinkedAlgebra<Value<D>, D>,
D: HasDims<Dims = Dims> + Clone + 'static + Send + Sync,
Dims: PartialEq + Debug + Clone + 'static + Send + Sync,
[src]