MCPcopy Create free account
hub / github.com/HiLab-git/SimpleCRF / computeFunction

Function computeFunction

dependency/densecrf3d/src/optimization.cpp:128–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128VectorXf computeFunction( EnergyFunction & efun, const VectorXf & x, const VectorXf & dx, int n_samples ) {
129 VectorXf r( n_samples );
130 VectorXf tmp = x;
131 for( int i=0; i<n_samples; i++ )
132 r[i] = efun.gradient( x+i*dx, tmp );
133 return r;
134}
135

Callers

nothing calls this directly

Calls 1

gradientMethod · 0.45

Tested by

no test coverage detected