RealMatrix.fromData constructor

RealMatrix.fromData({
  1. required int rows,
  2. required int columns,
  3. required List<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.

A MatrixException object is thrown if rows*columns is not equal to data length.

Implementation

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