How to multiply two matrices using Renderscript in Android?
<p>I need to multiply a 64x64 and a 64x1 matrix on an Android app. Using the NDK is a first choice for the computation, but I've been trying to use Renderscript for that purpose. </p>

<p>From the <a href="http://developer.android.com/guide/topics/renderscript/compute.html" rel="nofollow">developer site</a> the .rs file would look something like this: </p>

<pre><code>#pragma version(1)
#pragma rs java_package_name(com.example.android.rs.hellocompute)

void root(const uchar4 *v_in, uchar4 *v_out) {
  //C code to multiply two matrices
}
</code></pre>

<p>Where I am stuck is how to pass two 2D Java arrays to this function. The documentation example passes a single Bitmap, not 2 arrays.</p>
