Is my 4x4 matrix multiplication on a 1D float array correct?
My final code is:

public float[] multiplicate(float[] factor){
    int a = 0;
    int b = 0;
    float[] result = new float[factor.length];
    for (int i = 0; i &lt; factor.length; i++){
        a = (i/4)*4;
        b = (i%4);
        result[i] = (mat4f[a] * factor[b]) + (mat4f[a+1] * factor[b+4]) + (mat4f[a+2] * factor[b+8]) + (mat4f[a+3] * factor[b+12]);
    }
    return result;
}


I'll keeping using 1D float array because I'll need to use a FloatBuffer to send it to OpenGL (using LWJGL). So i'll get less overhead by calling one FloatBuffer.put(myArrFloatVar) then FloatBuffer.put(new float[]{r00, r01...r33} or event calling FloatBuffer.put(r00) 16 times.