jeffheaton / encog-java-core

http://www.heatonresearch.com/encog
Other
742 stars 268 forks source link

Fix issue 105 (partial) #109

Closed leanto closed 12 years ago

leanto commented 12 years ago

This replaces some manual array copies with System.arraycopy(), EnginArray.arrayCopy() or Arrays.copyOf(). At the same time it also replaces some occurrences of manual array filling with Arrays.fill().

Because I am new to Encog, I'm not really sure whether it is preferred to use EnginArray.arrayCopy() or System.arraycopy(). Any guidance would be appreciated.

jeffheaton commented 12 years ago

The EngineArray.arrayCopy was an early attempt to mask differences between Java and C#, it is not necessary to use. Feel free to use the System. and Arrays. classes.

Thanks for the code changes! Very much appreciated.