/** * Estimates the cost of the enumeration for SVP. */ void cost_estimate(Float &cost, const Float &bound, const Matrix<Float> &r, int dimMax) { Float det, level_cost, tmp1; det = 1.0; cost = 0.0; for (int i = dimMax - 1; i >= 0; i--) { tmp1.div(bound, r(i, i)); det.mul(det, tmp1); level_cost.sqrt(det); sphere_volume(tmp1, dimMax - i); level_cost.mul(level_cost, tmp1); cost.add(cost, level_cost); } }
void LibraryKinematicsScenes::addFloat ( const Float& value ) { value.add(); }