Add a DoubleArray example.

This commit is contained in:
Peter Lawrey
2015-04-23 17:47:29 +01:00
parent 952eab1259
commit 4d27ed24b3
@@ -92,6 +92,7 @@ public class DoubleArray implements Byteable, Copyable<DoubleArray> {
@Override
public void copyFrom(DoubleArray doubleArray) {
int length = length();
// set first so we check the length will fit.
doubleArray.setLength(length);
for (int i = 0; i < length; i++)
doubleArray.setDataAt(i, getDataAt(i));