Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complex Overloads #620

Open
wants to merge 39 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
5073b38
Add better cmake support
mborland May 6, 2024
1f98503
Add test set
mborland May 6, 2024
8e82bbb
Add class basis
mborland May 6, 2024
2a688a5
Restrict to boost.mp types
mborland May 6, 2024
564ce77
Add unary operators
mborland May 6, 2024
2df271f
Specialize class
mborland May 6, 2024
f61a9e1
Have std::complex inherit from multiprecision number class
mborland May 7, 2024
b714bb2
Add equality
mborland May 7, 2024
dbbc941
Add the ostream operator
mborland May 7, 2024
0b5bd14
Add the istream operator
mborland May 7, 2024
f50f134
Add overloads for non-member real and imag
mborland May 7, 2024
612f4fe
Replace polar impl with the one from default ops
mborland May 7, 2024
21d9b25
Add abs overload
mborland May 7, 2024
d76f19b
Add constexpr annotations
mborland May 7, 2024
e46424d
Add arg
mborland May 7, 2024
20faba1
Add norm
mborland May 7, 2024
8ee77ce
Add conj overload
mborland May 7, 2024
a5faa8d
Add proj overload and fix const correctness
mborland May 7, 2024
618bdf3
Fix test for std::sqrt promoting float result to double
mborland May 7, 2024
861c6bd
Add exp overload
mborland May 8, 2024
1c95d3a
Add overload for log
mborland May 8, 2024
4abb271
Add complex and scalar basic operations
mborland May 8, 2024
4a35b0d
Add log10 overload
mborland May 8, 2024
aa01997
Make basic operations non-member functions
mborland May 8, 2024
2a5d7bb
Add pow overload
mborland May 8, 2024
c560957
Add sqrt overload
mborland May 8, 2024
f1b88ea
Add sinh overload
mborland May 8, 2024
caf7058
Add cosh overload
mborland May 8, 2024
17b815d
Add tanh overload
mborland May 8, 2024
f9b9071
Add MSVC workaround for test failure
mborland May 8, 2024
9b3575b
Bootstrap from existing complex class
mborland May 9, 2024
214a2d2
Add remaining special functions
mborland May 9, 2024
7ec2760
Add tentative polar() support and tests.
jzmaddock May 14, 2024
411d9ea
Remove MSVC 14.0 for boost 1.86
mborland May 15, 2024
4b0d1e5
Fix usage of if constexpr
mborland May 15, 2024
b437d60
Use SFINAE to fix C++14 build errors
mborland May 16, 2024
b885279
Delete cruft
mborland May 17, 2024
ded45c0
Add nick's test set
mborland May 17, 2024
903d23c
Eigen matrix doesn't support iterators
mborland May 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 0 additions & 43 deletions .github/workflows/multiprecision.yml
Original file line number Diff line number Diff line change
Expand Up @@ -435,49 +435,6 @@ jobs:
- name: b2 config
run: cat bin.v2/config.log
working-directory: ../boost-root/
windows_msvc_14_0:
runs-on: windows-2019
defaults:
run:
shell: cmd
env:
ARGS: toolset=${{ matrix.toolset }} address-model=64 cxxstd=${{ matrix.standard }}
strategy:
fail-fast: false
matrix:
toolset: [ msvc-14.0 ]
standard: [ 14, latest ]
suite: [ github_ci_block_1, github_ci_block_2 ]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Checkout main boost
run: git clone -b develop --depth 1 https://github.com/boostorg/boost.git ../boost-root
- name: Update tools/boostdep
run: git submodule update --init tools/boostdep
working-directory: ../boost-root
- name: Copy files
run: xcopy /s /e /q %GITHUB_WORKSPACE% libs\multiprecision
working-directory: ../boost-root
- name: Install deps
run: python tools/boostdep/depinst/depinst.py multiprecision
working-directory: ../boost-root
- name: Bootstrap
run: bootstrap
working-directory: ../boost-root
- name: Generate headers
run: b2 headers
working-directory: ../boost-root
- name: Config Info
run: ..\..\..\b2 print_config_info print_math_info %ARGS%
working-directory: ../boost-root/libs/config/test
- name: Test
run: ..\..\..\b2 -j2 --hash %ARGS% define=CI_SUPPRESS_KNOWN_ISSUES ${{ matrix.suite }}
working-directory: ../boost-root/libs/multiprecision/test
- name: b2 config
run: cat bin.v2/config.log
working-directory: ../boost-root/
windows_msvc_14_2:
runs-on: windows-2019
defaults:
Expand Down
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ else()

endif()

if(BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test/CMakeLists.txt")

add_subdirectory(test)

endif()

# Only enable tests when we're the root project
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)

Expand Down
Loading
Loading