randn function

Matrix randn(
  1. int row,
  2. int col, {
  3. double start = -1,
  4. double end = 1,
  5. int? seed,
})

Create a matrix with random values

  • row The number of rows in the matrix
  • col The number of columns in the matrix
  • seed The optional seed
  • Returns The matrix

Implementation

Matrix randn(int row, int col, {double start = -1, double end = 1, int? seed}) {
  Matrix matrix = Matrix(row, col);
  matrix.generateDouble(start, end, seed: seed);
  return matrix;
}