Tensorex.Operator.negate
You're seeing just the function
negate
, go back to Tensorex.Operator module for more information.
Specs
negate(Tensorex.t()) :: Tensorex.t()
Negates a tensor.
iex> Tensorex.Operator.negate(
...> Tensorex.from_list([[ 2 , 3.5, -4 , 0 ],
...> [-2.2, 6 , 0.0, 5.5]]))
%Tensorex{data: %{[0, 0] => -2 , [0, 1] => -3.5, [0, 2] => 4,
[1, 0] => 2.2, [1, 1] => -6 , [1, 3] => -5.5}, shape: [2, 4]}