LinearAlgebra.DenseMatrix.FillRandomValues C# (CSharp) Method

FillRandomValues() public method

public FillRandomValues ( ) : void
return void
		public void FillRandomValues()
		{
			Random random = new Random();
			for (int IdxCol = 0; IdxCol < nCols; ++IdxCol) 
			{
				var ColVal = DenseMatrixValue[IdxCol].VectorValue;
				for (int IdxRow = 0; IdxRow < nRows; ++IdxRow)
				{
					ColVal[IdxRow] = (float)random.NextDouble();
				}
			}
		}

Same methods

DenseMatrix::FillRandomValues ( int RandomSeed ) : void