* -package:typenums

Multiplication of type-level naturals.
Multiply a scalar by a vector.
Infix shorthand for times.
Multiplication of 2 elements that result in another element
Multiplication
Multiplication
Multiplication of dimensions corresponds to addition of the base dimensions' exponents.
Multiplies two Quantitys or two Units. The intimidating type signature captures the similarity between these operations and ensures that composite Units are NonMetric.
Forms the product of two dimensions.
Forms the product of two dynamic units.
Form a UnitName by taking the product of two others.
Forms the product of two Variants. The product of units is a non-metric unit. The product of quantities is a quantity.
Overloaded multiplication.
Forms the product of ExactPi' types (in the arithmetic sense).
TypeInt multiplication.
  • mul function is used to multiply the states with a constant.
>>> qZero * 5
(2><1)
[ 5.0 :+ 0.0, 0.0 :+ 0.0
, 0.0 :+ 0.0, 0.0 :+ 0.0 ]
Differentiable logging multiplication function.

Examples of usage

>>> import Control.Arrow (runKleisli)

>>> import Control.Monad.Logger (runStdoutLoggingT)

>>> import InfBackprop (call)
>>> runStdoutLoggingT $ runKleisli (call (*)) (6, 7)
[Info] Calculating multiplication of 6 and 7 => 42
42
Product binnary operation

Examples of usage

>>> import Prelude (Float)

>>> import InfBackprop (call, derivative)

>>> call (*) (2, 3) :: Float
6.0
>>> import Debug.SimpleExpr.Expr (variable)

>>> x = variable "x"

>>> y = variable "y"

>>> derivative (*) (x, y)
(1·y,1·x)