/// <param name="matrix">the matrix to initialize</param>
/// <param name="mean">the mean of the normal distribution drawn from</param>
/// <param name="stdev">the standard deviation of the normal distribution</param>
static public void RowInitNormal(Matrix matrix, double mean, double stdev)
{
Random rnd = Random.GetInstance();
for (int i = 0; i < matrix.dim1; i++)
for (int j = 0; j < matrix.dim2; j++)
matrix.setLocation(i, j, rnd.NextNormal(mean, stdev));
}