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

Method embedShift

JSAT/src/jsat/linear/ShiftedVec.java:72–76  ·  view source on GitHub ↗

Embeds the current shift scalar into the base vector, modifying it and then setting the new shit to zero. This makes the base vector have the value represented by this ShiftedVec

()

Source from the content-addressed store, hash-verified

70 * value represented by this ShiftedVec
71 */
72 public void embedShift()
73 {
74 base.mutableAdd(shift);
75 shift = 0;
76 }
77
78 @Override
79 public int length()

Callers 1

testEmbedShiftMethod · 0.95

Calls 1

mutableAddMethod · 0.45

Tested by 1

testEmbedShiftMethod · 0.76