title: Android NDK pass 3D float array to C code
body: <p>I want to pass a 3d float array(float[][][]) from java to c edit it and return the array back to java<br>
  Curretly i can do this only with 1D arrays with this </p>
  
  <pre><code>jfloat* valuesjf = NULL;
  float* valuesf = NULL;
  void Java_Grids_Grid5_Update( JNIEnv* env,jobject thiz,jfloatArray values )
  {
      valuesjf = (*env)-&gt;GetFloatArrayElements(env,values,NULL);
      valuesf = valuesjf;
  
      valuesf[0]=121+valuesf[0];//do some calculations
  
      (*env)-&gt;ReleaseFloatArrayElements(env, values, valuesjf, JNI_ABORT);
  }
  </code></pre>
  
  <p>How do i do it with 3D array?</p>