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

Method unmodifiableView

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

Creates an returns an unmodifiable view of the given double array that requires only a small object allocation. @param array the array to wrap into an unmodifiable list @param length the number of values of the array to use, starting from zero @return an unmodifiable list view of the array

(double[] array, int length)

Source from the content-addressed store, hash-verified

249 * @return an unmodifiable list view of the array
250 */
251 public static List<Double> unmodifiableView(double[] array, int length)
252 {
253 return Collections.unmodifiableList(view(array, length));
254 }
255
256 /**
257 * Creates and returns a view of the given double array that requires only

Callers 5

IndexTableMethod · 0.95
sortMethod · 0.95
sortRMethod · 0.95
sortByEigenValueMethod · 0.95
sortedCopyMethod · 0.95

Calls 1

viewMethod · 0.95

Tested by

no test coverage detected