MCPcopy Create free account
hub / github.com/WinVector/Logistic / add

Method add

src/com/winvector/opt/def/VEval.java:51–66  ·  view source on GitHub ↗

slow operation assumes the two x's are the same @param o

(final VEval o)

Source from the content-addressed store, hash-verified

49 * @param o
50 */
51 public void add(final VEval o) {
52 final int dim = x.length;
53 fx += o.fx;
54 if(gx!=null) {
55 for(int i=0;i<dim;++i) {
56 gx[i] += o.gx[i];
57 }
58 }
59 if(hx!=null) {
60 for(int i=0;i<dim;++i) {
61 for(int j=0;j<dim;++j) {
62 hx[i][j] += o.hx[i][j];
63 }
64 }
65 }
66 }
67}

Callers 15

evalMethod · 0.95
readBurstFromResourceMethod · 0.45
readBurstFromResourceMethod · 0.45
testVectorEncodingBMethod · 0.45
trimStuckLevelsMethod · 0.45
VariableEncodingsMethod · 0.45
encodeMethod · 0.45
trainMethod · 0.45
FormulaMethod · 0.45
allTermsMethod · 0.45
mainMethod · 0.45
readSetMethod · 0.45

Calls

no outgoing calls

Tested by 3

readBurstFromResourceMethod · 0.36
readBurstFromResourceMethod · 0.36
testVectorEncodingBMethod · 0.36