protected override void DoInference() { var matrix = Param; var numeric = new Numeric.Numeric() as INumeric <T>; if (numeric == null) { throw new ArgumentNullException(nameof(numeric)); } var vectorCount = matrix.VectorCount; for (var i = 0; i < vectorCount; i++) { matrix.Vectors[i] = numeric.Random(Min, Max); } Output = matrix; }
protected override void DoInference() { var matrix = Param; var i = 0; INumeric <T> numeric = new Numeric.Numeric() as INumeric <T>; if (numeric == null) { throw new InvalidOperationException(); } while (i < matrix.VectorCount) { matrix.Vectors[i] = Start; Start = numeric.Add(Start, numeric.One); i += 1; } Output = matrix; }