Java Number Negate negateInPlace(float[] in)

Here you can find the source of negateInPlace(float[] in)

Description

negate In Place

License

Apache License

Declaration

public static final void negateInPlace(float[] in) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static final void negateInPlace(float[] in) {
        for (int i = 0; i < in.length; i++) {
            in[i] *= -1;/*from w ww.  ja v  a  2 s  . c  o  m*/
        }
    }
}

Related

  1. negate(String expr)
  2. negate(String string, String trueValue, String falseValue)
  3. negate(String value)
  4. negateExact(double a)
  5. negateExpression(String expression)
  6. Negation(String StartIP, String netmask)
  7. negative(float a)
  8. negative(int b)
  9. negative(Number n)