README.md in matrix_extensions-0.0.1 vs README.md in matrix_extensions-0.0.2
- old
+ new
@@ -23,42 +23,42 @@
Element-wise multiplication:
```ruby
require 'matrix_extensions' # if not loaded automatically
-MatrixExtended[ [1,2,3], [4,5,6] ].element_multiplication MatrixExtended[ [2,3,4], [5,6,7] ]
-=> MatrixExtended[[2, 6, 12], [20, 30, 42]]
+Matrix[ [1,2,3], [4,5,6] ].element_multiplication Matrix[ [2,3,4], [5,6,7] ]
+=> Matrix[[2, 6, 12], [20, 30, 42]]
```
Element-wise division:
```ruby
require 'matrix_extensions' # if not loaded automatically
-MatrixExtended[ [2,4,6], [2.0,10,20] ].element_division MatrixExtended[ [2,2,6], [4,5,10] ]
-=> MatrixExtended[[1, 2, 1], [0.5, 2, 2]]
+Matrix[ [2,4,6], [2.0,10,20] ].element_division Matrix[ [2,2,6], [4,5,10] ]
+=> Matrix[[1, 2, 1], [0.5, 2, 2]]
```
Element-wise exponentiation:
```ruby
require 'matrix_extensions' # if not loaded automatically
-MatrixExtended[ [2,4], [1,4] ].element_exponentiation MatrixExtended[ [2,4], [1,4]] ]
-=> MatrixExtended[[4, 256], [1, 256]]
+Matrix[ [2,4], [1,4] ].element_exponentiation Matrix[ [2,4], [1,4]] ]
+=> Matrix[[4, 256], [1, 256]]
```
Prefilled matrix with zeros or ones:
```ruby
require 'matrix_extensions' # if not loaded automatically
-MatrixExtended.zeros(2,4)
-=> MatrixExtended[[0, 0, 0, 0], [0, 0, 0, 0]]
+Matrix.zeros(2,4)
+=> Matrix[[0, 0, 0, 0], [0, 0, 0, 0]]
-MatrixExtended.ones(2,2)
-=> MatrixExtended[[1, 1], [1, 1]]
+Matrix.ones(2,2)
+=> Matrix[[1, 1], [1, 1]]
```
Concatenating matrices and vectors horizontally:
This iterates through a list of matrices and vectors and appends columns of each list one after another. The row number of all matrices and vectors must be equal. The number of arguments passed in can be freely chosen.
@@ -68,12 +68,12 @@
m1 = Matrix[ [1,2,3], [4,5,6] ]
m2 = Matrix[ [2,3,4], [5,6,7] ]
v = Vector[ 3,4 ]
-MatrixExtended.hconcat(m1, m2, v)
-=> MatrixExtended[[1, 2, 3, 2, 3, 4, 3], [4, 5, 6, 5, 6, 7, 4]]
+Matrix.hconcat(m1, m2, v)
+=> Matrix[[1, 2, 3, 2, 3, 4, 3], [4, 5, 6, 5, 6, 7, 4]]
```
Concatenating matrices and vectors vertically:
This iterates through a list of matrices and vectors and appends rows of each list one after another. The column number of all matrices and vectors must be equal. The number of arguments passed in can be freely chosen.
@@ -83,11 +83,11 @@
m1 = Matrix[ [1,2,3], [4,5,6] ]
m2 = Matrix[ [2,3,4], [5,6,7] ]
v = Vector[ 3,4,5 ]
-MatrixExtended.vconcat(m1, m2, v)
-=> MatrixExtended[[1, 2, 3], [4, 5, 6], [2, 3, 4], [5, 6, 7], [3, 4, 5]]
+Matrix.vconcat(m1, m2, v)
+=> Matrix[[1, 2, 3], [4, 5, 6], [2, 3, 4], [5, 6, 7], [3, 4, 5]]
```
## Contributing
1. Fork it ( https://github.com/[my-github-username]/matrix_extensions/fork )