https://github.com/h-ikeda/tensorex
Tensor calculations and matrix analysis.
https://github.com/h-ikeda/tensorex
analysis eigen eigenvalue eigenvalues eigenvector eigenvectors elixir hex matrices matrix numeric numerical numerics tensor vector vectors
Last synced: 2 months ago
JSON representation
Tensor calculations and matrix analysis.
- Host: GitHub
- URL: https://github.com/h-ikeda/tensorex
- Owner: h-ikeda
- License: mit
- Created: 2020-11-12T02:50:35.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-05-10T20:59:11.000Z (about 2 years ago)
- Last Synced: 2025-03-13T22:34:56.528Z (3 months ago)
- Topics: analysis, eigen, eigenvalue, eigenvalues, eigenvector, eigenvectors, elixir, hex, matrices, matrix, numeric, numerical, numerics, tensor, vector, vectors
- Language: Elixir
- Homepage: https://hex.pm/packages/tensorex
- Size: 118 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[](https://hex.pm/packages/tensorex)

# TensorexTensor operations and matrix analysis.
## Installation
The package can be installed by adding `tensorex` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:tensorex, "~> 0.6.0"}
]
end
```## Basic usage
```elixir
# Creates a 2-rank tensors
iex> tensor1 = Tensorex.from_list([[2, 3, 4], [ 3, -4, 5], [4, 5, 6]])
iex> tensor2 = Tensorex.from_list([[5, 6, 7], [-6, 7, -8], [7, 8, 9]])# Adds two tensors
iex> Tensorex.Operator.add(tensor1, tensor2)# Makes a dot product
iex> Tensorex.Operator.multiply(tensor1, tensor2, [{1, 0}])# Finds a solution of linear algebra
iex> Tensorex.Analyzer.solve(tensor1, tensor2)
```For more functions and explainations, see the [documentation](https://hexdocs.pm/tensorex).