| 191 | compatibility_->setParameters( v ); |
| 192 | } |
| 193 | VectorXf PairwisePotential::gradient( const MatrixXf & b, const MatrixXf & Q ) const { |
| 194 | MatrixXf filtered_Q = 0*Q; |
| 195 | // You could reuse the filtered_b from applyTranspose |
| 196 | kernel_->apply( filtered_Q, Q ); |
| 197 | return compatibility_->gradient(b,filtered_Q); |
| 198 | } |
| 199 | VectorXf PairwisePotential::kernelParameters() const { |
| 200 | return kernel_->parameters(); |
| 201 | } |
no test coverage detected