octave-ruby 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/README.txt +4 -4
- data/lib/octave/matrix.rb +6 -1
- data/octave-ruby.gemspec +2 -2
- metadata +3 -3
data/History.txt
CHANGED
data/README.txt
CHANGED
@@ -47,12 +47,12 @@ octave-ruby (you must have RubyGems and Octave installed, first):
|
|
47
47
|
|
48
48
|
If you have Octave installed in a non-standard location, you can specify the location of the include and lib files by doing:
|
49
49
|
|
50
|
-
* gem install octave-ruby -- --with-octave-include=/usr/local/include/octave-3.
|
51
|
-
--with-octave-lib=/usr/local/lib/octave-3.
|
52
|
-
--with-dep-include=/usr/local/include/octave-3.
|
50
|
+
* gem install octave-ruby -- --with-octave-include=/usr/local/include/octave-3.6.3/octave \
|
51
|
+
--with-octave-lib=/usr/local/lib/octave-3.6.3 \
|
52
|
+
--with-dep-include=/usr/local/include/octave-3.6.3
|
53
53
|
|
54
54
|
== LICENSE
|
55
55
|
|
56
56
|
octave-ruby is licensed under the GPL License.
|
57
57
|
|
58
|
-
Copyright (c) 2007-
|
58
|
+
Copyright (c) 2007-2013 Jonathan Younger <jonathan@daikini.com>
|
data/lib/octave/matrix.rb
CHANGED
@@ -36,6 +36,11 @@ module Octave
|
|
36
36
|
def ==(other)
|
37
37
|
@cells == other.cells
|
38
38
|
end
|
39
|
+
|
40
|
+
# Returns flattened cells
|
41
|
+
def to_a
|
42
|
+
@cells.flatten
|
43
|
+
end
|
39
44
|
end
|
40
45
|
|
41
46
|
# The CellMatrix class is used for storing values that are sent to
|
@@ -81,4 +86,4 @@ module Octave
|
|
81
86
|
end
|
82
87
|
end
|
83
88
|
end
|
84
|
-
end
|
89
|
+
end
|
data/octave-ruby.gemspec
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = %q{octave-ruby}
|
3
|
-
s.version = "2.0.
|
3
|
+
s.version = "2.0.2"
|
4
4
|
|
5
5
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
6
6
|
s.authors = ["Jonathan Younger"]
|
7
|
-
s.date = %q{
|
7
|
+
s.date = %q{2013-01-21}
|
8
8
|
s.description = %q{== USAGE: require 'octave' engine = Octave::Engine.new engine.eval "123.456 * 789.101112" engine.rand(10) matrix = Octave::Matrix.new(20, 400) 20.times { |m| 400.times { |n| matrix[m, n] = rand } } engine.put_variable("m", matrix) engine.save "/tmp/20_x_400_matrix" == REQUIREMENTS: * Octave * GCC or some other compiler to build the included extension * Mocha (For testing only)}
|
9
9
|
s.email = ["jonathan@daikini.com"]
|
10
10
|
s.extensions = ["ext/octave_api/extconf.rb"]
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 2
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 2.0.
|
8
|
+
- 2
|
9
|
+
version: 2.0.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Jonathan Younger
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date:
|
17
|
+
date: 2013-01-21 00:00:00 -07:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|