Pretty print a vector - Android java.lang

Android examples for java.lang:Math Vector

Description

Pretty print a vector

Demo Code


//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]);
        }
    }
}

Related Tutorials