| 203 | kernel_->setParameters( v ); |
| 204 | } |
| 205 | VectorXf PairwisePotential::kernelGradient( const MatrixXf & b, const MatrixXf & Q ) const { |
| 206 | MatrixXf lbl_Q = 0*Q; |
| 207 | // You could reuse the filtered_b from applyTranspose |
| 208 | compatibility_->apply( lbl_Q, Q ); |
| 209 | return kernel_->gradient(b,lbl_Q); |
| 210 | } |