public static <T>T[] buildArray(final Field<T> field,final int length){
  @SuppressWarnings("unchecked") T[] array=(T[])Array.newInstance(field.getRuntimeClass(),length);
  Arrays.fill(array,field.getZero());
  return array;
}

public static < T > T [ ] buildArray ( final Field < T > field , final int length ) { @ SuppressWarnings ( "unchecked" ) T [ ] array = ( T [ ] ) Array . newInstance ( field . getRuntimeClass ( ) , length ) ; Arrays . fill ( array , field . getZero ( ) ) ; return array ; }
build an array of elements . < p > arrays are filled with field . getzero ( )
