Tensorex.Operator.determinant
You're seeing just the function
determinant
, go back to Tensorex.Operator module for more information.
Specs
determinant(Tensorex.t()) :: number()
Returns the determinant of the given tensor.
iex> Tensorex.Operator.determinant(
...> Tensorex.from_list([[13, 1, 2, 3],
...> [ 4, 14, 5, 6],
...> [ 7, 8, 15, 9],
...> [10, 11, 12, 16]])
...> )
14416
iex> Tensorex.Operator.determinant(
...> Tensorex.from_list([[0, 0],
...> [0, 0]])
...> )
0
iex> Tensorex.Operator.determinant(
...> Tensorex.from_list([[2.5, 0 , 0],
...> [0 , 1.8, 0],
...> [0 , 0 , 3]])
...> )
13.5
iex> Tensorex.Operator.determinant(
...> Tensorex.from_list([[[13, 1, 2, 3],
...> [ 4, 14, 5, 6],
...> [ 7, 8, 15, 9],
...> [10, 11, 12, 16]],
...> [[33, 21, 22, 23],
...> [24, 34, 25, 26],
...> [27, 28, 35, 29],
...> [30, 31, 32, 36]],
...> [[53, 41, 42, 43],
...> [44, 54, 45, 46],
...> [47, 48, 55, 49],
...> [50, 51, 52, 56]],
...> [[73, 61, 62, 63],
...> [64, 74, 65, 66],
...> [67, 68, 75, 69],
...> [70, 71, 72, 76]]])
...> )
1567104