public double[][] getAgentResponses(double[] reading) { double[][] responses = new double[_world.Agents.Count()][]; for (int i = 0; i < _world.Agents.Count(); i++) { responses[i] = new double[2]; } for (int i = 0; i < _world.Agents.Count(); i++) { NeuralAgent currentAgent = (NeuralAgent)_world.Agents.ElementAt(i); var results = currentAgent.activateNetwork(reading); results.CopyTo(responses[i], 0); } return(responses); }