@Test public void testSliceOf() { float[] array = Flt.array(0f, 1f, 2f, 3f, 4f, 5f, 6f); float[] array2 = Flt.sliceOf(array, 0, 100); puts(array, array2); Flt.equalsOrDie(array, array2); }
@Universal public static float[] sliceOf( float[] array, int startIndex, int endIndex ) { return slc(array, startIndex, endIndex); }
Flt { @Universal public static float[] sliceOf( float[] array, int startIndex, int endIndex ) { return slc(array, startIndex, endIndex); } }
Flt { @Universal public static float[] sliceOf( float[] array, int startIndex, int endIndex ) { return slc(array, startIndex, endIndex); }  }
Flt { @Universal public static float[] sliceOf( float[] array, int startIndex, int endIndex ) { return slc(array, startIndex, endIndex); }  static float[] grow( float[] array, final int size ); static float[] grow( float[] array ); static float[] shrink( float[] array, int size ); static float[] compact( float[] array ); static float[] arrayOfFloat( final int size ); @Universal static float[] array( final float... array ); @Universal static int lengthOf( float[] array ); @Universal static int len( float[] array ); @Universal static float atIndex( final float[] array, final int index ); @Universal static float idx( final float[] array, final int index ); @Universal static void atIndex( final float[] array, int index, float value ); @Universal static void idx( final float[] array, int index, float value ); @Universal static float[] sliceOf( float[] array, int startIndex, int endIndex ); @Universal static float[] slc( float[] array, int startIndex, int endIndex ); @Universal static float[] sliceOf( float[] array, int startIndex ); @Universal static float[] slc( float[] array, int startIndex ); @Universal static float[] endOfSlice( float[] array, int endIndex ); @Universal static float[] slcEnd( float[] array, int endIndex ); @Universal static boolean in( float value, float[] array ); @Universal static float[] copy( float[] array ); @Universal static float[] add( float[] array, float v ); @Universal static float[] add( float[] array, float[] array2 ); @Universal static float[] insert( final float[] array, final int idx, final float v ); @Universal static float[] insert( final float[] array, final int fromIndex, final float[] values ); static boolean equalsOrDie(float[] expected, float[] got); static boolean equals(float[] expected, float[] got); static double reduceBy( final float[] array, ReduceBy reduceBy ); static double reduceBy( final float[] array, final int start, final int length, ReduceBy reduceBy ); static double reduceBy( final float[] array, final int length, ReduceBy reduceBy ); static double reduceBy( final float[] array, T object ); static double reduceBy( final float[] array, T object, String methodName ); static double reduceBy( final float[] array,  int length,
                                 Object object ); static double reduceBy( final float[] array,  int length,
                                 Object function, String functionName ); static double reduceBy( final float[] array, int start, int length,
                                 Object object ); static boolean equalsOrDie(float expected, float got); static boolean equals(float expected, float got); static double sum( float[] values ); static float sum( float[] values,  int length ); static float sum( float[] values, int start, int length ); static double bigSum( float[] values ); static double bigSum( float[] values,  int length ); static double bigSum( float[] values, int start, int length ); static float max( float[] values, final int start, final int length ); static float max( float[] values ); static float max( float[] values, int length ); static float min( float[] values, final int start, final int length ); static float min( float[] values ); static float min( float[] values, int length ); static float mean( float[] values, final int start, final int length ); static float mean( float[] values, final int length ); static float mean( float[] values ); static float variance(float[] values, final int start, final int length); static double varianceDouble(float[] values, final int start, final int length); static float variance(float[] values,  final int length); static float variance(float[] values); static float standardDeviation(float[] values, final int start, final int length); static float standardDeviation(float[] values,  final int length); static float standardDeviation(float[] values); static float median(float[] values, final int start, final int length); static float median(float[] values, final int length); static float median(float[] values); static boolean equals(int start, int end, float[] expected, float[] got); static int hashCode(float array[]); static int hashCode(int start, int end, float array[]); }
Flt { @Universal public static float[] sliceOf( float[] array, int startIndex, int endIndex ) { return slc(array, startIndex, endIndex); }  static float[] grow( float[] array, final int size ); static float[] grow( float[] array ); static float[] shrink( float[] array, int size ); static float[] compact( float[] array ); static float[] arrayOfFloat( final int size ); @Universal static float[] array( final float... array ); @Universal static int lengthOf( float[] array ); @Universal static int len( float[] array ); @Universal static float atIndex( final float[] array, final int index ); @Universal static float idx( final float[] array, final int index ); @Universal static void atIndex( final float[] array, int index, float value ); @Universal static void idx( final float[] array, int index, float value ); @Universal static float[] sliceOf( float[] array, int startIndex, int endIndex ); @Universal static float[] slc( float[] array, int startIndex, int endIndex ); @Universal static float[] sliceOf( float[] array, int startIndex ); @Universal static float[] slc( float[] array, int startIndex ); @Universal static float[] endOfSlice( float[] array, int endIndex ); @Universal static float[] slcEnd( float[] array, int endIndex ); @Universal static boolean in( float value, float[] array ); @Universal static float[] copy( float[] array ); @Universal static float[] add( float[] array, float v ); @Universal static float[] add( float[] array, float[] array2 ); @Universal static float[] insert( final float[] array, final int idx, final float v ); @Universal static float[] insert( final float[] array, final int fromIndex, final float[] values ); static boolean equalsOrDie(float[] expected, float[] got); static boolean equals(float[] expected, float[] got); static double reduceBy( final float[] array, ReduceBy reduceBy ); static double reduceBy( final float[] array, final int start, final int length, ReduceBy reduceBy ); static double reduceBy( final float[] array, final int length, ReduceBy reduceBy ); static double reduceBy( final float[] array, T object ); static double reduceBy( final float[] array, T object, String methodName ); static double reduceBy( final float[] array,  int length,
                                 Object object ); static double reduceBy( final float[] array,  int length,
                                 Object function, String functionName ); static double reduceBy( final float[] array, int start, int length,
                                 Object object ); static boolean equalsOrDie(float expected, float got); static boolean equals(float expected, float got); static double sum( float[] values ); static float sum( float[] values,  int length ); static float sum( float[] values, int start, int length ); static double bigSum( float[] values ); static double bigSum( float[] values,  int length ); static double bigSum( float[] values, int start, int length ); static float max( float[] values, final int start, final int length ); static float max( float[] values ); static float max( float[] values, int length ); static float min( float[] values, final int start, final int length ); static float min( float[] values ); static float min( float[] values, int length ); static float mean( float[] values, final int start, final int length ); static float mean( float[] values, final int length ); static float mean( float[] values ); static float variance(float[] values, final int start, final int length); static double varianceDouble(float[] values, final int start, final int length); static float variance(float[] values,  final int length); static float variance(float[] values); static float standardDeviation(float[] values, final int start, final int length); static float standardDeviation(float[] values,  final int length); static float standardDeviation(float[] values); static float median(float[] values, final int start, final int length); static float median(float[] values, final int length); static float median(float[] values); static boolean equals(int start, int end, float[] expected, float[] got); static int hashCode(float array[]); static int hashCode(int start, int end, float array[]);  }