boost_distributions 0.1.0 → 0.1.1

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: d1b0aaae38b2ea7a642561c9566449af4bffc288af94c77c4439013b4b7425ef
4
- data.tar.gz: 00a9769b9afcef2317b05f2f3243d03d8710944a2b7c4a7398ae3e5809f6aa35
3
+ metadata.gz: 35dec0969618b0f79bd22560ead41dd79f7188eb6edfe96fd21b9405a42f75cc
4
+ data.tar.gz: c4ef8d115bec49ec8aff483396f603a8f63162d4900b845fc0ce3fb54eada2f5
5
5
  SHA512:
6
- metadata.gz: c6ee3db3b09979f1f5475028dc38e9112d614a81bfc85d64035442130ec0bad8e857353149b17e6edd8087e0831015553c43e40c41798c8c3528032932470316
7
- data.tar.gz: 7a8925bb89278bd0c22b84cc9680383e850b67079758781e6864bdb04ef1c583f859f897f0461b7d8d726bceab9470b52d84dcde3e904e2d43d590434072b4f3
6
+ metadata.gz: 5016680f7798264272473b75558e9003359ad364e248ecb41553197303d84036a3482fd1290d5c7bdb38f9ff593a57e5fed204bea0d47d89bb08be55625f2947
7
+ data.tar.gz: e1ed6f5fe216511aaf667f4fa15043e7dbd7ac0b4d68a39b5c10688f6d180ae694be53abff3b492975e208be335397d5a3450118f29b85ea89b4d2d986786659
data/README.md CHANGED
@@ -31,16 +31,25 @@ After installation of boost headers, install the gem as:
31
31
 
32
32
  $ gem install boost_distributions
33
33
 
34
+ Note that if your boost headers are not in the standard path, the following alternative are helpful for each method.
35
+
36
+ $ gem install boost_distributions -- --with-boost-include=/path/to/parent_directory_of_boost_header
37
+
34
38
  Or if you want to include it into your application, add this line to Gemfile:
35
39
 
36
40
  ```ruby
37
41
  gem 'boost_distributions'
38
42
  ```
39
-
40
43
  and execute:
41
44
 
42
45
  $ bundle install
43
46
 
47
+ following
48
+
49
+ $ bundle config build.boost_distributions --with-boost-include=/path/to/parent_directory_of_boost_header
50
+
51
+ if your boost headers are in the non-standared path.
52
+
44
53
  ## Usage
45
54
 
46
55
  Example usage is as the followings:
data/Rakefile CHANGED
@@ -80,4 +80,4 @@ file "ext/ninja-scan-light/tool" do |t|
80
80
  Rake::Task["git:submodules:init"].invoke
81
81
  end
82
82
 
83
- task :default => ["ext/ninja-scan-light/tool", :compile, :spec]
83
+ task :default => [:compile, :spec]
@@ -3289,7 +3289,9 @@ SWIGINTERN boost::math::hyperexponential_distribution< double,policies::policy<
3289
3289
  prob.begin(), prob.end(), range.begin(), range.end());
3290
3290
  }
3291
3291
  SWIGINTERN boost::math::hyperexponential_distribution< double,policies::policy< > > *new_boost_math_hyperexponential_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg___SWIG_2(std::vector< double > const &range){
3292
- return new hyperexponential_distribution(range.begin(), range.end());
3292
+ return new hyperexponential_distribution(range);
3293
+ // two argument constructors have an overload problem. It is checked with 1.82.0.
3294
+ //return new hyperexponential_distribution(range.begin(), range.end());
3293
3295
  }
3294
3296
  SWIGINTERN boost::math::hyperexponential_distribution< double,policies::policy< > >::value_type boost_math_hyperexponential_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__pdf(boost::math::hyperexponential_distribution< double,policies::policy< > > const *self,boost::math::hyperexponential_distribution< double,policies::policy< > >::value_type const &x){
3295
3297
  return boost::math::distribution_shim_t<105700>::pdf(*self, x);
@@ -6,6 +6,8 @@ $CFLAGS += cflags
6
6
  $CPPFLAGS += cflags if RUBY_VERSION >= "2.0.0"
7
7
  $LOCAL_LIBS += " -lstdc++ "
8
8
 
9
+ dir_config('boost')
10
+
9
11
  IO_TARGETS = [
10
12
  [Kernel, :instance_eval],
11
13
  [(class << File; self; end), :class_eval], # https://github.com/ruby/ruby/commit/19beb028
@@ -297,7 +297,9 @@ struct dist_name ## _distribution { // dummy
297
297
  }
298
298
  hyperexponential_distribution(
299
299
  const std::vector<RealT> &range){
300
- return new hyperexponential_distribution(range.begin(), range.end());
300
+ return new hyperexponential_distribution(range);
301
+ // two argument constructors have an overload problem. It is checked with 1.82.0.
302
+ //return new hyperexponential_distribution(range.begin(), range.end());
301
303
  }
302
304
  #endif
303
305
  };
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BoostDistributions
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boost_distributions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - fenrir(M.Naruoka)
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-06-23 00:00:00.000000000 Z
11
+ date: 2023-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake