Java Array Minus minusC(double[] v, double[] u)

Here you can find the source of minusC(double[] v, double[] u)

Description

minus C

License

Open Source License

Declaration

public static double[] minusC(double[] v, double[] u) 

Method Source Code

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

import java.util.Arrays;

public class Main {
    public static double[] minusC(double[] v, double[] u) {
        double[] vc = Arrays.copyOf(v, v.length);
        for (int i = 0; i < v.length; i++) {
            vc[i] -= u[i];//from w  w  w  . j a  va2 s  .co  m
        }
        return vc;
    }
}

Related

  1. minus(String[] left, String[] right)