setAt method
Set the value of a matrix at a specific index
rowThe row indexcolThe column indexvalueThe value to set- Example
Matrix matrix = Matrix(2, 2);
matrix.setAt(0, 0, value: 1);
Implementation
void setAt(int row, int col, {required double value}) {
_matrix[row][col] = value;
}