Tensorex.Analyzer.solve
You're seeing just the function
solve
, go back to Tensorex.Analyzer module for more information.
Specs
solve(Tensorex.t(), Tensorex.t()) :: Tensorex.t()
Solves a system of linear equations.
Computes the solution vector (X
) of the equation (A·X = B
) where A
is a matrix and B
is
a matrix or a vector.
iex> Tensorex.Analyzer.solve(
...> Tensorex.from_list([[ 3, 2, 1],
...> [ 4, 7, 6],
...> [11, 8, 9]]),
...> Tensorex.from_list([6, 12, 18])
...> )
%Tensorex{data: %{[0] => 1.0000000000000002 ,
[1] => 2.0000000000000004 ,
[2] => -1.0000000000000007}, shape: [3]}
iex> Tensorex.Analyzer.solve(
...> Tensorex.from_list([[5]]),
...> Tensorex.from_list([10])
...> )
%Tensorex{data: %{[0] => 2.0}, shape: [1]}