From 483eb2f56657e8e7f419ab1a4fab8dce9ade8609 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 20:24:20 +0200 Subject: Adding upstream version 14.2.21. Signed-off-by: Daniel Baumann --- src/boost/libs/math/test/test_math_fwd.cpp | 62 ++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 src/boost/libs/math/test/test_math_fwd.cpp (limited to 'src/boost/libs/math/test/test_math_fwd.cpp') diff --git a/src/boost/libs/math/test/test_math_fwd.cpp b/src/boost/libs/math/test/test_math_fwd.cpp new file mode 100644 index 00000000..dd9bafa1 --- /dev/null +++ b/src/boost/libs/math/test/test_math_fwd.cpp @@ -0,0 +1,62 @@ +// test_math_fwd.cpp + +// Copyright John Maddock 2010. +// Copyright Paul A. Bristow 2010. +// 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 special functions forward declaration header +// +// and distributions forward declarations header +// +// #includes all the files that it needs to. +// +#include +#include +// using boost::math::beta; + +#include +#include +// using boost::math::normal_distribution; + +int main() +{ + // Special functions. + // Call functions, discarding any result. + using boost::math::beta; + beta(1.,2.); + + // Distributions. + using boost::math::normal_distribution; + using boost::math::normal; + + // Construct some distributions. + normal myf1(1., 2); // Using typedef. + normal n01; // Use default values for mean and standard deviation). + normal_distribution<> n01d(1., 2); // Using default RealType double. + normal_distribution n01f; // Using float type, and defaults. + normal_distribution myf22(0.f, 2.f); // Using explicit RealType float. + + return 0; +} + +/* + +VS2010 + +------ Build started: Project: test_math_fwd, Configuration: Debug Win32 ------ + test_math_fwd.cpp + test_math_fwd.vcxproj -> J:\Cpp\MathToolkit\test\Math_test\Debug\test_math_fwd.exe +========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ========== + + +------ Build started: Project: test_math_fwd, Configuration: Release Win32 ------ + test_math_fwd.cpp + Generating code + Finished generating code + test_math_fwd.vcxproj -> J:\Cpp\MathToolkit\test\Math_test\Release\test_math_fwd.exe + +*/ + + -- cgit v1.2.3