jeffheaton / encog-java-core

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

BasicMLComplexData invalid arraycopy() call #104

Closed PetrToman closed 12 years ago

PetrToman commented 12 years ago

BasicMLComplexData() constructor doesn't work:

    public BasicMLComplexData(final double[] d) {
        this(d.length);
        System.arraycopy(d, 0, this.data, 0, d.length);   // d is double[], but this.data is ComplexNumber[]
    }
jeffheaton commented 12 years ago

Corrected this issue.