Here you can find the source of subtract(double[] res, double[] subtractor)
Parameter | Description |
---|
public static double[] subtract(double[] res, double[] subtractor)
//package com.java2s; //License from project: Open Source License public class Main { /**/*from ww w .j a va 2s. com*/ * Subtract two arrays * @param res: The minuend and the variable where the difference is stored * @param subtractor: the subtrahend * @return difference array */ public static double[] subtract(double[] res, double[] subtractor) { for (int i = 0; i < res.length; i++) { res[i] -= subtractor[i]; } return res; } }