/ -package:dimensional

Fractional division.
fractional division
Infix shorthand for divide.
Overloaded division.
Forms the quotient of ExactPi' types (in the arithmetic sense).
Fractional division.
TypeInt division.
The ratio of two type-level numbers
Division binary differentiable operation

Examples of usage

>>> import Prelude (Float)

>>> import InfBackprop (call, derivative)

>>> call (/) (6, 3) :: Float
2.0
>>> import Debug.SimpleExpr.Expr (variable)

>>> x = variable "x"

>>> y = variable "y"

>>> derivative (/) (x, y)
(1·(1/y),1·(-(x)·(1/(y·y))))
Constructs an array identical to the first argument except that it has been updated by the associations in the right argument. For example, if m is a 1-origin, n by n matrix, then
m//[((i,i), 0) | i <- [1..n]]
is the same matrix, except with the diagonal zeroed. Repeated indices in the association list are handled as for array: Haskell 2010 specifies that the resulting array is undefined (i.e. bottom), but GHC's implementation uses the last association for each index.
O(m+n) For each pair (i,a) from the list of index/value pairs, replace the vector element at position i by a.
<5,9,2,7> // [(2,1),(0,3),(2,8)] = <3,9,8,7>
O(m+n) For each pair (i,a) from the list of index/value pairs, replace the vector element at position i by a.
<5,9,2,7> // [(2,1),(0,3),(2,8)] = <3,9,8,7>
O(m+n) For each pair (i,a) from the list of index/value pairs, replace the vector element at position i by a.
<5,9,2,7> // [(2,1),(0,3),(2,8)] = <3,9,8,7>
O(m+n) For each pair (i,a) from the list of index/value pairs, replace the vector element at position i by a.
<5,9,2,7> // [(2,1),(0,3),(2,8)] = <3,9,8,7>