numo-random 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/ext/numo/random/extconf.rb +6 -0
- data/lib/numo/random/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ffdaa65d4b6d47411f6012be28d855af1e67ac7b80702d780cb4add53e48ad7f
|
4
|
+
data.tar.gz: 614eeb1dcdf2ea7563ac7cfab1c0200a698df99e33126b7ce16ae86afc109866
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af4074175b9daf0547d58c603c9c26c48079fdc844fb16ebe58ecbe5a9842f4f4fcf4ac6ca25af6dde870498326fc4ed8617331cc423fd283d2ecfcdc631101b
|
7
|
+
data.tar.gz: 48511c4ab7b969c69cd55678e6a35d5355e6838f0fe220f8185146c70529e3e88de18f6cab3ffa8aa5d560557cc11ec18bb59ee6ac6b33a0cea4589ba1c98743
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,9 @@
|
|
1
|
+
## [0.5.1]
|
2
|
+
|
3
|
+
- Fix build failure with Xcode 14 and Ruby 3.1.x.
|
4
|
+
|
1
5
|
## [0.5.0]
|
6
|
+
|
2
7
|
- Support 32-bit PCG and Mersenne Twister.
|
3
8
|
|
4
9
|
```ruby
|
@@ -12,17 +17,22 @@ rng = Numo::Random::Generator.new(algorithm: 'mt64')
|
|
12
17
|
```
|
13
18
|
|
14
19
|
## [0.4.0]
|
20
|
+
|
15
21
|
- Add method for random number generation with bernoulli distribution: bernoulli, binomial, negative_binomial, and geometric.
|
16
22
|
|
17
23
|
## [0.3.0]
|
24
|
+
|
18
25
|
- Change native extension filename.
|
19
26
|
- Add methods for random number generation with poisson distributions: poisson, exponential, gamma, gumbel, and weibull.
|
20
27
|
|
21
28
|
## [0.2.0]
|
29
|
+
|
22
30
|
- Add discrete method.
|
23
31
|
|
24
32
|
### Breaking Changes
|
33
|
+
|
25
34
|
- Change to return array for all methods that fill array with random numbers in Generator class.
|
26
35
|
|
27
36
|
## [0.1.0]
|
37
|
+
|
28
38
|
- Initial release.
|
data/ext/numo/random/extconf.rb
CHANGED
@@ -26,4 +26,10 @@ $CXXFLAGS << " -std=c++11"
|
|
26
26
|
$INCFLAGS << " -I$(srcdir)/src"
|
27
27
|
$VPATH << "$(srcdir)/src"
|
28
28
|
|
29
|
+
if RUBY_PLATFORM.match?(/darwin/) && Gem::Version.new('3.1.0') <= Gem::Version.new(RUBY_VERSION)
|
30
|
+
if try_link('int main(void){return 0;}', '-Wl,-undefined,dynamic_lookup')
|
31
|
+
$LDFLAGS << ' -Wl,-undefined,dynamic_lookup'
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
29
35
|
create_makefile("numo/random/ext")
|
data/lib/numo/random/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: numo-random
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- yoshoku
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-11-
|
11
|
+
date: 2022-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: numo-narray
|
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: '0'
|
73
73
|
requirements: []
|
74
|
-
rubygems_version: 3.3.
|
74
|
+
rubygems_version: 3.3.26
|
75
75
|
signing_key:
|
76
76
|
specification_version: 4
|
77
77
|
summary: Numo::Random provides random number generation with several distributions
|