0.0
No commit activity in last 3 years
No release in over 3 years
Red Arrow GSL adds `Arrow::*Array#to_gsl`/`Arrow::Tensor#to_gsl` for Apache Arrow to GSL conversion. Red Arrow GSL adds `GSL::Vector#to_arrow`/`GSL::Vector::Int#to_arrow`/`GSL::Matrix::*#to_arrow` for GSL to Apache Arrow conversion.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

Runtime

>= 0
 Project Readme

README

Name

Red Arrow GSL

Description

Red Arrow GSL is a library that provides converters between Apache Arrow's array data (Arrow::*Array) / tensor data (Arrow::Tensor) and Ruby/GSL's vector data (GSL::Vector and GSL::Vector::Int) / matrix data (GSL::Matrix::*).

Red Arrow GSL adds Arrow::*Array#to_gsl/Arrow::Tensor#to_gsl for Apache Arrow to GSL conversion. Red Arrow GSL adds GSL::Vector#to_arrow/GSL::Vector::Int#to_arrow/GSL::Matrix::*#to_arrow for GSL to Apache Arrow conversion.

Install

% gem install red-arrow-gsl

Usage

require "arrow-gsl"

double_array.to_gsl # -> An object of GSL::Vector
int32_array.to_gsl  # -> An object of GSL::Vector::Int
tensor.to_gsl       # -> An object of GSL::Matrix or GSL::Matrix::Int

gsl_vector.to_arrow     # -> An object of Arrow::DoubleArray
gsl_int_vector.to_arrow # -> An object of Arrow::Int32Array
gsl_matrix.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.)