Matrix.filledByReals constructor

Matrix.filledByReals(
  1. int m,
  2. int n,
  3. List<List<double>> entriesReal
)

Implementation

Matrix.filledByReals(this.m, this.n, List<List<double>> entriesReal) {
  for (int i = 0; i < m; i++) {
    entries.add([]);
    for (int j = 0; j < n; j++) {
      entries[i].add(Complex(entriesReal[i][j], 0));
    }
  }
}