red-arrow-numo-narray 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1ee08d04f293191d2e5d9b95863f0b47d214df2084a072bc2cec614b6072d355
4
- data.tar.gz: dae49151666303807737d13a8ce2cf2cc2b6d5a9a09618fd3648c66628f17173
3
+ metadata.gz: 4c1f7f9142eb6a1fb74d4844f44f7318ed604ac5eea4061e195a5d51156bc2dc
4
+ data.tar.gz: b198e48e45bb33fb84a21663579dcb57b38191550926ee45fd2fd57338d00b75
5
5
  SHA512:
6
- metadata.gz: 4b0ca371dc3e1249a1a7dd9d974e50dc336168e255f3081c6871b7c8ca9a20e137ddab75a4c4959c5b7bda725a0a5068c7ff926a2045fbff53c603151b747467
7
- data.tar.gz: 5866d4c1e3cf74199ae7c1867354e1c32854e7541bfedbbd0ca5428e7db8f517483cdacf04d05680d58da19f34379d98820564917ad4c0e56641b4ec95e4bc73
6
+ metadata.gz: 04f61486f9045fb2fdf3dabadffbd56dbdbf8fed376b06fb339f93a83b0435c24fd282a5c11ec5dfb6e9a8a09530264f606d5c479ca6445f0709e5068a762917
7
+ data.tar.gz: 55f2ec01207a80905e2c66d4808e1adcc850df5e87d6d5dcfeea4700131bad5d0929559a96483416ecfb5cd7963ce337bc525edc9a21d66e4a07993481b71f6b
data/README.md CHANGED
@@ -8,7 +8,7 @@ Red Arrow Numo::NArray
8
8
 
9
9
  Red Arrow Numo::NArray is a library that provides converters between Apache Arrow's tensor data (`Arrow::Tensor`) and Numo::NArray data.
10
10
 
11
- Red Arrow Numo::NArray adds `Arrow::Tensor#to_narray` and `#to_arrow` 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`.
11
+ 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.
12
12
 
13
13
  ## Install
14
14
 
@@ -27,9 +27,9 @@ narray.to_arrow # -> An object of Arrow::Tensor
27
27
 
28
28
  ## Dependencies
29
29
 
30
- * [Red Arrow](https://github.com/red-data-tools/red-arrow)
30
+ * [Red Arrow](https://github.com/apache/arrow/tree/master/ruby/red-arrow)
31
31
 
32
- * [Numo::NArray](http://ruby-numo.github.io/narray/)
32
+ * [Numo::NArray](https://github.com/ruby-numo/numo-narray)
33
33
 
34
34
  ## Authors
35
35
 
data/doc/text/news.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # News
2
2
 
3
+ ## 0.0.6 - 2022-10-17
4
+
5
+ ### Improvements
6
+
7
+ * Added support for `#to_arrow_array` that is available since Red
8
+ Arrow 11.0.0.
9
+
10
+ ## 0.0.5 - 2020-05-23
11
+
12
+ ### Fixes
13
+
14
+ * Fixed a crash bug caused by `#to_arrow` object.
15
+ [GitHub#5][Reported by dsisnero]
16
+
17
+ ### Thanks
18
+
19
+ * dsisnero
20
+
3
21
  ## 0.0.4 - 2019-08-19
4
22
 
5
23
  ### Improvements
@@ -16,13 +16,15 @@ module Numo
16
16
  module ArrowConvertable
17
17
  def to_arrow
18
18
  data = to_binary
19
- tensor = Arrow::Tensor.new(arrow_data_type,
20
- Arrow::Buffer.new(data),
21
- shape,
22
- nil,
23
- nil)
24
- tensor.instance_variable_set(:@data, data)
25
- tensor
19
+ Arrow::Tensor.new(arrow_data_type,
20
+ Arrow::Buffer.new(data),
21
+ shape,
22
+ nil,
23
+ nil)
24
+ end
25
+
26
+ def to_arrow_array
27
+ to_arrow.to_arrow_array
26
28
  end
27
29
  end
28
30
 
@@ -1,4 +1,4 @@
1
- # Copyright 2017-2019 Sutou Kouhei <kou@clear-code.com>
1
+ # Copyright 2017-2020 Sutou Kouhei <kou@clear-code.com>
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -13,5 +13,5 @@
13
13
  # limitations under the License.
14
14
 
15
15
  module ArrowNumoNArray
16
- VERSION = "0.0.5"
16
+ VERSION = "0.0.6"
17
17
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: red-arrow-numo-narray
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-23 00:00:00.000000000 Z
11
+ date: 2022-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: red-arrow
@@ -108,12 +108,13 @@ dependencies:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
- description: 'Red Arrow Numo::NArray adds `Arrow::Tensor#to_narray` and `#to_arrow`
111
+ description: 'Red Arrow Numo::NArray adds `Arrow::Tensor#to_narray` and `#to_arrow`/`#to_arrow_array`
112
112
  to `Numo::NArray`''s numerical subclasses such as `Numo::Int8`. `Arrow::Tensor#to_narray`
113
113
  returns a `Numo::NArray`''s numerical subclass such as `Numo::Int8`. `#to_arrow`
114
- returns a `Arrow::Tensor`.
114
+ returns a `Arrow::Tensor`. `#to_arrow_array` returns an `Arrow::Array` instance
115
+ if the original object is an 1 dimensional array.
115
116
 
116
- '
117
+ '
117
118
  email:
118
119
  - kou@clear-code.com
119
120
  executables: []
@@ -140,7 +141,7 @@ homepage: https://github.com/red-data-tools/red-arrow-numo-narray
140
141
  licenses:
141
142
  - Apache-2.0
142
143
  metadata: {}
143
- post_install_message:
144
+ post_install_message:
144
145
  rdoc_options: []
145
146
  require_paths:
146
147
  - lib
@@ -155,8 +156,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
156
  - !ruby/object:Gem::Version
156
157
  version: '0'
157
158
  requirements: []
158
- rubygems_version: 3.2.0.pre1
159
- signing_key:
159
+ rubygems_version: 3.4.0.dev
160
+ signing_key:
160
161
  specification_version: 4
161
162
  summary: Red Arrow Numo::NArray is a library that provides converters between Apache
162
163
  Arrow's tensor data (`Arrow::Tensor`) and Numo::NArray data.