public Matrix[] Compute(Matrix[] input) { var outputs = Neurons.AsParallel().Select(n => n.Compute(input)).ToArray(); Outputs = outputs; return(outputs); }
public double[] Compute(double[] inputs) { var outputs = Neurons.AsParallel().Select(n => n.Compute(inputs)).ToArray(); Outputs = outputs; return(outputs); }
public double[][,] Compute(double[][,] input) { var outputs = Neurons.AsParallel().Select((n, i) => n.Compute(input[i])).ToArray(); Outputs = outputs; return(Outputs); }
public void Calculate(Layer prevLayer) { Neurons.AsParallel() .ForAll(n => n.Calculate(prevLayer)); }