Matrix.fromBoolMatrix constructor
Creates a Matrix from an existing 2D boolean list.
input
A 2D list of boolean values.
Implementation
factory Matrix.fromBoolMatrix(final List<List<bool>> input) {
final Matrix matrix = Matrix();
matrix.setGrid(input);
return matrix;
}