mdarray 0.4.3.pre-java → 0.5.0-java
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.
- data/README.md +82 -14
- data/Rakefile +8 -2
- data/doc/BinaryOperator.html +227 -0
- data/doc/BitwiseOperators.html +135 -0
- data/doc/BooleanFunctions.html +135 -0
- data/doc/BooleanMDArray.html +193 -0
- data/doc/ByteMDArray.html +271 -0
- data/doc/Colt.html +269 -0
- data/doc/ComparisonOperators.html +135 -0
- data/doc/Const.html +490 -0
- data/doc/Csv.html +589 -0
- data/doc/DDescriptive.html +4373 -0
- data/doc/DoubleMDArray.html +555 -0
- data/doc/DoubleStatList.html +256 -0
- data/doc/FastBinaryOperator.html +743 -0
- data/doc/FastBoolean.html +512 -0
- data/doc/FastUnaryOperator.html +583 -0
- data/doc/FloatMDArray.html +237 -0
- data/doc/FunctionCreation.html +520 -0
- data/doc/FunctionMap.html +813 -0
- data/doc/GenericFunctions.html +135 -0
- data/doc/IntMDArray.html +259 -0
- data/doc/LongMDArray.html +257 -0
- data/doc/MDArray.html +9639 -0
- data/doc/MDArray/Counter.html +2767 -0
- data/doc/MDArray/IteratorFast.html +872 -0
- data/doc/MDArray/IteratorFastBoolean.html +384 -0
- data/doc/MDArray/IteratorFastByte.html +373 -0
- data/doc/MDArray/IteratorFastChar.html +384 -0
- data/doc/MDArray/IteratorFastDouble.html +384 -0
- data/doc/MDArray/IteratorFastFloat.html +384 -0
- data/doc/MDArray/IteratorFastInt.html +384 -0
- data/doc/MDArray/IteratorFastLong.html +384 -0
- data/doc/MDArray/IteratorFastShort.html +384 -0
- data/doc/MDArrayTest.html +125 -0
- data/doc/NonNumericalMDArray.html +177 -0
- data/doc/NumericFunctions.html +297 -0
- data/doc/NumericalMDArray.html +278 -0
- data/doc/Operator.html +826 -0
- data/doc/Proc.html +1097 -0
- data/doc/RubyBinaryOperator.html +526 -0
- data/doc/RubyFunctions.html +232 -0
- data/doc/RubyMath.html +135 -0
- data/doc/RubyStats.html +135 -0
- data/doc/RubyUnaryOperator.html +510 -0
- data/doc/ShortMDArray.html +267 -0
- data/doc/StatList.html +1176 -0
- data/doc/StringMDArray.html +181 -0
- data/doc/StructureMDArray.html +181 -0
- data/doc/UnaryOperator.html +227 -0
- data/doc/UserFunction.html +297 -0
- data/doc/_index.html +467 -0
- data/doc/class_list.html +53 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +338 -0
- data/doc/file.README.html +173 -0
- data/doc/file_list.html +55 -0
- data/doc/frames.html +28 -0
- data/doc/index.html +173 -0
- data/doc/js/app.js +214 -0
- data/doc/js/full_list.js +173 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +2524 -0
- data/doc/top-level-namespace.html +114 -0
- data/lib/colt/colt.rb +56 -0
- data/lib/colt/colt_mdarray.rb +95 -0
- data/lib/colt/double_descriptive.rb +636 -0
- data/lib/colt/probability.rb +12 -0
- data/lib/colt/stat_list.rb +192 -0
- data/lib/env.rb +5 -1
- data/lib/mdarray.rb +5 -0
- data/lib/mdarray/access.rb +2 -2
- data/lib/mdarray/creation.rb +34 -19
- data/lib/mdarray/csv.rb +61 -0
- data/lib/mdarray/fast_operators.rb +241 -0
- data/lib/mdarray/operators.rb +18 -0
- data/lib/mdarray/ruby_operators.rb +2 -18
- data/lib/mdarray/ruby_stats.rb +1 -1
- data/lib/mdarray/views.rb +8 -8
- data/target/helper.jar +0 -0
- data/test/colt/VALE3.csv +3437 -0
- data/test/colt/VALE3.xlsx +0 -0
- data/test/colt/VALE3_short-err.csv +20 -0
- data/test/colt/VALE3_short.csv +20 -0
- data/test/colt/VALE3_short.xlsx +0 -0
- data/test/colt/test_complete.rb +25 -0
- data/test/colt/test_stat_list.rb +128 -0
- data/test/colt/test_statistics.rb +114 -0
- data/test/complete.rb +25 -0
- data/test/env.rb +54 -30
- data/test/{arithmetic_casting.rb → mdarray/arithmetic_casting.rb} +0 -0
- data/test/{test_access.rb → mdarray/test_access.rb} +0 -0
- data/test/{test_boolean.rb → mdarray/test_boolean.rb} +0 -2
- data/test/{test_comparison.rb → mdarray/test_comparison.rb} +0 -0
- data/test/{test_complete.rb → mdarray/test_complete.rb} +3 -14
- data/test/{test_counter.rb → mdarray/test_counter.rb} +0 -0
- data/test/{test_creation.rb → mdarray/test_creation.rb} +0 -0
- data/test/{test_error.rb → mdarray/test_error.rb} +8 -5
- data/test/{test_operator.rb → mdarray/test_operator.rb} +6 -2
- data/test/{test_speed.rb → mdarray/test_performance.rb} +74 -39
- data/test/{test_printing.rb → mdarray/test_printing.rb} +0 -1
- data/test/{test_shape.rb → mdarray/test_shape.rb} +0 -0
- data/test/mdarray/test_statistics.rb +80 -0
- data/test/{test_trigonometry.rb → mdarray/test_trigonometry.rb} +0 -0
- data/test/{test_views.rb → mdarray/test_views.rb} +0 -0
- data/vendor/parallelcolt-0.10.0.jar +0 -0
- data/version.rb +1 -1
- metadata +122 -39
- data/test/test_lazy.rb +0 -52
- data/test/test_statistics.rb +0 -38
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -19,16 +19,8 @@
|
|
|
19
19
|
# OR MODIFICATIONS.
|
|
20
20
|
##########################################################################################
|
|
21
21
|
|
|
22
|
-
require 'simplecov'
|
|
23
|
-
|
|
24
|
-
# require_relative 'env'
|
|
25
|
-
|
|
26
|
-
#=begin
|
|
27
|
-
SimpleCov.start do
|
|
28
|
-
@filters = []
|
|
29
|
-
add_group "MDArray", "mdarray-0.4.2-java/lib"
|
|
30
|
-
end
|
|
31
|
-
#=end
|
|
22
|
+
# require 'simplecov'
|
|
23
|
+
# require '../env.rb'
|
|
32
24
|
|
|
33
25
|
# MDArray main object is the homogeneous multidimensional array. It is a table
|
|
34
26
|
# of elements (usually numbers), all of the same type, indexed by a tuple of
|
|
@@ -68,8 +60,5 @@ require_relative 'test_counter'
|
|
|
68
60
|
require_relative 'test_trigonometry'
|
|
69
61
|
require_relative 'test_views'
|
|
70
62
|
require_relative 'test_printing'
|
|
71
|
-
require_relative '
|
|
63
|
+
#require_relative 'test_performance'
|
|
72
64
|
#=end
|
|
73
|
-
|
|
74
|
-
# require_relative 'test_speed'
|
|
75
|
-
|
|
File without changes
|
|
File without changes
|
|
@@ -40,11 +40,14 @@ class MDArrayTest < Test::Unit::TestCase
|
|
|
40
40
|
|
|
41
41
|
should "correct error!" do
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
arr = MDArray.double("VALE3_short.csv", true)
|
|
44
|
+
arr.print
|
|
45
|
+
|
|
46
|
+
arr = MDArray.float("VALE3_short.csv", true)
|
|
47
|
+
arr.print
|
|
48
|
+
|
|
49
|
+
arr = MDArray.int("VALE3_short.csv", true)
|
|
50
|
+
arr.print
|
|
48
51
|
|
|
49
52
|
end
|
|
50
53
|
|
|
@@ -76,6 +76,7 @@ class MDArrayTest < Test::Unit::TestCase
|
|
|
76
76
|
# c = [20 31 42 53]
|
|
77
77
|
# chage the way operators work by changing the binary_operator parameter.
|
|
78
78
|
# @a.binary_operator = BinaryOperator
|
|
79
|
+
|
|
79
80
|
c = @a + @b
|
|
80
81
|
assert_equal(20, c[0])
|
|
81
82
|
|
|
@@ -122,6 +123,7 @@ class MDArrayTest < Test::Unit::TestCase
|
|
|
122
123
|
|
|
123
124
|
end
|
|
124
125
|
|
|
126
|
+
#=begin
|
|
125
127
|
#-------------------------------------------------------------------------------------
|
|
126
128
|
# Array operations are done elementwise
|
|
127
129
|
#-------------------------------------------------------------------------------------
|
|
@@ -261,7 +263,6 @@ class MDArrayTest < Test::Unit::TestCase
|
|
|
261
263
|
#------------------------------------------------------------------------------------
|
|
262
264
|
|
|
263
265
|
should "allow users operator's creation" do
|
|
264
|
-
|
|
265
266
|
|
|
266
267
|
# creating a binary_op as it takes two MDArrays as arguments. The method "total_sum"
|
|
267
268
|
# will make a cumulative sum of all sums of array1[i] + array2[i]. To achieve this
|
|
@@ -345,6 +346,9 @@ class MDArrayTest < Test::Unit::TestCase
|
|
|
345
346
|
|
|
346
347
|
end
|
|
347
348
|
|
|
349
|
+
#=end
|
|
350
|
+
|
|
348
351
|
end
|
|
349
|
-
|
|
352
|
+
|
|
353
|
+
|
|
350
354
|
end
|
|
@@ -3,7 +3,6 @@ require "test/unit"
|
|
|
3
3
|
require 'shoulda'
|
|
4
4
|
require 'jruby/profiler'
|
|
5
5
|
|
|
6
|
-
require 'env'
|
|
7
6
|
require 'benchmark'
|
|
8
7
|
|
|
9
8
|
require 'mdarray'
|
|
@@ -15,52 +14,89 @@ class MDArrayTest < Test::Unit::TestCase
|
|
|
15
14
|
#=begin
|
|
16
15
|
setup do
|
|
17
16
|
|
|
18
|
-
p "starting
|
|
17
|
+
p "starting performance testing"
|
|
19
18
|
|
|
20
19
|
end
|
|
21
20
|
|
|
22
21
|
#-------------------------------------------------------------------------------------
|
|
23
22
|
#
|
|
24
23
|
#-------------------------------------------------------------------------------------
|
|
25
|
-
|
|
26
|
-
should "test
|
|
24
|
+
=begin
|
|
25
|
+
should "test basic operations" do
|
|
27
26
|
|
|
28
27
|
@a = MDArray.typed_arange("double", 10_000_000)
|
|
29
28
|
@b = MDArray.typed_arange("double", 10_000_000)
|
|
30
|
-
|
|
31
29
|
@c = MDArray.arange(10_000_000)
|
|
32
30
|
@d = MDArray.arange(10_000_000)
|
|
33
31
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
p @a[10]
|
|
37
|
-
}
|
|
32
|
+
binary_operators = [RubyBinaryOperator, FastBinaryOperator]
|
|
33
|
+
unary_operators = [RubyUnaryOperator, FastUnaryOperator]
|
|
38
34
|
|
|
39
|
-
puts
|
|
40
|
-
|
|
41
|
-
|
|
35
|
+
puts "FastBinaryOperator and FastUnaryOperator are the default operator for MDArray"
|
|
36
|
+
puts "and those are the expected execution times. "
|
|
37
|
+
puts "FastBinaryOperator sends loops to Java for performance improvement."
|
|
38
|
+
puts "RubyBinaryOperator and RubyUnaryOperator are left in the code for testing purposes"
|
|
39
|
+
puts "only and to compare how much improvement can be obtained."
|
|
40
|
+
puts "In the future, if Ruby becomes more efficient there might be no reason to"
|
|
41
|
+
puts "implement loops in Java."
|
|
42
|
+
puts
|
|
43
|
+
puts "Note that huge improvement (fast_add) can be obtained by implementing operator "
|
|
44
|
+
puts "methods completely in Java."
|
|
42
45
|
|
|
43
|
-
|
|
44
|
-
@a + @b
|
|
45
|
-
p @a[10]
|
|
46
|
-
}
|
|
46
|
+
binary_operators.each do |operator|
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
@a.plus(@b)
|
|
50
|
-
p @a[10]
|
|
51
|
-
}
|
|
48
|
+
MDArray.binary_operator = operator
|
|
52
49
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
50
|
+
puts "========================="
|
|
51
|
+
puts "Benchmarking: #{operator}"
|
|
56
52
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
53
|
+
puts "Benchmarking double operations"
|
|
54
|
+
puts "Benchmarking addition of two large arrays of size 10_000_000"
|
|
55
|
+
puts Benchmark.measure {
|
|
56
|
+
c = @a + @b
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
puts "Benchmarking subtraction of two large arrays of size 10_000_000"
|
|
60
|
+
puts Benchmark.measure {
|
|
61
|
+
c = @a - @b
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
puts "Benchmarking addition of two large arrays of size 10_000_000"
|
|
65
|
+
puts "Checking if compiler still does improvements after 20_000_000 operations"
|
|
66
|
+
puts Benchmark.measure {
|
|
67
|
+
c = @a + @b
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
puts "========================="
|
|
71
|
+
puts "Benchmarking fast_add. fast_add is a Java method to add the two double arrays."
|
|
72
|
+
puts "Notice that performance can be greatly improved by implementing methods in Java"
|
|
73
|
+
puts Benchmark.measure {
|
|
74
|
+
c = @a.fast_add(@b)
|
|
75
|
+
}
|
|
76
|
+
puts "========================="
|
|
77
|
+
|
|
78
|
+
puts "Benchmarking int operations"
|
|
79
|
+
puts "In my machine, there is very little performance difference between double and int"
|
|
80
|
+
puts "Benchmarking addition of two large arrays of size 10_000_000"
|
|
81
|
+
puts Benchmark.measure {
|
|
82
|
+
c = @c + @d
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
puts "Benchmarking subtraction of two large arrays of size 10_000_000"
|
|
86
|
+
puts Benchmark.measure {
|
|
87
|
+
c = @c - @d
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
puts "Benchmarking addition of two large arrays of size 10_000_000"
|
|
91
|
+
puts "Checking if compiler still does improvements after 20_000_000 operations"
|
|
92
|
+
puts Benchmark.measure {
|
|
93
|
+
c = @c + @d
|
|
94
|
+
}
|
|
61
95
|
|
|
62
|
-
|
|
96
|
+
end
|
|
63
97
|
|
|
98
|
+
end
|
|
99
|
+
=end
|
|
64
100
|
|
|
65
101
|
=begin
|
|
66
102
|
should "test inner product" do
|
|
@@ -68,17 +104,16 @@ class MDArrayTest < Test::Unit::TestCase
|
|
|
68
104
|
@a = MDArray.typed_arange("double", 10_000_000)
|
|
69
105
|
@b = MDArray.typed_arange("double", 10_000_000)
|
|
70
106
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
107
|
+
# define inner_product for the whole hierarchy as it defines it for double
|
|
108
|
+
UserFunction.binary_operator("inner_product", "reduce",
|
|
109
|
+
Proc.new { |sum, val1, val2| sum + (val1 * val2) },
|
|
110
|
+
"double", nil, Proc.new { 0 })
|
|
75
111
|
|
|
76
|
-
puts "
|
|
77
|
-
|
|
112
|
+
puts "Measuring inner_product of two arrays of size: 10.000.000 in seconds"
|
|
113
|
+
puts "Since inner product is more complex than a simple addition or subtraction there"
|
|
114
|
+
puts "should be a performance impact. However, this should not be too large"
|
|
78
115
|
puts Benchmark.measure {
|
|
79
|
-
|
|
80
|
-
# p (@a * @b).sum
|
|
81
|
-
|
|
116
|
+
@a.inner_product(@b)
|
|
82
117
|
}
|
|
83
118
|
|
|
84
119
|
end
|
|
@@ -88,7 +123,7 @@ class MDArrayTest < Test::Unit::TestCase
|
|
|
88
123
|
#
|
|
89
124
|
#-------------------------------------------------------------------------------------
|
|
90
125
|
|
|
91
|
-
|
|
126
|
+
#=begin
|
|
92
127
|
should "execute fromfunction" do
|
|
93
128
|
|
|
94
129
|
# creates an array from a function (actually a block). The name fromfunction
|
|
@@ -107,7 +142,7 @@ class MDArrayTest < Test::Unit::TestCase
|
|
|
107
142
|
}
|
|
108
143
|
|
|
109
144
|
end
|
|
110
|
-
|
|
145
|
+
#=end
|
|
111
146
|
|
|
112
147
|
=begin
|
|
113
148
|
@a = MDArray.double([7, 500, 20, 320])
|
|
File without changes
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
require 'rubygems'
|
|
2
|
+
require "test/unit"
|
|
3
|
+
require 'shoulda'
|
|
4
|
+
|
|
5
|
+
require 'mdarray'
|
|
6
|
+
|
|
7
|
+
class MDArrayTest < Test::Unit::TestCase
|
|
8
|
+
|
|
9
|
+
context "Statistics Tests" do
|
|
10
|
+
|
|
11
|
+
setup do
|
|
12
|
+
|
|
13
|
+
# create a byte array filled with 0's
|
|
14
|
+
@a = MDArray.typed_arange("double", 10_000)
|
|
15
|
+
@weight = MDArray.arange(10_000)
|
|
16
|
+
|
|
17
|
+
# create double array
|
|
18
|
+
@b = MDArray.double([2, 3, 4])
|
|
19
|
+
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
#-------------------------------------------------------------------------------------
|
|
23
|
+
#
|
|
24
|
+
#-------------------------------------------------------------------------------------
|
|
25
|
+
|
|
26
|
+
should "do stats operations" do
|
|
27
|
+
|
|
28
|
+
# read file VALE3. This file has a header that we need to discard. VALE3
|
|
29
|
+
# contains quote values from brazilian company VALE as obtained from Yahoo finance
|
|
30
|
+
# (quote vale3.SA)
|
|
31
|
+
vale3 = MDArray.double("VALE3_short.csv", true)
|
|
32
|
+
|
|
33
|
+
# in order to use statistics we need to reset_statistics on array vale3. This
|
|
34
|
+
# breaks version 0.4.3 statistics that did not require a call to reset_statistics.
|
|
35
|
+
vale3.reset_statistics
|
|
36
|
+
|
|
37
|
+
# sum all values of vale3. This does not make sense from a financial point of view.
|
|
38
|
+
# suming all values including dates... Not doing anything with the value, just
|
|
39
|
+
# checking that it works!
|
|
40
|
+
vale3.sum
|
|
41
|
+
|
|
42
|
+
# lets get only the open price for the whole period. We slice the vale3 on the
|
|
43
|
+
# second dimension and get the second column.
|
|
44
|
+
open = vale3.slice(1,1)
|
|
45
|
+
|
|
46
|
+
# getting descriptive statistics for the open value. open is a new MDArray, so
|
|
47
|
+
# we need to reset_statistics for open as well.
|
|
48
|
+
open.reset_statistics
|
|
49
|
+
|
|
50
|
+
p "Durbin Watson: #{open.durbin_watson}"
|
|
51
|
+
p "Geometric mean: #{open.geometric_mean}"
|
|
52
|
+
p "Kurtosis: #{open.kurtosis}"
|
|
53
|
+
p "Lag1: #{open.lag1}"
|
|
54
|
+
p "Max: #{open.max}"
|
|
55
|
+
p "Mean: #{open.mean}"
|
|
56
|
+
p "Mean deviation: #{open.mean_deviation}"
|
|
57
|
+
p "Median: #{open.median}"
|
|
58
|
+
p "Min: #{open.min}"
|
|
59
|
+
p "Moment3: #{open.moment3}"
|
|
60
|
+
p "Moment4: #{open.moment4}"
|
|
61
|
+
p "Product: #{open.product}"
|
|
62
|
+
p "Skew: #{open.skew}"
|
|
63
|
+
p "Standard deviation: #{open.standard_deviation}"
|
|
64
|
+
p "Standard error: #{open.standard_error}"
|
|
65
|
+
p "Variance: #{open.variance}"
|
|
66
|
+
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
=begin
|
|
74
|
+
assert_equal(49995000, @a.sum)
|
|
75
|
+
assert_equal(0, @a.min)
|
|
76
|
+
assert_equal(9999, @a.max)
|
|
77
|
+
assert_equal(4999.5, @a.mean)
|
|
78
|
+
assert_equal(6666.333333333333, @a.weighted_mean(@weight))
|
|
79
|
+
=end
|
|
80
|
+
|
|
File without changes
|
|
File without changes
|
|
Binary file
|
data/version.rb
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
$gem_name = "mdarray"
|
|
2
|
-
$version="0.
|
|
2
|
+
$version="0.5.0"
|
metadata
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mdarray
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
prerelease:
|
|
5
|
-
version: 0.
|
|
4
|
+
prerelease:
|
|
5
|
+
version: 0.5.0
|
|
6
6
|
platform: java
|
|
7
7
|
authors:
|
|
8
8
|
- Rodrigo Botafogo
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-
|
|
12
|
+
date: 2013-05-16 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: map
|
|
@@ -27,6 +27,24 @@ dependencies:
|
|
|
27
27
|
none: false
|
|
28
28
|
prerelease: false
|
|
29
29
|
type: :runtime
|
|
30
|
+
- !ruby/object:Gem::Dependency
|
|
31
|
+
name: shoulda
|
|
32
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
33
|
+
requirements:
|
|
34
|
+
- - ">="
|
|
35
|
+
- !ruby/object:Gem::Version
|
|
36
|
+
version: !binary |-
|
|
37
|
+
MA==
|
|
38
|
+
none: false
|
|
39
|
+
requirement: !ruby/object:Gem::Requirement
|
|
40
|
+
requirements:
|
|
41
|
+
- - ">="
|
|
42
|
+
- !ruby/object:Gem::Version
|
|
43
|
+
version: !binary |-
|
|
44
|
+
MA==
|
|
45
|
+
none: false
|
|
46
|
+
prerelease: false
|
|
47
|
+
type: :runtime
|
|
30
48
|
- !ruby/object:Gem::Dependency
|
|
31
49
|
name: simplecov
|
|
32
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -75,7 +93,7 @@ dependencies:
|
|
|
75
93
|
none: false
|
|
76
94
|
prerelease: false
|
|
77
95
|
type: :development
|
|
78
|
-
description: "\"Multi dimensional array similar to Masahiro Tanaka's
|
|
96
|
+
description: "\"Multi dimensional array similar to Masahiro Tanaka's Narray and NumPy.\
|
|
79
97
|
\ \nIt is specifically targeted to JRuby as it uses Java-NetCDF library as base\
|
|
80
98
|
\ Array.\"\n"
|
|
81
99
|
email: rodrigo.a.botafogo@gmail.com
|
|
@@ -87,9 +105,16 @@ files:
|
|
|
87
105
|
- version.rb
|
|
88
106
|
- lib/env.rb
|
|
89
107
|
- lib/mdarray.rb
|
|
108
|
+
- lib/colt/colt.rb
|
|
109
|
+
- lib/colt/colt_mdarray.rb
|
|
110
|
+
- lib/colt/double_descriptive.rb
|
|
111
|
+
- lib/colt/probability.rb
|
|
112
|
+
- lib/colt/stat_list.rb
|
|
90
113
|
- lib/mdarray/access.rb
|
|
91
114
|
- lib/mdarray/counter.rb
|
|
92
115
|
- lib/mdarray/creation.rb
|
|
116
|
+
- lib/mdarray/csv.rb
|
|
117
|
+
- lib/mdarray/fast_operators.rb
|
|
93
118
|
- lib/mdarray/function_creation.rb
|
|
94
119
|
- lib/mdarray/function_map.rb
|
|
95
120
|
- lib/mdarray/hierarchy.rb
|
|
@@ -104,24 +129,97 @@ files:
|
|
|
104
129
|
- lib/mdarray/ruby_operators.rb
|
|
105
130
|
- lib/mdarray/ruby_stats.rb
|
|
106
131
|
- lib/mdarray/views.rb
|
|
107
|
-
- test/
|
|
132
|
+
- test/complete.rb
|
|
108
133
|
- test/env.rb
|
|
109
|
-
- test/
|
|
110
|
-
- test/
|
|
111
|
-
- test/
|
|
112
|
-
- test/
|
|
113
|
-
- test/
|
|
114
|
-
- test/
|
|
115
|
-
- test/
|
|
116
|
-
- test/
|
|
117
|
-
- test/
|
|
118
|
-
- test/
|
|
119
|
-
- test/
|
|
120
|
-
- test/
|
|
121
|
-
- test/
|
|
122
|
-
- test/
|
|
123
|
-
- test/
|
|
134
|
+
- test/colt/test_complete.rb
|
|
135
|
+
- test/colt/test_statistics.rb
|
|
136
|
+
- test/colt/test_stat_list.rb
|
|
137
|
+
- test/mdarray/arithmetic_casting.rb
|
|
138
|
+
- test/mdarray/test_access.rb
|
|
139
|
+
- test/mdarray/test_boolean.rb
|
|
140
|
+
- test/mdarray/test_comparison.rb
|
|
141
|
+
- test/mdarray/test_complete.rb
|
|
142
|
+
- test/mdarray/test_counter.rb
|
|
143
|
+
- test/mdarray/test_creation.rb
|
|
144
|
+
- test/mdarray/test_error.rb
|
|
145
|
+
- test/mdarray/test_operator.rb
|
|
146
|
+
- test/mdarray/test_performance.rb
|
|
147
|
+
- test/mdarray/test_printing.rb
|
|
148
|
+
- test/mdarray/test_shape.rb
|
|
149
|
+
- test/mdarray/test_statistics.rb
|
|
150
|
+
- test/mdarray/test_trigonometry.rb
|
|
151
|
+
- test/mdarray/test_views.rb
|
|
152
|
+
- test/colt/VALE3.csv
|
|
153
|
+
- test/colt/VALE3_short-err.csv
|
|
154
|
+
- test/colt/VALE3_short.csv
|
|
155
|
+
- test/colt/VALE3.xlsx
|
|
156
|
+
- test/colt/VALE3_short.xlsx
|
|
157
|
+
- doc/BinaryOperator.html
|
|
158
|
+
- doc/BitwiseOperators.html
|
|
159
|
+
- doc/BooleanFunctions.html
|
|
160
|
+
- doc/BooleanMDArray.html
|
|
161
|
+
- doc/ByteMDArray.html
|
|
162
|
+
- doc/class_list.html
|
|
163
|
+
- doc/Colt.html
|
|
164
|
+
- doc/ComparisonOperators.html
|
|
165
|
+
- doc/Const.html
|
|
166
|
+
- doc/Csv.html
|
|
167
|
+
- doc/DDescriptive.html
|
|
168
|
+
- doc/DoubleMDArray.html
|
|
169
|
+
- doc/DoubleStatList.html
|
|
170
|
+
- doc/FastBinaryOperator.html
|
|
171
|
+
- doc/FastBoolean.html
|
|
172
|
+
- doc/FastUnaryOperator.html
|
|
173
|
+
- doc/file.README.html
|
|
174
|
+
- doc/file_list.html
|
|
175
|
+
- doc/FloatMDArray.html
|
|
176
|
+
- doc/frames.html
|
|
177
|
+
- doc/FunctionCreation.html
|
|
178
|
+
- doc/FunctionMap.html
|
|
179
|
+
- doc/GenericFunctions.html
|
|
180
|
+
- doc/index.html
|
|
181
|
+
- doc/IntMDArray.html
|
|
182
|
+
- doc/LongMDArray.html
|
|
183
|
+
- doc/MDArray.html
|
|
184
|
+
- doc/MDArrayTest.html
|
|
185
|
+
- doc/method_list.html
|
|
186
|
+
- doc/NonNumericalMDArray.html
|
|
187
|
+
- doc/NumericalMDArray.html
|
|
188
|
+
- doc/NumericFunctions.html
|
|
189
|
+
- doc/Operator.html
|
|
190
|
+
- doc/Proc.html
|
|
191
|
+
- doc/RubyBinaryOperator.html
|
|
192
|
+
- doc/RubyFunctions.html
|
|
193
|
+
- doc/RubyMath.html
|
|
194
|
+
- doc/RubyStats.html
|
|
195
|
+
- doc/RubyUnaryOperator.html
|
|
196
|
+
- doc/ShortMDArray.html
|
|
197
|
+
- doc/StatList.html
|
|
198
|
+
- doc/StringMDArray.html
|
|
199
|
+
- doc/StructureMDArray.html
|
|
200
|
+
- doc/top-level-namespace.html
|
|
201
|
+
- doc/UnaryOperator.html
|
|
202
|
+
- doc/UserFunction.html
|
|
203
|
+
- doc/_index.html
|
|
204
|
+
- doc/css/common.css
|
|
205
|
+
- doc/css/full_list.css
|
|
206
|
+
- doc/css/style.css
|
|
207
|
+
- doc/js/app.js
|
|
208
|
+
- doc/js/full_list.js
|
|
209
|
+
- doc/js/jquery.js
|
|
210
|
+
- doc/MDArray/Counter.html
|
|
211
|
+
- doc/MDArray/IteratorFast.html
|
|
212
|
+
- doc/MDArray/IteratorFastBoolean.html
|
|
213
|
+
- doc/MDArray/IteratorFastByte.html
|
|
214
|
+
- doc/MDArray/IteratorFastChar.html
|
|
215
|
+
- doc/MDArray/IteratorFastDouble.html
|
|
216
|
+
- doc/MDArray/IteratorFastFloat.html
|
|
217
|
+
- doc/MDArray/IteratorFastInt.html
|
|
218
|
+
- doc/MDArray/IteratorFastLong.html
|
|
219
|
+
- doc/MDArray/IteratorFastShort.html
|
|
124
220
|
- vendor/netcdfAll-4.3.16.jar
|
|
221
|
+
- vendor/parallelcolt-0.10.0.jar
|
|
222
|
+
- target/helper.jar
|
|
125
223
|
- README.md
|
|
126
224
|
- LICENSE.txt
|
|
127
225
|
- LICENSE.txt~
|
|
@@ -140,10 +238,10 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
140
238
|
none: false
|
|
141
239
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
142
240
|
requirements:
|
|
143
|
-
- -
|
|
144
|
-
Pg==
|
|
241
|
+
- - ">="
|
|
145
242
|
- !ruby/object:Gem::Version
|
|
146
|
-
version:
|
|
243
|
+
version: !binary |-
|
|
244
|
+
MA==
|
|
147
245
|
none: false
|
|
148
246
|
requirements: []
|
|
149
247
|
rubyforge_project:
|
|
@@ -152,21 +250,6 @@ signing_key:
|
|
|
152
250
|
specification_version: 3
|
|
153
251
|
summary: Multi dimensional array similar to narray and numpy.
|
|
154
252
|
test_files:
|
|
155
|
-
- test/
|
|
253
|
+
- test/complete.rb
|
|
156
254
|
- test/env.rb
|
|
157
|
-
- test/test_access.rb
|
|
158
|
-
- test/test_boolean.rb
|
|
159
|
-
- test/test_comparison.rb
|
|
160
|
-
- test/test_complete.rb
|
|
161
|
-
- test/test_counter.rb
|
|
162
|
-
- test/test_creation.rb
|
|
163
|
-
- test/test_error.rb
|
|
164
|
-
- test/test_lazy.rb
|
|
165
|
-
- test/test_operator.rb
|
|
166
|
-
- test/test_printing.rb
|
|
167
|
-
- test/test_shape.rb
|
|
168
|
-
- test/test_speed.rb
|
|
169
|
-
- test/test_statistics.rb
|
|
170
|
-
- test/test_trigonometry.rb
|
|
171
|
-
- test/test_views.rb
|
|
172
255
|
has_rdoc:
|