MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / view

Method view

JSAT/src/jsat/utils/DoubleList.java:268–273  ·  view source on GitHub ↗

Creates and returns a view of the given double array that requires only a small object allocation. Changes to the list will be reflected in the array up to a point. If the modification would require increasing the capacity of the array, a new array will be allocated - at which point operations will

(double[] array, int length)

Source from the content-addressed store, hash-verified

266 * point of requiring the allocation of a new array
267 */
268 public static DoubleList view(double[] array, int length)
269 {
270 if(length > array.length || length < 0)
271 throw new IllegalArgumentException("length must be non-negative and no more than the size of the array("+array.length+"), not " + length);
272 return new DoubleList(array, length);
273 }
274}

Callers 8

unmodifiableViewMethod · 0.95
applyMethod · 0.95
getAccelerationCacheMethod · 0.95
getAccelerationCacheMethod · 0.95
getAccelerationCacheMethod · 0.95
getAccelerationCacheMethod · 0.95
getAccelerationCacheMethod · 0.95
AutoDeskewTransformMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected