Here you can find the source of zeros(int size)
public static float[] zeros(int size)
//package com.java2s; //License from project: Open Source License public class Main { public static float[] zeros(int size) { float[] arr = new float[size]; for (int i = 0; i < size; i++) { arr[i] = 0.0f;/*from ww w .j a va 2 s . c o m*/ } return arr; } }