Java Array Subtract subtractArray(float[] arr1, float[] arr2)

Here you can find the source of subtractArray(float[] arr1, float[] arr2)

Description

subtract Array

License

Open Source License

Declaration

public static float[] subtractArray(float[] arr1, float[] arr2) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static float[] subtractArray(float[] arr1, float[] arr2) {
        int l = arr1.length;
        float[] res = new float[l];
        for (int i = 0; i < l; i++) {
            res[i] = arr1[i] - arr2[i];//from  w ww  .  j  av a  2s  .c o  m
        }
        return res;
    }
}

Related

  1. subtract(int a, int[] b)
  2. subtract(int bytesPerDim, int dim, byte[] a, byte[] b, byte[] result)
  3. subtract(int[] a, int[] b)
  4. subtract2(double[] v1, double[] v2, double[] res)
  5. subtractArray(double[] array1, double[] array2)
  6. subtractElementwise(int[] a, int[] b)
  7. subtractImages(float[][] top, float[][] base)
  8. subtractInPlace(double[] a, double[] b)
  9. subtractInPlace(double[] first, double[] second)