Start working on dumping the world (to a JSON file) for debug purposes.

This commit is contained in:
Godzil
2020-02-27 18:03:08 +00:00
parent 2926166ce6
commit c369d2fe2d
15 changed files with 116 additions and 0 deletions

View File

@@ -124,6 +124,8 @@ Matrix Matrix::transpose()
{
int x, y;
Matrix ret = Matrix(this->size);
#pragma omp parallel for simd private(y, x)
for (y = 0 ; y < this->size ; y++)
{
for (x = 0 ; x < this->size ; x++)
@@ -139,6 +141,7 @@ Matrix Matrix::submatrix(int row, int column)
int i, j;
int x = 0, y = 0;
Matrix ret = Matrix(this->size - 1);
for (i = 0 ; i < this->size ; i++)
{
if (i == row)