Java Array Invert invert(double[] ary)

Here you can find the source of invert(double[] ary)

Description

invert

License

Apache License

Declaration

public static double[] invert(double[] ary) 

Method Source Code

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

public class Main {
    public static double[] invert(double[] ary) {
        if (ary == null)
            return null;
        for (int i = 0; i < ary.length; i++)
            ary[i] = 1. / ary[i];/*from   www . j  a  va 2  s  . c  o m*/
        return ary;
    }
}

Related

  1. invert(byte abyte0[])
  2. invert(byte[] array)
  3. invert(byte[] bytes)
  4. invert(byte[] key)
  5. invert(byte[] v)
  6. invert(float[] a)
  7. invert(float[] m, float[] invOut)
  8. invert(int[] bits)
  9. invert(int[] v)