Here you can find the source of ArrayAdd(float[] a, int[] b)
public static void ArrayAdd(float[] a, int[] b)
//package com.java2s; //License from project: Open Source License public class Main { public static void ArrayAdd(float[] a, int[] b) { for (int i = 0; i < a.length; i++) { a[i] += b[i];/*from w w w . j a v a 2s . c o m*/ } } public static void ArrayAdd(int[] a, int[] b) { for (int i = 0; i < a.length; i++) { a[i] += b[i]; } } public static void ArrayAdd(float[] a, float[] b) { for (int i = 0; i < a.length; i++) { a[i] += b[i]; } } public static void ArrayAdd(float[] a, float[] b, float scale) { for (int i = 0; i < a.length; i++) { a[i] += b[i] * scale; } } public static void ArrayAdd(float[] a, int[] b, float scale) { for (int i = 0; i < a.length; i++) { a[i] += Math.floor(b[i] * scale); } } }