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

Method mutableAdd

JSAT/src/jsat/linear/ShiftedVec.java:102–113  ·  view source on GitHub ↗
(Vec b)

Source from the content-addressed store, hash-verified

100 }
101
102 @Override
103 public void mutableAdd(Vec b)
104 {
105 if(b instanceof ShiftedVec)
106 {
107 ShiftedVec other = (ShiftedVec) b;
108 base.mutableAdd(other.base);
109 shift += other.shift;
110 }
111 else
112 base.mutableAdd(b);
113 }
114
115 @Override
116 public void mutableAdd(double c)

Callers 7

testMutableAdd_VecMethod · 0.95
testMutableAdd_doubleMethod · 0.95
testCloneMethod · 0.95
embedShiftMethod · 0.45
mutablePairwiseDivideMethod · 0.45

Calls

no outgoing calls

Tested by 4

testMutableAdd_VecMethod · 0.76
testMutableAdd_doubleMethod · 0.76
testCloneMethod · 0.76