Android examples for java.lang:Math Vector
Pretty print a vector
//package com.java2s; import android.util.Log; public class Main { static final String TAG = "MathUtils"; /**//from w w w . j av a 2 s .c o m * Pretty print a vector * @param vec The vector to print **/ public static void printVector(int size, float[] vec, int offset) { for (int i = offset; i < size + offset; i++) { Log.e(TAG, "" + vec[i]); } } }