Here you can find the source of zero(float[][] M)
public static void zero(float[][] M)
//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); } } }