|
Darwin Neuroevolution Framework
|
A dynamically sized 2D matrix. More...
#include <matrix.h>
Public Member Functions | |
| Matrix ()=default | |
| Constructs an empty matrix (zero rows/columns) | |
| Matrix (size_t rows, size_t cols) | |
| Constructs a matrix with the specified number of rows and columns. | |
| ArrayView< T > | operator[] (size_t row) |
| Indexed access to a row in the matrix. | |
| ArrayView< const T > | operator[] (size_t row) const |
| Indexed access to a row in the matrix. | |
| bool | empty () const |
| Returns true if the matrix is empty. | |
Friends | |
| void | to_json (json &json_obj, const Matrix &m) |
| Conversion to json. | |
| void | from_json (const json &json_obj, Matrix &m) |
| Conversion from json. | |
A dynamically sized 2D matrix.
1.8.14