mirror of
https://github.com/boostorg/math.git
synced 2026-02-24 04:02:18 +00:00
removed assert to boost assert
This commit is contained in:
@@ -101,7 +101,7 @@ template<typename T>
|
||||
T
|
||||
norm_inf(const std::vector<T>& x)
|
||||
{
|
||||
assert(!x.empty());
|
||||
BOOST_ASSERT(!x.empty());
|
||||
|
||||
T max_val = std::abs(x[0]);
|
||||
const std::size_t n = x.size();
|
||||
|
||||
@@ -85,7 +85,7 @@ public:
|
||||
* Numerical Optimization, 2nd Edition,
|
||||
* Springer, 2006.
|
||||
*
|
||||
* Algorithm 3.5 — Line Search Algorithm (Strong Wolfe Conditions)
|
||||
* Algorithm 3.5 - Line Search Algorithm (Strong Wolfe Conditions)
|
||||
* Pages 60–61
|
||||
*/
|
||||
template<typename RealType>
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include <vector>
|
||||
|
||||
#include "boost/math/optimization/detail/line_search_policies.hpp"
|
||||
#include <deque>
|
||||
|
||||
namespace boost {
|
||||
namespace math {
|
||||
|
||||
Reference in New Issue
Block a user