7 Commits

Author SHA1 Message Date
Matt Borland 704eeb8955 Adjust tests so they are compatible with GCC modules 2026-07-17 17:11:31 -04:00
Matt Borland 39b0970cf7 Export statistics and optimization for the boost.math module
* BOOST_MATH_EXPORT on the statistics free functions (univariate,
  bivariate, tests, regression, signal) and the optimization
  algorithms, parameter structs and constraint/convergence policies
* BOOST_MATH_TEST_EXPORT on the optimization detail helpers the
  differential evolution test exercises directly
* Adds the statistics and optimization headers to the module interface
  unit; cma_es is excluded because it requires Eigen
* test_functions_for_optimization.hpp resolves constants through the
  import in module mode
* Module test harness gains test_runs_test, linear_regression_test,
  ljung_box_test, differential_evolution_test and random_search_test
2026-07-15 11:36:18 -04:00
ckormanyos 4d5ec95f9f Remove optimize-tests Boost.Units types 2025-08-22 18:57:50 +02:00
Nick Thompson c1b95ac86d Attempt to fix random_search_test by increasing the number of function calls 2024-02-19 01:51:12 +00:00
Nick Thompson f8da4ba2be Units compatibility for optimization 2024-02-10 20:58:18 -08:00
Nick Thompson 3bf7d9791c Use math_unit_test.hpp to fix build failure
We often see the condition number test failing with

```
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/as.exe: ..\..\..\bin.v2\libs\math\test\condition_number_test.test\a7486d3baaf381a6d13710dc26b7b123\condition_number_test.o: too many sections (32989)
C:\Users\RUNNER~1\AppData\Local\Temp\ccuI2rpi.s: Assembler messages:
C:\Users\RUNNER~1\AppData\Local\Temp\ccuI2rpi.s: Fatal error: can't write 155 bytes to section .text of ..\..\..\bin.v2\libs\math\test\condition_number_test.test\a7486d3baaf381a6d13710dc26b7b123\condition_number_test.o: 'File too big'
```

Use math_unit_test.hpp to fix this.
2024-02-09 15:32:35 -08:00
Nick fccad84bf5 Random search (#1071) 2024-01-24 17:26:24 -08:00