numo-pocketfft 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0b5b5dc31d542918a00c130c3397e70f99636dc5
4
- data.tar.gz: f1e59827f23e783c2d3d3c49e9339ab9bfebddd7
3
+ metadata.gz: 7986980a5b77d766c150702aec5f6913e1538bc6
4
+ data.tar.gz: 3e5385df4c518b9c477fbc909dcb3ea6810347a3
5
5
  SHA512:
6
- metadata.gz: 2d7ac577d847186df9d7ec726e4403d2218690180df2c244b202fc928cd6919f02381e6a86863034817b027497abfb3ce107df0439ff8f8888b17e28057868ee
7
- data.tar.gz: 4987a31efec2b173930f94f1e0cc2e84d47d088d36d3953688a07639114e428cfb40259c0b14e653e7e0c6e1af76d10c469ed167a02f2864217610d8f3551fd6
6
+ metadata.gz: 1d18ee2d9d4eaf35bceb671d7364f4d9b3017fa1b1006387b1cc6d98fba421676eebf5a7ff7904a236f2f3ec2f11c042b66d70554d8f5bfba11f505783fe03a6
7
+ data.tar.gz: 63c3541af48456568502e6c3f94419d45289979476e6b7747620f651293555d7bc0e02149dc6bf957fbf5a5ee3f1e32cc77127b97e1bed63982c149b123469db
@@ -1,3 +1,7 @@
1
+ # 0.2.1
2
+ - Fix the link to the document.
3
+ - Several documentation improvements.
4
+
1
5
  # 0.2.0
2
6
  - Add fftconvolve method that convolves two arrays with FFT.
3
7
 
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
  [![Build Status](https://travis-ci.org/yoshoku/numo-pocketfft.svg?branch=master)](https://travis-ci.org/yoshoku/numo-pocketfft)
5
5
  [![Coverage Status](https://coveralls.io/repos/github/yoshoku/numo-pocketfft/badge.svg?branch=master)](https://coveralls.io/github/yoshoku/numo-pocketfft?branch=master)
6
6
  [![BSD 3-Clause License](https://img.shields.io/badge/License-BSD%203--Clause-orange.svg)](https://github.com/yoshoku/numo-liblinear/blob/master/LICENSE.txt)
7
- [![Documentation](http://img.shields.io/badge/docs-rdoc.info-blue.svg)](http://www.rubydoc.info/gems/numo-pocketfft/0.2.0)
7
+ [![Documentation](http://img.shields.io/badge/docs-rdoc.info-blue.svg)](https://yoshoku.github.io/numo-pocketfft/doc/)
8
8
 
9
9
  Numo::Pocketfft provides functions for performing descrete Fourier Transform with
10
10
  [Numo::NArray](https://github.com/ruby-numo/numo-narray) by using
@@ -10,6 +10,7 @@ module Numo
10
10
 
11
11
  # Compute the 1-dimensional discrete Fourier Transform.
12
12
  # @param a [Numo::DFloat/Numo::DComplex] Real or complex 1-dimensional input array.
13
+ # @raise [ArgumentError] This error is raised if input array is not Numo::NArray, is not one-dimensional array, or is empty.
13
14
  # @return [Numo::DComplex] Transformed data.
14
15
  def fft(a)
15
16
  raise ArgumentError, 'Expect class of input array to be Numo::NArray.' unless a.is_a?(Numo::NArray)
@@ -21,6 +22,7 @@ module Numo
21
22
 
22
23
  # Compute the 1-dimensional inverse discrete Fourier Transform.
23
24
  # @param a [Numo::DComplex] Complex 1-dimensional input array.
25
+ # @raise [ArgumentError] This error is raised if input array is not Numo::NArray, is not one-dimensional array, or is empty.
24
26
  # @return [Numo::DComplex] Inversed transformed data.
25
27
  def ifft(a)
26
28
  raise ArgumentError, 'Expect class of input array to be Numo::NArray.' unless a.is_a?(Numo::NArray)
@@ -32,6 +34,7 @@ module Numo
32
34
 
33
35
  # Compute the 2-dimensional discrete Fourier Transform.
34
36
  # @param a [Numo::DFloat/Numo::DComplex] Real or complex 2-dimensional input array.
37
+ # @raise [ArgumentError] This error is raised if input array is not Numo::NArray, is not two-dimensional array, or is empty.
35
38
  # @return [Numo::DComplex] Transformed data.
36
39
  def fft2(a)
37
40
  raise ArgumentError, 'Expect class of input array to be Numo::NArray.' unless a.is_a?(Numo::NArray)
@@ -43,6 +46,7 @@ module Numo
43
46
 
44
47
  # Compute the 2-dimensional inverse discrete Fourier Transform.
45
48
  # @param a [Numo::DComplex] Complex 2-dimensional input array.
49
+ # @raise [ArgumentError] This error is raised if input array is not Numo::NArray, is not two-dimensional array, or is empty.
46
50
  # @return [Numo::DComplex] Inversed transformed data.
47
51
  def ifft2(a)
48
52
  raise ArgumentError, 'Expect class of input array to be Numo::NArray.' unless a.is_a?(Numo::NArray)
@@ -54,6 +58,7 @@ module Numo
54
58
 
55
59
  # Compute the N-dimensional discrete Fourier Transform.
56
60
  # @param a [Numo::DFloat/Numo::DComplex] Real or complex input array with any-dimension.
61
+ # @raise [ArgumentError] This error is raised if input array is not Numo::NArray or is empty.
57
62
  # @return [Numo::DComplex] Transformed data.
58
63
  def fftn(a)
59
64
  raise ArgumentError, 'Expect class of input array to be Numo::NArray.' unless a.is_a?(Numo::NArray)
@@ -66,6 +71,7 @@ module Numo
66
71
 
67
72
  # Compute the N-dimensional inverse discrete Fourier Transform.
68
73
  # @param a [Numo::DComplex] Complex input array with any-dimension.
74
+ # @raise [ArgumentError] This error is raised if input array is not Numo::NArray or is empty.
69
75
  # @return [Numo::DComplex] Inversed transformed data.
70
76
  def ifftn(a)
71
77
  raise ArgumentError, 'Expect class of input array to be Numo::NArray.' unless a.is_a?(Numo::NArray)
@@ -78,6 +84,7 @@ module Numo
78
84
 
79
85
  # Compute the 1-dimensional discrete Fourier Transform for real input.
80
86
  # @param a [Numo::DFloat] Real 1-dimensional input array.
87
+ # @raise [ArgumentError] This error is raised if input array is not Numo::NArray, is not one-dimensional array, or is empty.
81
88
  # @return [Numo::DComplex] Transformed data.
82
89
  def rfft(a)
83
90
  raise ArgumentError, 'Expect class of input array to be Numo::NArray.' unless a.is_a?(Numo::NArray)
@@ -89,6 +96,7 @@ module Numo
89
96
 
90
97
  # Compute the inverse of the 1-dimensional discrete Fourier Transform of real input.
91
98
  # @param a [Numo::DComplex] Complex 1-dimensional input array.
99
+ # @raise [ArgumentError] This error is raised if input array is not Numo::NArray, is not one-dimensional array, or is empty.
92
100
  # @return [Numo::DFloat] Inverse transformed data.
93
101
  def irfft(a)
94
102
  raise ArgumentError, 'Expect class of input array to be Numo::NArray.' unless a.is_a?(Numo::NArray)
@@ -100,6 +108,7 @@ module Numo
100
108
 
101
109
  # Compute the 2-dimensional discrete Fourier Transform for real input.
102
110
  # @param a [Numo::DFloat] Real 2-dimensional input array.
111
+ # @raise [ArgumentError] This error is raised if input array is not Numo::NArray, is not two-dimensional array, or is empty.
103
112
  # @return [Numo::DComplex] Transformed data.
104
113
  def rfft2(a)
105
114
  raise ArgumentError, 'Expect class of input array to be Numo::NArray.' unless a.is_a?(Numo::NArray)
@@ -111,6 +120,7 @@ module Numo
111
120
 
112
121
  # Compute the inverse of the 2-dimensional discrete Fourier Transform of real input.
113
122
  # @param a [Numo::DComplex] Complex 2-dimensional input array.
123
+ # @raise [ArgumentError] This error is raised if input array is not Numo::NArray, is not two-dimensional array, or is empty.
114
124
  # @return [Numo::DFloat] Inverse transformed data.
115
125
  def irfft2(a)
116
126
  raise ArgumentError, 'Expect class of input array to be Numo::NArray.' unless a.is_a?(Numo::NArray)
@@ -122,6 +132,7 @@ module Numo
122
132
 
123
133
  # Compute the N-dimensional discrete Fourier Transform for real input.
124
134
  # @param a [Numo::DFloat] Real input array with any-dimension.
135
+ # @raise [ArgumentError] This error is raised if input array is not Numo::NArray or is empty.
125
136
  # @return [Numo::DComplex] Transformed data.
126
137
  def rfftn(a)
127
138
  raise ArgumentError, 'Expect class of input array to be Numo::NArray.' unless a.is_a?(Numo::NArray)
@@ -135,6 +146,7 @@ module Numo
135
146
 
136
147
  # Compute the inverse of the N-dimensional discrete Fourier Transform of real input.
137
148
  # @param a [Numo::DComplex] Complex input array with any-dimension.
149
+ # @raise [ArgumentError] This error is raised if input array is not Numo::NArray or is empty.
138
150
  # @return [Numo::DFloat] Inverse transformed data.
139
151
  def irfftn(a)
140
152
  raise ArgumentError, 'Expect class of input array to be Numo::NArray.' unless a.is_a?(Numo::NArray)
@@ -165,6 +177,7 @@ module Numo
165
177
  # # [21, 52, 32]]
166
178
  # @param a [Numo::DFloat/Numo::DComplex] Fisrt input array with any-dimension.
167
179
  # @param b [Numo::DFloat/Numo::DComplex] Second input array with the same number of dimensions as first input array.
180
+ # @raise [ArgumentError] This error is raised if input arrays are not Numo::NArray, are not the same dimensionality, or are empty.
168
181
  # @return [Numo::DFloat/Numo::DComplex] The discrete linear convolution of 'a' with 'b'.
169
182
  def fftconvolve(a, b)
170
183
  raise ArgumentError, 'Expect class of input array to be Numo::NArray.' unless a.is_a?(Numo::NArray) && b.is_a?(Numo::NArray)
@@ -5,6 +5,6 @@ module Numo
5
5
  # Numo::Pocketfft is the module that has functions for Fourier transform.
6
6
  module Pocketfft
7
7
  # The version of Numo::Pocketfft you are using.
8
- VERSION = '0.2.0'
8
+ VERSION = '0.2.1'
9
9
  end
10
10
  end
@@ -37,6 +37,14 @@ Gem::Specification.new do |spec|
37
37
  spec.require_paths = ['lib']
38
38
  spec.extensions = ['ext/numo/pocketfft/extconf.rb']
39
39
 
40
+ spec.metadata = {
41
+ 'homepage_uri' => 'https://github.com/yoshoku/numo-pocketfft',
42
+ 'changelog_uri' => 'https://github.com/yoshoku/numo-pocketfft/blob/master/CHANGELOG.md',
43
+ 'source_code_uri' => 'https://github.com/yoshoku/numo-pocketfft',
44
+ 'documentation_uri' => 'https://yoshoku.github.io/numo-pocketfft/doc/',
45
+ 'bug_tracker_uri' => 'https://github.com/yoshoku/numo-pocketfft/issues'
46
+ }
47
+
40
48
  spec.add_runtime_dependency 'numo-narray', '~> 0.9.1'
41
49
 
42
50
  spec.add_development_dependency 'bundler', '~> 2.0'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: numo-pocketfft
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - yoshoku
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-18 00:00:00.000000000 Z
11
+ date: 2019-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: numo-narray
@@ -134,7 +134,12 @@ files:
134
134
  homepage: https://github.com/yoshoku/numo-pocketfft
135
135
  licenses:
136
136
  - BSD-3-Clause
137
- metadata: {}
137
+ metadata:
138
+ homepage_uri: https://github.com/yoshoku/numo-pocketfft
139
+ changelog_uri: https://github.com/yoshoku/numo-pocketfft/blob/master/CHANGELOG.md
140
+ source_code_uri: https://github.com/yoshoku/numo-pocketfft
141
+ documentation_uri: https://yoshoku.github.io/numo-pocketfft/doc/
142
+ bug_tracker_uri: https://github.com/yoshoku/numo-pocketfft/issues
138
143
  post_install_message:
139
144
  rdoc_options: []
140
145
  require_paths: