Java Number Negate negate(double[] output, double[] a)

Here you can find the source of negate(double[] output, double[] a)

Description

negate

License

Open Source License

Declaration

public static double[] negate(double[] output, double[] a) 

Method Source Code

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

public class Main {
    public static double[] negate(double[] output, double[] a) {
        for (int i = output.length - 1; i >= 0; i--) {
            output[i] = -a[i];/*from  w ww  . j  a v  a 2s. c om*/
        }

        return output;
    }
}

Related

  1. negate(Boolean bool)
  2. negate(Boolean bool)
  3. negate(boolean[] posit)
  4. negate(Comparable v)
  5. negate(double[] a)
  6. negate(double[] values)
  7. negate(final Boolean bool)
  8. negate(int[] ar)
  9. negate(int[] input)