matrix_dsl 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -27,7 +27,6 @@ Features:
27
27
  ---------
28
28
 
29
29
  * No control structures. This would be a minimal DSL than a turing-complete language.
30
-
31
30
  * Variables, Expressions and Arithmetic evaluation.
32
31
  * Row/Column Matrix transformations
33
32
  * Matrix functions - inverse, determinant, rank and transpose.
@@ -36,17 +35,23 @@ Features:
36
35
  Usage
37
36
  ==========
38
37
 
39
- gem install matrix_dsl
40
- matrix_dsl_run < curl http://github.com/jasim/matrix_transformations/blob/master/examples/simple_example.matrix_dsl
38
+ git clone git@github.com:jasim/matrix_transformations.git
39
+
40
+ # run a simple script
41
+ ruby matrix_transformations/matrix_dsl_run.rb < matrix_transformations/examples/simple_example.matrix_dsl
41
42
 
42
43
  To integrate Matrix DSL scripts into your code, please have a look at http://github.com/jasim/matrix_transformations/blob/master/tests/basic_test.rb
43
44
 
45
+ Most of the functionality of MatrixDSL is specced in basic_test.rb.
46
+
44
47
  Questions/Feedback
45
48
  ------------------
46
49
  I'd appreciate any! Feel free to reach me at jasim.ab@gmail.com.
47
50
 
48
51
 
49
- Todo
52
+ Todo
50
53
  -----
54
+ This was a learning experiment. I don't see myself working on this project anymore (unless someone finds it useful). But if I do, here is my current Todo list:
55
+
51
56
  * Allow comments in script
52
- * Enable fractions in place of floats.
57
+ * Enable fractions in place of floats.
@@ -9,9 +9,12 @@ Transform A:
9
9
  R2 -> R2 - 3R1
10
10
  R3 -> R3 - 4R1
11
11
  R4 -> R4 - 9R1
12
-
13
12
  R3 -> R3 - R2
14
13
  R4 -> R4 - 2R2
15
-
16
14
  R3 -> R3 - R4
17
15
 
16
+ determinant_of_A = det A
17
+
18
+
19
+ B = [[1 2 3][4 1 9][42 10 22]]
20
+ some_stupid_expression = (log 232 * det B) + det 2*B
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{matrix_dsl}
8
- s.version = "1.1.0"
8
+ s.version = "1.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jasim A Basheer"]
@@ -30,7 +30,7 @@ Gem::Specification.new do |s|
30
30
  "matrix_dsl_run.rb",
31
31
  "tests/basic_test.rb"
32
32
  ]
33
- s.homepage = %q{http://github.com/jasim/matrix_dsl}
33
+ s.homepage = %q{http://github.com/jasim/matrix_transformations}
34
34
  s.rdoc_options = ["--charset=UTF-8"]
35
35
  s.require_paths = ["lib"]
36
36
  s.rubygems_version = %q{1.3.7}
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: matrix_dsl
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
5
- prerelease: false
6
- segments:
7
- - 1
8
- - 1
9
- - 0
10
- version: 1.1.0
4
+ prerelease:
5
+ version: 1.1.1
11
6
  platform: ruby
12
7
  authors:
13
8
  - Jasim A Basheer
@@ -26,9 +21,6 @@ dependencies:
26
21
  requirements:
27
22
  - - ">="
28
23
  - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
24
  version: "0"
33
25
  type: :runtime
34
26
  version_requirements: *id001
@@ -40,9 +32,6 @@ dependencies:
40
32
  requirements:
41
33
  - - ">="
42
34
  - !ruby/object:Gem::Version
43
- hash: 3
44
- segments:
45
- - 0
46
35
  version: "0"
47
36
  type: :runtime
48
37
  version_requirements: *id002
@@ -69,7 +58,7 @@ files:
69
58
  - matrix_dsl_run.rb
70
59
  - tests/basic_test.rb
71
60
  has_rdoc: true
72
- homepage: http://github.com/jasim/matrix_dsl
61
+ homepage: http://github.com/jasim/matrix_transformations
73
62
  licenses: []
74
63
 
75
64
  post_install_message:
@@ -82,23 +71,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
82
71
  requirements:
83
72
  - - ">="
84
73
  - !ruby/object:Gem::Version
85
- hash: 3
86
- segments:
87
- - 0
88
74
  version: "0"
89
75
  required_rubygems_version: !ruby/object:Gem::Requirement
90
76
  none: false
91
77
  requirements:
92
78
  - - ">="
93
79
  - !ruby/object:Gem::Version
94
- hash: 3
95
- segments:
96
- - 0
97
80
  version: "0"
98
81
  requirements: []
99
82
 
100
83
  rubyforge_project:
101
- rubygems_version: 1.3.7
84
+ rubygems_version: 1.5.0
102
85
  signing_key:
103
86
  specification_version: 3
104
87
  summary: A simple DSL for expressing and evaluating basic Matrix transformations and arithmetic operations