Here you can find the source of subtractInPlace(double[] a, double[] b)
Parameter | Description |
---|---|
a | a parameter |
b | a parameter |
public static final void subtractInPlace(double[] a, double[] b)
//package com.java2s; //License from project: Apache License public class Main { /**/*from w ww . j a v a 2 s . c o m*/ * Replace the contents of a with * a[i] - b[i] for all i. * @param a * @param b */ public static final void subtractInPlace(double[] a, double[] b) { for (int i = 0; i < a.length; i++) { a[i] -= b[i]; } } }