Matrix2d constructor

Matrix2d(
  1. int _rows,
  2. int _cols, [
  3. ValueVector? data
])

Implementation

Matrix2d(this._rows, this._cols, [this.data]) {
  data ??
      (data = ValueVector(List<Value>.generate(
          _cols * _rows, (int index) => Value(math.Random().nextDouble()),
          growable: false)));
}