Java Zero Format zero(double[] zero)

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

Description

Sets every value of the passed array to 0.

License

Open Source License

Declaration

public static void zero(double[] zero) 

Method Source Code

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

public class Main {
    /**// w  ww .  ja  va 2s.c o m
     * Sets every value of the passed array to 0.
     */
    public static void zero(double[] zero) {
        for (int k = 0; k < zero.length; k++) {
            zero[k] = 0;
        }
    }

    /**
     * Sets every value of the passed array to 0.
     */
    public static void zero(int[] zero) {
        for (int k = 0; k < zero.length; k++) {
            zero[k] = 0;
        }
    }
}

Related

  1. zero(byte[] a, int aoffset, int len)
  2. zero(byte[] bytes, int off, int len)
  3. zero(byte[]... arrays)
  4. zero(int bits)
  5. zero(int x)
  6. zero_pad(byte[] original, int block_size)
  7. zeroAlign(String x, int count)