147148149150151152153
// // *********************************************************************** public IIntList list(int size) { return (new IntArrayList_FastUtilWrapper(new int[size])); }
152153154155156157158
return (new IntArrayList_FastUtilWrapper(new int[size])); } public IIntList list(int size, int value) { return (new IntArrayList_FastUtilWrapper(PrimitiveIntTools.createInitialized(size, value))); }
157158159160161162163
return (new IntArrayList_FastUtilWrapper(PrimitiveIntTools.createInitialized(size, value))); } public IIntList list(IIntArray arr) { return (new IntArrayList_FastUtilWrapper(arr.getArray())); }
166167168169170171172
* Convenience constructor for primitive arrays */ public IIntList listFrom(int d) { int[] arr = PrimitiveIntTools.getIntArray(d); return (new IntArrayList_FastUtilWrapper(arr)); }
176177178179180181182
* (this one is necessary because it does not overlap with create(double[]) */ public IIntList listFrom(int d1, int... d2) { int[] arr = PrimitiveIntTools.concat(PrimitiveIntTools.getIntArray(d1),d2); return (new IntArrayList_FastUtilWrapper(arr)); }
184185186187188189190
/** * Convenience constructor for primitive arrays */ public IIntList listFrom(int[] arr) { return (new IntArrayList_FastUtilWrapper(arr)); }
191192193194195196197
public IIntList listFrom(double[] a) { int[] res = PrimitiveIntTools.from(a); return (new IntArrayList_FastUtilWrapper(res)); }
198199200201202203204
public IIntList listFrom(float[] a) { int[] res = PrimitiveIntTools.from(a); return (new IntArrayList_FastUtilWrapper(res)); }
208209210211212213214
is returned. */ public IIntList listRandomIndexes(int N, int n) { int[] res = PrimitiveIntTools.randomIndexes(N,n); return (new IntArrayList_FastUtilWrapper(res)); }
220221222223224225226
previous value by step. */ public IIntList listRange(int start, int end, int step) { int[] res = PrimitiveIntTools.range(start, end, step); return (new IntArrayList_FastUtilWrapper(res)); }