Low commit activity in last 3 years
No release in over a year
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.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 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

% gem install red-arrow-numo-narray

Usage

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

Authors

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.)