https://github.com/red-data-tools/red-arrow-numo-narray
A library that provides conversion method between Apache Arrow and Numo::NArray
https://github.com/red-data-tools/red-arrow-numo-narray
Last synced: about 1 year ago
JSON representation
A library that provides conversion method between Apache Arrow and Numo::NArray
- Host: GitHub
- URL: https://github.com/red-data-tools/red-arrow-numo-narray
- Owner: red-data-tools
- License: other
- Created: 2017-04-20T14:31:55.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2022-10-17T00:40:40.000Z (over 3 years ago)
- Last Synced: 2025-04-13T20:14:45.295Z (about 1 year ago)
- Language: Ruby
- Homepage:
- Size: 27.3 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# README
## Name
Red Arrow Numo::NArray
## Description
Red Arrow Numo::NArray is a library that provides converters between Apache Arrow's tensor data (`Arrow::Tensor`) and Numo::NArray data.
Red Arrow Numo::NArray adds `Arrow::Tensor#to_narray` and `#to_arrow`/`#to_arrow_array` to `Numo::NArray`'s numerical subclasses such as `Numo::Int8`. `Arrow::Tensor#to_narray` returns a `Numo::NArray`'s numerical subclass such as `Numo::Int8`. `#to_arrow` returns a `Arrow::Tensor`. `#to_arrow_array` returns an `Arrow::Array` instance if the original object is an 1 dimensional array.
## Install
```text
% gem install red-arrow-numo-narray
```
## Usage
```ruby
require "arrow-numo-narray"
tensor.to_narray # -> An object of Numo::NArray's numeric subclass such as Numo::Int8
narray.to_arrow # -> An object of Arrow::Tensor
```
## Dependencies
* [Red Arrow](https://github.com/apache/arrow/tree/master/ruby/red-arrow)
* [Numo::NArray](https://github.com/ruby-numo/numo-narray)
## 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.)