Matrix.fromBoolMatrix constructor

Matrix.fromBoolMatrix(
  1. List<List<bool>> input
)

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;
}