RealMatrix.fromFlattenedData constructor

RealMatrix.fromFlattenedData({
  1. required int rows,
  2. required int columns,
  3. required List<double> data,
})

Creates a new N x M matrix where rows is N and columns is M. The matrix is filled with values from data.

The source matrix is expressed as an array whose size must exactly be N * M, otherwise a MatrixException object is thrown.

Implementation

RealMatrix.fromFlattenedData({
  required super.rows,
  required super.columns,
  required super.data,
}) : super.fromFlattenedData();