https://github.com/yujikawa/numexy
numexy is a library like Python's numpy. It is a library for matrix calculation.
https://github.com/yujikawa/numexy
elixir
Last synced: 3 months ago
JSON representation
numexy is a library like Python's numpy. It is a library for matrix calculation.
- Host: GitHub
- URL: https://github.com/yujikawa/numexy
- Owner: yujikawa
- License: apache-2.0
- Created: 2017-11-27T21:50:46.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-09-22T07:27:34.000Z (over 6 years ago)
- Last Synced: 2025-10-21T18:53:51.675Z (3 months ago)
- Topics: elixir
- Language: Elixir
- Homepage:
- Size: 41 KB
- Stars: 18
- Watchers: 6
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Numexy
[](https://travis-ci.org/yujikawa/numexy)
[](https://hex.pm/packages/numexy)
[](https://coveralls.io/github/yujikawa/numexy)
[](https://github.com/yujikawa/numexy/blob/master/LICENSE)
numexy is a library like Python's numpy. It is a library for matrix calculation.
## Installation
The package can be installed
by adding `numexy` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:numexy, "~> 0.1.9"}
]
end
```
## Examples
```elixir
iex> x = Numexy.new([1,2,3])
%Array{array: [1, 2, 3], shape: {3, nil}}
iex> y = Numexy.new([1,2,3])
%Array{array: [1, 2, 3], shape: {3, nil}}
iex> Numexy.dot(x, y)
14
iex> Numexy.new([2,9,5]) |> Numexy.sum
16
iex> Numexy.new([[1,2,3],[4,5,6]]) |> Numexy.sum
21
```
Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)
and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
be found at [https://hexdocs.pm/numexy](https://hexdocs.pm/numexy).
## License
This project is licensed under the terms of the Apache license, see LICENSE.