Java Array Subtract subtractTo(double a[][][], double b[][][])

Here you can find the source of subtractTo(double a[][][], double b[][][])

Description

Subtract every entry of matrix b to the corresponding entry in matrix a.

License

CeCILL license

Parameter

Parameter Description
a a parameter
b a parameter

Declaration

static void subtractTo(double a[][][], double b[][][]) 

Method Source Code

//package com.java2s;
//License from project: CeCILL license 

public class Main {
    /**//from   w  w w  .  ja v a2s .  co  m
     * Subtract every entry of matrix b to the corresponding entry in matrix a.
     * 
     * @param a
     * @param b
     */
    static void subtractTo(double a[][][], double b[][][]) {
        for (int i = 0; i < a.length; i++)
            for (int j = 0; j < a[i].length; j++)
                for (int k = 0; k < a[i][j].length; k++)
                    a[i][j][k] -= b[i][j][k];
    }
}

Related

  1. subtractInPlace(final double[] a, final double[] b)
  2. subtractKeepPositiveValues(float[] dividend, float divisor)
  3. subtractMin(Double[] array)
  4. subtractRange(double[] accumulator, int offset, double[] values)
  5. subtractSignals(double[] s1, double[] s2)
  6. subtractUnitsArray(int[] units1, int[] units2)
  7. SubtractVec2D(double[] vec2Ret, double[] vec2A, double[] vec2B)
  8. SubtractVec3D(double[] vec3Ret, double[] vec3A, double[] vec3B)