Add matrix logging.

Change-Id: I42fb61747cf1ddf9b367faf6ce9109429d34e9cf
diff --git a/rsMatrix4x4.cpp b/rsMatrix4x4.cpp
index 2d90a98..f34af47 100644
--- a/rsMatrix4x4.cpp
+++ b/rsMatrix4x4.cpp
@@ -305,3 +305,10 @@
     out[2] = (m[2] * in[0]) + (m[6] * in[1]) + (m[10] * in[2]) + m[14];
     out[3] = (m[3] * in[0]) + (m[7] * in[1]) + (m[11] * in[2]) + m[15];
 }
+
+void Matrix4x4::logv(const char *s) const {
+    LOGV("%s {%f, %f, %f, %f",  s, m[0], m[4], m[8], m[12]);
+    LOGV("%s  %f, %f, %f, %f",  s, m[1], m[5], m[9], m[13]);
+    LOGV("%s  %f, %f, %f, %f",  s, m[2], m[6], m[10], m[14]);
+    LOGV("%s  %f, %f, %f, %f}", s, m[3], m[7], m[11], m[15]);
+}
diff --git a/rsMatrix4x4.h b/rsMatrix4x4.h
index abf34a3..d30184f 100644
--- a/rsMatrix4x4.h
+++ b/rsMatrix4x4.h
@@ -54,6 +54,7 @@
     bool inverseTranspose();
     void transpose();
 
+    void logv(const char *s) const;
 
 
     void multiply(const rs_matrix4x4 *rhs) {