Matrix.filled constructor

Matrix.filled(
  1. int m,
  2. int n,
  3. List<List<Complex>> entries
)

Implementation

Matrix.filled(this.m, this.n, this.entries) {
  if (entries.length != m) {
    //todo: implement error handling
  }
  for (int i = 0; i < m; i++) {
    if (entries[i].length != n) {
      //todo: implement error handling
    }
  }
}