YAMP.RandFunction.Function C# (CSharp) Method

Function() private method

private Function ( ScalarValue dim ) : MatrixValue
dim ScalarValue
return MatrixValue
        public MatrixValue Function(ScalarValue dim)
        {
            var k = dim.GetIntegerOrThrowException("dim", Name);

            if (k < 1)
            {
                k = 1;
            }

            var m = new MatrixValue(k, k);

            for (var i = 1; i <= k; i++)
            {
                for (var j = 1; j <= k; j++)
                {
                    m[j, i] = new ScalarValue(Distribution.NextDouble());
                }
            }

            return m;
        }

Same methods

RandFunction::Function ( ScalarValue rows, ScalarValue cols ) : MatrixValue
RandFunction::Function ( ) : ScalarValue
RandFunction