integration 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: integration
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claudio Bustos
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-08-09 00:00:00.000000000 Z
12
+ date: 2015-03-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: text-table
@@ -89,21 +89,21 @@ executables: []
89
89
  extensions: []
90
90
  extra_rdoc_files: []
91
91
  files:
92
- - ".autotest"
93
92
  - ".gitignore"
94
- - ".rspec"
95
93
  - ".travis.yml"
96
94
  - Gemfile
97
- - Gemfile.lock
98
95
  - History.txt
99
- - Manifest.txt
100
96
  - README.md
101
97
  - Rakefile
102
98
  - benchmark/accuracy.rb
103
99
  - benchmark/speed.rb
104
100
  - integration.gemspec
105
101
  - lib/integration.rb
106
- - lib/symbolic.rb
102
+ - lib/integration/version.rb
103
+ - lib/opencl/Makefile
104
+ - lib/opencl/integration_host.c
105
+ - lib/opencl/opencl_minimization.rb
106
+ - lib/opencl/unidimensional_kernel.cl
107
107
  - spec/integration_spec.rb
108
108
  - spec/spec_helper.rb
109
109
  homepage:
data/.autotest DELETED
@@ -1,23 +0,0 @@
1
- # -*- ruby -*-
2
-
3
- require 'autotest/restart'
4
-
5
- # Autotest.add_hook :initialize do |at|
6
- # at.extra_files << "../some/external/dependency.rb"
7
- #
8
- # at.libs << ":../some/external"
9
- #
10
- # at.add_exception 'vendor'
11
- #
12
- # at.add_mapping(/dependency.rb/) do |f, _|
13
- # at.files_matching(/test_.*rb$/)
14
- # end
15
- #
16
- # %w(TestA TestB).each do |klass|
17
- # at.extra_class_map[klass] = "test/test_misc.rb"
18
- # end
19
- # end
20
-
21
- # Autotest.add_hook :run_command do |at|
22
- # system "rake build"
23
- # end
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --color
2
- -b
@@ -1,38 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- integration (0.1.1)
5
- rb-gsl (~> 1.2)
6
- text-table (~> 1.2)
7
-
8
- GEM
9
- remote: https://www.rubygems.org/
10
- specs:
11
- diff-lcs (1.2.5)
12
- narray (0.6.0.9)
13
- rake (10.3.2)
14
- rb-gsl (1.16.0.2)
15
- narray (>= 0.5.9)
16
- rspec (3.0.0)
17
- rspec-core (~> 3.0.0)
18
- rspec-expectations (~> 3.0.0)
19
- rspec-mocks (~> 3.0.0)
20
- rspec-core (3.0.3)
21
- rspec-support (~> 3.0.0)
22
- rspec-expectations (3.0.3)
23
- diff-lcs (>= 1.2.0, < 2.0)
24
- rspec-support (~> 3.0.0)
25
- rspec-mocks (3.0.3)
26
- rspec-support (~> 3.0.0)
27
- rspec-support (3.0.3)
28
- text-table (1.2.3)
29
-
30
- PLATFORMS
31
- ruby
32
-
33
- DEPENDENCIES
34
- bundler (~> 1.3)
35
- integration!
36
- rake (~> 10)
37
- rb-gsl
38
- rspec (~> 3.0)
@@ -1,9 +0,0 @@
1
- .autotest
2
- History.txt
3
- Manifest.txt
4
- README.txt
5
- Rakefile
6
- lib/integration.rb
7
- spec/integration_spec.rb
8
- spec/spec.opts
9
- spec/spec_helper.rb
@@ -1,55 +0,0 @@
1
- $LOAD_PATH<<'.'
2
- require 'java'
3
- require '/home/rajat/jscience.jar'
4
- java_import Java::OrgJscienceMathematicsFunction.Variable
5
- java_import Java::OrgJscienceMathematicsFunction.Polynomial
6
- import 'org.jscience.mathematics.number.Real'
7
-
8
-
9
- class Var #variable and symbol are already class in ruby
10
- def initialize(sym)
11
- @sym = sym
12
- @var = Variable::Local.new(@sym)
13
- end
14
-
15
- def show_symbol
16
- puts @sym
17
- end
18
- end
19
-
20
- class Polynomial
21
- def initialize(poly, vars)
22
- @poly = poly # Write parser? or ask the user to write full poly?
23
-
24
-
25
- end
26
- #java_import Java::OrgJscienceMathematicsFunction.Variable
27
- #java_import Java::OrgJscienceMathematicsFunction.Polynomial
28
- #import 'org.jscience.mathematics.number.Real'
29
-
30
- ##declaring 'x' and 'y' as symbols
31
- #varX = Variable::Local.new('x')
32
- #varY = Variable::Local.new('y')
33
-
34
- #creating a polynomial x
35
- # x = Polynomial.valueOf(Real::ONE,varX)
36
- #creating a polynomial fx = 1(x^5) + 6(x^2)
37
- #fx = x.pow(5).plus(x.pow(2).times(Real.valueOf(6)))
38
-
39
- #integrating with respect to variable 'x'
40
- #puts fx.integrate(varX)
41
- #integrating with respect to variable 'y'
42
- #puts fx.integrate(varY)
43
-
44
- #def polynomial(&block)
45
- # varX = Variable::Local.new('x')
46
- # x = Polynomial.valueOf(Real::ONE,varX)
47
- yield x
48
- #end
49
-
50
- # Creating a polynomial fx = 1(x^5) + 6(x^2).
51
- #fx = polynomial do |x|
52
- # x.pow(5).plus(x.pow(2).times(Real.valueOf(6)))
53
- # end
54
- # Integrating with respect to variable 'x'.
55
- #puts fx.integrate(varX)