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

Function gradient

dependency/densecrf/src/optimization.cpp:116–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114 return g;
115}
116VectorXf gradient( EnergyFunction & efun, const VectorXf & x ) {
117 VectorXf r( x.rows() );
118 efun.gradient( x, r );
119 return r;
120}
121double gradCheck( EnergyFunction & efun, const VectorXf & x, float EPS ) {
122 VectorXf ng = numericGradient( efun, x, EPS );
123 VectorXf g( x.rows() );

Callers

nothing calls this directly

Calls 2

rowsMethod · 0.45
gradientMethod · 0.45

Tested by

no test coverage detected