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