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 --- .../multiprecision/test/ublas_interop/test5.hpp | 63 ++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 src/boost/libs/multiprecision/test/ublas_interop/test5.hpp (limited to 'src/boost/libs/multiprecision/test/ublas_interop/test5.hpp') diff --git a/src/boost/libs/multiprecision/test/ublas_interop/test5.hpp b/src/boost/libs/multiprecision/test/ublas_interop/test5.hpp new file mode 100644 index 00000000..2f5e09d2 --- /dev/null +++ b/src/boost/libs/multiprecision/test/ublas_interop/test5.hpp @@ -0,0 +1,63 @@ +// +// Copyright (c) 2000-2002 +// Joerg Walter, Mathias Koch +// +// Distributed under 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) +// +// The authors gratefully acknowledge the support of +// GeNeSys mbH & Co. KG in producing this work. +// + +#ifndef TEST5_H +#define TEST5_H + +#ifdef _MSC_VER +#pragma warning(disable : 4800 4996 4127 4100) +#endif + +#include + +#ifdef TEST_ET +typedef boost::multiprecision::number, boost::multiprecision::et_on> mp_test_type; +#else +typedef boost::multiprecision::number, boost::multiprecision::et_off> mp_test_type; +#endif +//typedef double mp_test_type; + +#define USE_RANGE +#define USE_SLICE +#define USE_FLOAT +#define USE_UNBOUNDED_ARRAY +#define USE_STD_VECTOR +#define USE_BOUNDED_VECTOR USE_MATRIX +#define USE_UNBOUNDED_ARRAY +#define USE_MAP_ARRAY +#define USE_STD_MAP +#define USE_MAPPED_VECTOR +#define USE_COMPRESSED_VECTOR +#define USE_COORDINATE_VECTOR +#define USE_MAPPED_MATRIX +#define USE_COMPRESSED_MATRIX +#define USE_COORDINATE_MATRIX + +#include + +#include +#include +#include +#include +#include + +namespace ublas = boost::numeric::ublas; + +#include "common/init.hpp" + +void test_matrix_vector(); +void test_matrix(); + +// FIXME slice are failing in assignment to zero elements +#undef USE_SLICE + +#endif -- cgit v1.2.3