https://github.com/red-data-tools/red-arrow-nmatrix
A library that provides conversion method between Apache Arrow and NMatrix
https://github.com/red-data-tools/red-arrow-nmatrix
Last synced: 4 months ago
JSON representation
A library that provides conversion method between Apache Arrow and NMatrix
- Host: GitHub
- URL: https://github.com/red-data-tools/red-arrow-nmatrix
- Owner: red-data-tools
- License: other
- Created: 2017-04-23T15:06:31.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2021-07-11T20:08:24.000Z (almost 5 years ago)
- Last Synced: 2026-01-17T18:02:30.480Z (5 months ago)
- Language: Ruby
- Size: 21.5 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# README
## Name
Red Arrow NMatrix
## Description
Red Arrow NMatrix is a library that provides converters between Apache Arrow's tensor data (`Arrow::Tensor`) and NMatrix's matrix data (`NMatrix`).
Red Arrow NMatrix adds `Arrow::Tensor#to_nmatrix` for Apache Arrow to NMatrix conversion. Red Arrow NMatrix adds `NMatrix#to_arrow` for NMatrix to Apache Arrow conversion.
## Install
```text
% gem install red-arrow-nmatrix
```
## Usage
```ruby
require "arrow-nmatrix"
tensor.to_nmatrix # -> An object of NMatrix
matrix.to_arrow # -> An object of Arrow::Tensor
```
## Dependencies
* [Red Arrow](https://github.com/apache/arrow/tree/master/ruby/red-arrow)
* [NMatrix](https://github.com/SciRuby/nmatrix)
## Authors
* Kouhei Sutou \
## License
Apache License 2.0. See doc/text/apache-2.0.txt for details.
(Kouhei Sutou has a right to change the license including contributed
patches.)