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

Method arrayCopy

JSAT/src/jsat/linear/Vec.java:992–998  ·  view source on GitHub ↗

Creates a new array that contains all the values of this vector in the appropriate indices @return a new array that is a copy of this vector

()

Source from the content-addressed store, hash-verified

990 * @return a new array that is a copy of this vector
991 */
992 public double[] arrayCopy()
993 {
994 double[] array = new double[length()];
995 for(IndexValue iv : this)
996 array[iv.getIndex()] = iv.getValue();
997 return array;
998 }
999
1000 @Override
1001 public Iterator<IndexValue> iterator()

Callers 15

testSetSmoothingMethod · 0.95
sortedCopyMethod · 0.95
classifyMethod · 0.95
classifyMethod · 0.95
trainMethod · 0.95
testArrayCopyMethod · 0.45
fMethod · 0.45
fMethod · 0.45
fMethod · 0.45
fMethod · 0.45
getClassificationMethod · 0.45
trainMethod · 0.45

Calls 3

lengthMethod · 0.95
getIndexMethod · 0.45
getValueMethod · 0.45

Tested by 6

testSetSmoothingMethod · 0.76
testArrayCopyMethod · 0.36
fMethod · 0.36
fMethod · 0.36
fMethod · 0.36
fMethod · 0.36