| 171 | kernel_ = new DenseKernel( features, ktype, ntype ); |
| 172 | } |
| 173 | void PairwisePotential::apply(MatrixXf & out, const MatrixXf & Q) const { |
| 174 | kernel_->apply( out, Q ); |
| 175 | |
| 176 | // Apply the compatibility |
| 177 | compatibility_->apply( out, out ); |
| 178 | } |
| 179 | void PairwisePotential::applyTranspose(MatrixXf & out, const MatrixXf & Q) const { |
| 180 | kernel_->applyTranspose( out, Q ); |
| 181 | // Apply the compatibility |
no outgoing calls