Android examples for java.lang:Math Matrix
print Matrix
//package com.java2s; import android.util.Log; public class Main { public static void printMatrix(float[] matrix, String tag) { Log.e("Error", new StringBuilder().append(tag).toString()); Log.e("Error", new StringBuilder().append(matrix[0]).append(" ") .append(matrix[1]).append(" ").append(matrix[2]) .append(" ").append(matrix[3]).toString()); Log.e("Error", new StringBuilder().append(matrix[4]).append(" ") .append(matrix[5]).append(" ").append(matrix[6]) .append(" ").append(matrix[7]).toString()); Log.e("Error", new StringBuilder().append(matrix[8]).append(" ") .append(matrix[9]).append(" ").append(matrix[10]) .append(" ").append(matrix[11]).toString()); Log.e("Error", new StringBuilder().append(matrix[12]).append(" ") .append(matrix[13]).append(" ").append(matrix[14]) .append(" ").append(matrix[15]).toString()); }/* w w w . j a v a 2 s .c o m*/ }