Tensorex.Operator.divide
You're seeing just the function
divide
, go back to Tensorex.Operator module for more information.
Specs
divide(Tensorex.t(), number()) :: Tensorex.t()
Divides all elements of the tensor by the scalar.
iex> Tensorex.Operator.divide(
...> Tensorex.from_list([[2 , 3.5, -1.6, 8.2],
...> [1.1, 3.0, 0 , -12.1]]), 4)
%Tensorex{data: %{[0, 0] => 0.5 , [0, 1] => 0.875, [0, 2] => -0.4, [0, 3] => 2.05 ,
[1, 0] => 0.275, [1, 1] => 0.75 , [1, 3] => -3.025}, shape: [2, 4]}