numo-narray-alt 0.9.7 → 0.9.9

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.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +24 -10
  3. data/Rakefile +7 -1
  4. data/ext/numo/narray/extconf.rb +3 -3
  5. data/ext/numo/narray/numo/narray.h +2 -2
  6. data/ext/numo/narray/numo/types/complex.h +2 -2
  7. data/ext/numo/narray/src/mh/math/acos.h +9 -0
  8. data/ext/numo/narray/src/mh/math/acosh.h +9 -0
  9. data/ext/numo/narray/src/mh/math/asin.h +9 -0
  10. data/ext/numo/narray/src/mh/math/asinh.h +9 -0
  11. data/ext/numo/narray/src/mh/math/atan.h +9 -0
  12. data/ext/numo/narray/src/mh/math/atan2.h +29 -0
  13. data/ext/numo/narray/src/mh/math/atanh.h +9 -0
  14. data/ext/numo/narray/src/mh/math/cbrt.h +9 -0
  15. data/ext/numo/narray/src/mh/math/cos.h +9 -0
  16. data/ext/numo/narray/src/mh/math/cosh.h +9 -0
  17. data/ext/numo/narray/src/mh/math/erf.h +9 -0
  18. data/ext/numo/narray/src/mh/math/erfc.h +9 -0
  19. data/ext/numo/narray/src/mh/math/exp.h +9 -0
  20. data/ext/numo/narray/src/mh/math/exp10.h +9 -0
  21. data/ext/numo/narray/src/mh/math/exp2.h +9 -0
  22. data/ext/numo/narray/src/mh/math/expm1.h +9 -0
  23. data/ext/numo/narray/src/mh/math/frexp.h +30 -0
  24. data/ext/numo/narray/src/mh/math/hypot.h +29 -0
  25. data/ext/numo/narray/src/mh/math/ldexp.h +29 -0
  26. data/ext/numo/narray/src/mh/math/log.h +9 -0
  27. data/ext/numo/narray/src/mh/math/log10.h +9 -0
  28. data/ext/numo/narray/src/mh/math/log1p.h +9 -0
  29. data/ext/numo/narray/src/mh/math/log2.h +9 -0
  30. data/ext/numo/narray/src/mh/math/sin.h +9 -0
  31. data/ext/numo/narray/src/mh/math/sinc.h +9 -0
  32. data/ext/numo/narray/src/mh/math/sinh.h +9 -0
  33. data/ext/numo/narray/src/mh/math/sqrt.h +203 -0
  34. data/ext/numo/narray/src/mh/math/tan.h +9 -0
  35. data/ext/numo/narray/src/mh/math/tanh.h +9 -0
  36. data/ext/numo/narray/src/mh/math/unary_func.h +70 -0
  37. data/ext/numo/narray/src/mh/mean.h +1 -8
  38. data/ext/numo/narray/src/mh/rms.h +1 -8
  39. data/ext/numo/narray/src/mh/stddev.h +1 -8
  40. data/ext/numo/narray/src/mh/var.h +1 -8
  41. data/ext/numo/narray/src/t_dcomplex.c +236 -1707
  42. data/ext/numo/narray/src/t_dfloat.c +66 -1952
  43. data/ext/numo/narray/src/t_robject.c +4 -4
  44. data/ext/numo/narray/src/t_scomplex.c +236 -1707
  45. data/ext/numo/narray/src/t_sfloat.c +66 -1952
  46. data/lib/numo/narray/alt.rb +3 -0
  47. data/lib/numo/narray.rb +15 -2
  48. data/numo-narray-alt.gemspec +18 -5
  49. metadata +47 -6
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative '../narray'
data/lib/numo/narray.rb CHANGED
@@ -1,4 +1,17 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "numo/narray.#{RUBY_PLATFORM.include?('darwin') ? 'bundle' : 'so'}"
4
- require 'numo/narray/extra'
3
+ require_relative 'narray/narray'
4
+ require_relative 'narray/extra'
5
+
6
+ module Numo
7
+ class NArray
8
+ # Constant to indicate whether it is numo-narray-alt.
9
+ ALTERNATIVE = true
10
+
11
+ # Returns true if this is numo-narray-alt.
12
+ # @return [Boolean]
13
+ def self.alternative?
14
+ ALTERNATIVE
15
+ end
16
+ end
17
+ end
@@ -14,25 +14,38 @@ open('ext/numo/narray/numo/narray.h') do |f|
14
14
  end
15
15
  end
16
16
 
17
- Gem::Specification.new do |spec|
17
+ Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength
18
18
  spec.name = 'numo-narray-alt'
19
19
  spec.version = NARRAY_VERSION
20
20
  spec.authors = ['yoshoku']
21
21
  spec.email = ['yoshoku@outlook.com']
22
- spec.description = 'Numo::NArray Alternative is an experimental project forked from Numo::NArray.'
23
- spec.summary = 'Numo::NArray Alternative is an experimental project forked from Numo::NArray.'
22
+ spec.description = <<~DESC
23
+ Numo::NArray Alternative is a project forked from Numo::NArray.
24
+ The project aims to support the latest Ruby features,
25
+ release bug fixes as quickly as possible, and adopt modern development practices.
26
+ DESC
27
+ spec.summary = 'Numo::NArray Alternative is a project forked from Numo::NArray.'
24
28
  spec.homepage = 'https://github.com/yoshoku/numo-narray-alt'
25
29
  spec.license = 'BSD-3-Clause'
26
30
  spec.required_ruby_version = '>= 2.2'
27
31
 
28
32
  spec.metadata['homepage_uri'] = spec.homepage
29
- spec.metadata['source_code_uri'] = spec.homepage
30
33
  spec.metadata['changelog_uri'] = "#{spec.homepage}/blob/main/CHANGELOG.md"
31
34
  spec.metadata['documentation_uri'] = "https://gemdocs.org/gems/#{spec.name}/#{spec.version}/"
35
+ spec.metadata['rubygems_mfa_required'] = 'true'
32
36
 
33
37
  spec.files = `git ls-files Gemfile LICENSE README.md Rakefile lib ext numo-narray-alt.gemspec`.split($INPUT_RECORD_SEPARATOR) # rubocop:disable Layout/LineLength
34
38
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
35
39
  spec.require_paths = ['lib']
36
40
  spec.extensions = ['ext/numo/narray/extconf.rb']
37
- spec.metadata['rubygems_mfa_required'] = 'true'
41
+
42
+ spec.post_install_message = <<~MESSAGE
43
+ ===
44
+ Thank you for installing 'numo-narray-alt'.
45
+
46
+ NOTICE: 'numo-narray-alt' is an alternative implementation of 'numo-narray'.
47
+ Having both gems installed may lead to conflicts and unexpected behavior.
48
+ If you encounter any issues, please consider uninstalling one of them.
49
+ ===
50
+ MESSAGE
38
51
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: numo-narray-alt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.7
4
+ version: 0.9.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - yoshoku
@@ -9,7 +9,10 @@ bindir: bin
9
9
  cert_chain: []
10
10
  date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies: []
12
- description: Numo::NArray Alternative is an experimental project forked from Numo::NArray.
12
+ description: |
13
+ Numo::NArray Alternative is a project forked from Numo::NArray.
14
+ The project aims to support the latest Ruby features,
15
+ release bug fixes as quickly as possible, and adopt modern development practices.
13
16
  email:
14
17
  - yoshoku@outlook.com
15
18
  executables: []
@@ -63,6 +66,36 @@ files:
63
66
  - ext/numo/narray/numo/types/uint_macro.h
64
67
  - ext/numo/narray/numo/types/xint_macro.h
65
68
  - ext/numo/narray/rand.c
69
+ - ext/numo/narray/src/mh/math/acos.h
70
+ - ext/numo/narray/src/mh/math/acosh.h
71
+ - ext/numo/narray/src/mh/math/asin.h
72
+ - ext/numo/narray/src/mh/math/asinh.h
73
+ - ext/numo/narray/src/mh/math/atan.h
74
+ - ext/numo/narray/src/mh/math/atan2.h
75
+ - ext/numo/narray/src/mh/math/atanh.h
76
+ - ext/numo/narray/src/mh/math/cbrt.h
77
+ - ext/numo/narray/src/mh/math/cos.h
78
+ - ext/numo/narray/src/mh/math/cosh.h
79
+ - ext/numo/narray/src/mh/math/erf.h
80
+ - ext/numo/narray/src/mh/math/erfc.h
81
+ - ext/numo/narray/src/mh/math/exp.h
82
+ - ext/numo/narray/src/mh/math/exp10.h
83
+ - ext/numo/narray/src/mh/math/exp2.h
84
+ - ext/numo/narray/src/mh/math/expm1.h
85
+ - ext/numo/narray/src/mh/math/frexp.h
86
+ - ext/numo/narray/src/mh/math/hypot.h
87
+ - ext/numo/narray/src/mh/math/ldexp.h
88
+ - ext/numo/narray/src/mh/math/log.h
89
+ - ext/numo/narray/src/mh/math/log10.h
90
+ - ext/numo/narray/src/mh/math/log1p.h
91
+ - ext/numo/narray/src/mh/math/log2.h
92
+ - ext/numo/narray/src/mh/math/sin.h
93
+ - ext/numo/narray/src/mh/math/sinc.h
94
+ - ext/numo/narray/src/mh/math/sinh.h
95
+ - ext/numo/narray/src/mh/math/sqrt.h
96
+ - ext/numo/narray/src/mh/math/tan.h
97
+ - ext/numo/narray/src/mh/math/tanh.h
98
+ - ext/numo/narray/src/mh/math/unary_func.h
66
99
  - ext/numo/narray/src/mh/mean.h
67
100
  - ext/numo/narray/src/mh/rms.h
68
101
  - ext/numo/narray/src/mh/stddev.h
@@ -84,6 +117,7 @@ files:
84
117
  - ext/numo/narray/step.c
85
118
  - ext/numo/narray/struct.c
86
119
  - lib/numo/narray.rb
120
+ - lib/numo/narray/alt.rb
87
121
  - lib/numo/narray/extra.rb
88
122
  - numo-narray-alt.gemspec
89
123
  homepage: https://github.com/yoshoku/numo-narray-alt
@@ -91,10 +125,17 @@ licenses:
91
125
  - BSD-3-Clause
92
126
  metadata:
93
127
  homepage_uri: https://github.com/yoshoku/numo-narray-alt
94
- source_code_uri: https://github.com/yoshoku/numo-narray-alt
95
128
  changelog_uri: https://github.com/yoshoku/numo-narray-alt/blob/main/CHANGELOG.md
96
- documentation_uri: https://gemdocs.org/gems/numo-narray-alt/0.9.7/
129
+ documentation_uri: https://gemdocs.org/gems/numo-narray-alt/0.9.9/
97
130
  rubygems_mfa_required: 'true'
131
+ post_install_message: |
132
+ ===
133
+ Thank you for installing 'numo-narray-alt'.
134
+
135
+ NOTICE: 'numo-narray-alt' is an alternative implementation of 'numo-narray'.
136
+ Having both gems installed may lead to conflicts and unexpected behavior.
137
+ If you encounter any issues, please consider uninstalling one of them.
138
+ ===
98
139
  rdoc_options: []
99
140
  require_paths:
100
141
  - lib
@@ -109,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
150
  - !ruby/object:Gem::Version
110
151
  version: '0'
111
152
  requirements: []
112
- rubygems_version: 3.6.9
153
+ rubygems_version: 3.7.2
113
154
  specification_version: 4
114
- summary: Numo::NArray Alternative is an experimental project forked from Numo::NArray.
155
+ summary: Numo::NArray Alternative is a project forked from Numo::NArray.
115
156
  test_files: []