Matrix2d constructor
Matrix2d(
- int _rows,
- int _cols, [
- 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)));
}