Java Array Clear zero(float[][] M)

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

Description

zero

License

Apache License

Declaration

public static void zero(float[][] M) 

Method Source Code


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

import java.util.Arrays;

public class Main {
    public static void zero(float[][] M) {
        for (int i = 0; i < M.length; i++) {
            Arrays.fill(M[i], 0);
        }/*from  w w  w.j av  a 2s  .  c o  m*/
    }

    public static void zero(double[][] M) {
        for (int i = 0; i < M.length; i++) {
            Arrays.fill(M[i], 0);
        }
    }
}

Related

  1. ZeroByteArray(byte[] pbArray)
  2. zeroI(long[] v)
  3. zeros(final float[] input)