Java tutorial
//package com.java2s; public class Main { private static float[] copyMatrix(float[] matrix) { float[] copyM = new float[matrix.length]; System.arraycopy(matrix, 0, copyM, 0, matrix.length); return copyM; } }