You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Adds missing .gitmodules file
As discussed in #69, the benchmark and googletest libs were missing
corresponding .gitmodules file.
* Adds missing .gitmodules file
As discussed in #69, the benchmark and googletest libs were missing
corresponding .gitmodules file.
* Updates README.md
|`matrix.init()`| <p>_1 Parameter:_<br>Type: `std::vector<std::vector<double>>`<br>Job: vector of vector of type string/double</p> |`Matrix` object | Creates a `Matrix` object of same dimensions and values as the 2D vector provided. |
155
-
|`matrix.eye()`| <p>_1 Parameter:_<br>Type: `int`<br>Job: Size of the identity matrix</p> |`Matrix` object | Creates an identity `Matrix` object of the size given as parameters. |
156
-
|`matrix.zeros()`| <p>_2 Parameters:_<br>Type: `int`; `int`<br>Job: Number of rows; Number of columns</p> |`Matrix` object | Creates a `Matrix` object of all elements `0` of the size given as parameters. |
157
-
|`matrix.ones()`| <p>_2 Parameters:_<br>Type: `int`; `int`<br>Job: Number of rows; Number of columns</p> |`Matrix` object | Creates a `Matrix` object of all elements `1` of the size given as parameters. |
158
-
|`matrix.genfromtxt()`|<p>_2 Parameters:_<br>Type: `std::string`;`char`<br>Job: Path of the `.csv` file</p>|`Matrix` object | Creates a `Matrix` object with data elements of type `std::string`. |
|`matrix.init()`| <p>_1 Parameter:_<br>Type: `std::vector<std::vector<double>>`<br>Job: vector of vector of type string/double</p> |`Matrix` object | Creates a `Matrix` object of same dimensions and values as the 2D vector provided. |
164
+
|`matrix.eye()`| <p>_1 Parameter:_<br>Type: `int`<br>Job: Size of the identity matrix</p> |`Matrix` object | Creates an identity `Matrix` object of the size given as parameters. |
165
+
|`matrix.zeros()`| <p>_2 Parameters:_<br>Type: `int`; `int`<br>Job: Number of rows; Number of columns</p> |`Matrix` object | Creates a `Matrix` object of all elements `0` of the size given as parameters. |
166
+
|`matrix.ones()`| <p>_2 Parameters:_<br>Type: `int`; `int`<br>Job: Number of rows; Number of columns</p> |`Matrix` object | Creates a `Matrix` object of all elements `1` of the size given as parameters. |
167
+
|`matrix.genfromtxt()`| <p>_2 Parameters:_<br>Type: `std::string`;`char`<br>Job: Path of the `.csv` file</p> |`Matrix` object | Creates a `Matrix` object with data elements of type `std::string`. |
159
168
160
169
### Slicing
161
170
@@ -257,21 +266,15 @@ Similarly, if we want to assign the value to index (5,3) we can do this by:
|`matrix.concatenate()`| <p>_3 Parameters:_<br>Type: `Matrix`; `Matrix`; `std::string`<br>Job: `Matrix` to concatenate on; `Matrix` which is to be concatenated; Dimension on which to concatenate</p> |`Matrix` object | Method to concatenate/join two `Matrix` objects |
263
-
|`Matrix.get()`| <p>_0 Parameters_|`std::vector<std::vector<double>>`| Method to get the `Matrix` object as a 2D vector |
264
-
|`Matrix.get_row()`| <p>_1 Parameter:_<br>Type: `int`<br>Job: row index</p> |`std::vector<double>`| Method to get a row of a `Matrix` object in the form of a vector |
265
-
|`Matrix.get_col()`| <p>_1 Parameter:_<br>Type: `int`<br>Job: column index</p> |`std::vector<double>`| Method to get a column of a `Matrix` object in the form of a vector |
266
-
|`matrix.delete_()`| <p>_3 Parameters:_<br>Type: `Matrix`; `int`; `std::string`<br>Job: `Matrix` to delete row/column of; index to be deleted; Dimension on which to delete</p> |`Matrix` object | Method to delete a row or column of a `Matrix` object |
267
-
|`matrix.reciprocal()`| <p>_1 Parameter:_<br>Type: `Matrix`<br>Job: `Matrix` object to apply method on</p> |`Matrix` object | Method to calculate reciprocal of all elements in the `Matrix` object |
268
-
|`Matrix.row_length()`| <p>_0 Parameters_|`int`| Method to get the number of rows in a `Matrix` object |
269
-
|`Matrix.col_length()`| <p>_0 Parameters_|`int`| Method to get the number of columns in a `Matrix` object |
270
-
|`Matrix.to_double()`| <p>_0 Parameters_|`void`| Method convert the elements of a `Matrix` object from std::string to double |
271
-
|`Matrix.to_string()`| <p>_0 Parameters_|`void`| Method convert the elements of a `Matrix` object from double to std::string |
|`matrix.concatenate()`| <p>_3 Parameters:_<br>Type: `Matrix`; `Matrix`; `std::string`<br>Job: `Matrix` to concatenate on; `Matrix` which is to be concatenated; Dimension on which to concatenate</p> |`Matrix` object | Method to concatenate/join two `Matrix` objects |
272
+
|`Matrix.get()`| <p>_0 Parameters_|`std::vector<std::vector<double>>`| Method to get the `Matrix` object as a 2D vector |
273
+
|`Matrix.get_row()`| <p>_1 Parameter:_<br>Type: `int`<br>Job: row index</p> |`std::vector<double>`| Method to get a row of a `Matrix` object in the form of a vector |
274
+
|`Matrix.get_col()`| <p>_1 Parameter:_<br>Type: `int`<br>Job: column index</p> |`std::vector<double>`| Method to get a column of a `Matrix` object in the form of a vector |
275
+
|`matrix.delete_()`| <p>_3 Parameters:_<br>Type: `Matrix`; `int`; `std::string`<br>Job: `Matrix` to delete row/column of; index to be deleted; Dimension on which to delete</p> |`Matrix` object | Method to delete a row or column of a `Matrix` object |
276
+
|`matrix.reciprocal()`| <p>_1 Parameter:_<br>Type: `Matrix`<br>Job: `Matrix` object to apply method on</p> |`Matrix` object | Method to calculate reciprocal of all elements in the `Matrix` object |
277
+
|`Matrix.row_length()`| <p>_0 Parameters_|`int`| Method to get the number of rows in a `Matrix` object |
278
+
|`Matrix.col_length()`| <p>_0 Parameters_|`int`| Method to get the number of columns in a `Matrix` object |
279
+
|`Matrix.to_double()`| <p>_0 Parameters_|`void`| Method convert the elements of a `Matrix` object from std::string to double |
280
+
|`Matrix.to_string()`| <p>_0 Parameters_|`void`| Method convert the elements of a `Matrix` object from double to std::string |
0 commit comments