zeroMatrix function

List<List<double>> zeroMatrix(
  1. int rows,
  2. int cols
)

Implementation

List<List<double>> zeroMatrix(int rows, int cols) {
  return new List.generate(rows, (_) => new List<double>.filled(cols, 0.0));
}