mirror of
https://github.com/boostorg/math.git
synced 2026-01-19 04:22:09 +00:00
* Implement logaddexp * Disable test for ASAN * Implement logsumexp * Add performance file and include results in the docs * Address review comments * Simplify overflow test and comply with min/max guidelines * Minor cleanup * FIxes to comments and docs [ci skip] * Return status code. Co-authored-by: Nick Thompson <nathompson7@protonmail.com>
24 lines
849 B
C++
24 lines
849 B
C++
// Copyright Matt Borland 2022
|
|
// Use, modification and distribution are subject to the
|
|
// Boost Software License, Version 1.0. (See accompanying file
|
|
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
//
|
|
// Basic sanity check that header <boost/math/special_functions/log1p.hpp>
|
|
// #includes all the files that it needs to.
|
|
//
|
|
#include <boost/math/special_functions/logaddexp.hpp>
|
|
//
|
|
// Note this header includes no other headers, this is
|
|
// important if this test is to be meaningful:
|
|
//
|
|
#include "test_compile_result.hpp"
|
|
|
|
void compile_and_link_test()
|
|
{
|
|
check_result<float>(boost::math::logaddexp<float>(1.0f, 1.0f));
|
|
check_result<double>(boost::math::logaddexp<double>(1.0, 1.0));
|
|
#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
|
|
check_result<long double>(boost::math::logaddexp<long double>(1.0l, 1.0l));
|
|
#endif
|
|
}
|