2
0
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:
Maksym Zhelyeznyakov
2025-10-17 20:19:22 +02:00
parent 64e3a8727e
commit 2027b2c730
3 changed files with 3 additions and 2 deletions

View File

@@ -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();

View File

@@ -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 6061
*/
template<typename RealType>

View File

@@ -10,6 +10,7 @@
#include <vector>
#include "boost/math/optimization/detail/line_search_policies.hpp"
#include <deque>
namespace boost {
namespace math {