Here you can find the source of negateInPlace(float[] in)
public static final void negateInPlace(float[] in)
//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*/ } } }