Matrix manipulation with elixir.
Several matrix implementations (including Nx) are compared for the resolution of a simplex algorithm.
mix deps.get
mix test
mix deps.get
iex -S mix
iex(1)> Knapsack.run(MatrixMapTuple)
iex(1)> Knapsack.run(Matrix.Nx)
If available in Hex, the package can be installed
by adding knapsack_ex
to your list of dependencies in mix.exs
:
def deps do
[
{:knapsack_ex, "~> 0.1.0"}
]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/knapsack_ex.