ruby-mpfr 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +13 -0
- data/Gemfile +4 -0
- data/README.rdoc +8 -7
- data/Rakefile +26 -25
- data/ext/mpfr/ruby_mpfr.c +367 -219
- data/ext/mpfr_matrix/mpfr/func_mpfr_matrix.c +18 -21
- data/ext/mpfr_matrix/mpfr/ruby_mpfr_matrix.c +78 -62
- data/lib/mpfr/gmp.rb +1 -0
- data/lib/mpfr/matrix.rb +1 -0
- data/lib/mpfr/version.rb +3 -1
- data/ruby-mpfr.gemspec +19 -34
- data/spec/mpfr/comparison_spec.rb +59 -0
- data/spec/mpfr/conversion_spec.rb +174 -8
- metadata +53 -64
- data/.gemtest +0 -0
- data/Manifest.txt +0 -58
- data/PostInstall.txt +0 -7
- data/script/console +0 -10
- data/script/destroy +0 -14
- data/script/generate +0 -14
- data/tasks/extconf.rake +0 -36
data/.gemtest
DELETED
File without changes
|
data/Manifest.txt
DELETED
@@ -1,58 +0,0 @@
|
|
1
|
-
Example.rdoc
|
2
|
-
History.txt
|
3
|
-
Manifest.txt
|
4
|
-
PostInstall.txt
|
5
|
-
README.rdoc
|
6
|
-
Rakefile
|
7
|
-
ext/gmp/mpfr/extconf.rb
|
8
|
-
ext/gmp/mpfr/gmp_header/gmpf.h
|
9
|
-
ext/gmp/mpfr/gmp_header/gmpq.h
|
10
|
-
ext/gmp/mpfr/gmp_header/gmpz.h
|
11
|
-
ext/gmp/mpfr/gmp_header/mprnd.h
|
12
|
-
ext/gmp/mpfr/gmp_header/ruby_gmp.h
|
13
|
-
ext/gmp/mpfr/gmp_header/takeover.h
|
14
|
-
ext/gmp/mpfr/ruby_mpfr_gmp.c
|
15
|
-
ext/gmp/mpfr/ruby_mpfr_gmp.h
|
16
|
-
ext/mpfr/extconf.rb
|
17
|
-
ext/mpfr/ruby_mpfr.c
|
18
|
-
ext/mpfr/ruby_mpfr.h
|
19
|
-
ext/mpfr_matrix/mpfr/extconf.rb
|
20
|
-
ext/mpfr_matrix/mpfr/func_mpfr_matrix.c
|
21
|
-
ext/mpfr_matrix/mpfr/func_mpfr_matrix.h
|
22
|
-
ext/mpfr_matrix/mpfr/ruby_mpfr.h
|
23
|
-
ext/mpfr_matrix/mpfr/ruby_mpfr_matrix.c
|
24
|
-
ext/mpfr_matrix/mpfr/ruby_mpfr_matrix.h
|
25
|
-
lib/mpfr/gmp.rb
|
26
|
-
lib/mpfr/matrix.rb
|
27
|
-
lib/mpfr/rspec.rb
|
28
|
-
lib/mpfr/version.rb
|
29
|
-
ruby-mpfr.gemspec
|
30
|
-
script/console
|
31
|
-
script/destroy
|
32
|
-
script/generate
|
33
|
-
spec/gmp/convert_spec.rb
|
34
|
-
spec/gmp/rand_spec.rb
|
35
|
-
spec/gmp/spec_helper.rb
|
36
|
-
spec/mpfr/allocate_spec.rb
|
37
|
-
spec/mpfr/arithmetic_spec.rb
|
38
|
-
spec/mpfr/comparison_spec.rb
|
39
|
-
spec/mpfr/constant_spec.rb
|
40
|
-
spec/mpfr/conversion_spec.rb
|
41
|
-
spec/mpfr/exception_spec.rb
|
42
|
-
spec/mpfr/functions_spec.rb
|
43
|
-
spec/mpfr/generate_number_modulue.rb
|
44
|
-
spec/mpfr/marshal_spec.rb
|
45
|
-
spec/mpfr/precision_roundmode_spec.rb
|
46
|
-
spec/mpfr/rounding_spec.rb
|
47
|
-
spec/mpfr/set_value_spec.rb
|
48
|
-
spec/mpfr/spec_helper.rb
|
49
|
-
spec/mpfr/string_spec.rb
|
50
|
-
spec/mpfr_matrix/generate_matrix_arguments.rb
|
51
|
-
spec/mpfr_matrix/mpfr_matrix_alloc_spec.rb
|
52
|
-
spec/mpfr_matrix/mpfr_matrix_arithmetic_spec.rb
|
53
|
-
spec/mpfr_matrix/mpfr_matrix_marshal_spec.rb
|
54
|
-
spec/mpfr_matrix/mpfr_matrix_set_element_spec.rb
|
55
|
-
spec/mpfr_matrix/mpfr_matrix_string_spec.rb
|
56
|
-
spec/mpfr_matrix/mpfr_square_matrix_spec.rb
|
57
|
-
spec/mpfr_matrix/spec_helper.rb
|
58
|
-
tasks/extconf.rake
|
data/PostInstall.txt
DELETED
data/script/console
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# File: script/console
|
3
|
-
irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
|
4
|
-
|
5
|
-
libs = " -r irb/completion"
|
6
|
-
# Perhaps use a console_lib to store any extra methods I may want available in the cosole
|
7
|
-
# libs << " -r #{File.dirname(__FILE__) + '/../lib/console_lib/console_logger.rb'}"
|
8
|
-
libs << " -r #{File.dirname(__FILE__) + '/../lib/ruby-mpfr.rb'}"
|
9
|
-
puts "Loading ruby-mpfr gem"
|
10
|
-
exec "#{irb} #{libs} --simple-prompt"
|
data/script/destroy
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
3
|
-
|
4
|
-
begin
|
5
|
-
require 'rubigen'
|
6
|
-
rescue LoadError
|
7
|
-
require 'rubygems'
|
8
|
-
require 'rubigen'
|
9
|
-
end
|
10
|
-
require 'rubigen/scripts/destroy'
|
11
|
-
|
12
|
-
ARGV.shift if ['--help', '-h'].include?(ARGV[0])
|
13
|
-
RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
|
14
|
-
RubiGen::Scripts::Destroy.new.run(ARGV)
|
data/script/generate
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
3
|
-
|
4
|
-
begin
|
5
|
-
require 'rubigen'
|
6
|
-
rescue LoadError
|
7
|
-
require 'rubygems'
|
8
|
-
require 'rubigen'
|
9
|
-
end
|
10
|
-
require 'rubigen/scripts/generate'
|
11
|
-
|
12
|
-
ARGV.shift if ['--help', '-h'].include?(ARGV[0])
|
13
|
-
RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
|
14
|
-
RubiGen::Scripts::Generate.new.run(ARGV)
|
data/tasks/extconf.rake
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
# begin
|
2
|
-
# require 'rspec'
|
3
|
-
# rescue LoadError
|
4
|
-
# require 'rubygems' unless ENV['NO_RUBYGEMS']
|
5
|
-
# require 'rspec'
|
6
|
-
# end
|
7
|
-
# begin
|
8
|
-
# require 'rspec/rake/spectask'
|
9
|
-
# rescue LoadError
|
10
|
-
# puts <<-EOS
|
11
|
-
# To use rspec for testing you must install rspec gem:
|
12
|
-
# gem install rspec
|
13
|
-
# EOS
|
14
|
-
# exit(0)
|
15
|
-
# end
|
16
|
-
|
17
|
-
desc "Run 'make realclean' for extended libraries"
|
18
|
-
task "ext:realclean" do
|
19
|
-
Dir.glob("ext/**/Makefile").each do |path|
|
20
|
-
system("cd #{File.dirname(path)}; make realclean")
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
desc "Run 'make clean' for extended libraries"
|
25
|
-
task "ext:clean" do
|
26
|
-
Dir.glob("ext/**/Makefile").each do |path|
|
27
|
-
system("cd #{File.dirname(path)}; make clean")
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
desc "Run 'make realclean' for extended libraries"
|
32
|
-
task 'ext:make' do
|
33
|
-
Dir.glob("ext/**/extconf.rb").each do |path|
|
34
|
-
system("cd #{File.dirname(path)}; ruby extconf.rb && make")
|
35
|
-
end
|
36
|
-
end
|