// // C++ Implementation: BisectionLocator // // Description: // // // Author: Takeshi Nakazato , (C) 2012 // // Copyright: See COPYING file that comes with this distribution // // #include #include "BisectionLocator.h" namespace asap { template BisectionLocator::BisectionLocator() : Locator() { } template BisectionLocator::BisectionLocator(T *v, unsigned int n, bool copystorage) : Locator(v, n, copystorage) {} template BisectionLocator::~BisectionLocator() {} template unsigned int BisectionLocator::locate(T x) { if (this->n_ == 1) return 0; return this->bisection(x, 0, this->n_); } }