-
Notifications
You must be signed in to change notification settings - Fork 234
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
api: Introduce complex numbers support (np.complex64/128) #2375
+3,442
−744
Merged
Changes from 1 commit
Commits
Show all changes
74 commits
Select commit
Hold shift + click to select a range
9b0420e
api: add support for complex dtype
mloubout 5398c68
api: fix printer for complex dtype
mloubout 2b4f7b0
compiler: fix alias dtype with complex numbers
mloubout 0cf3f78
api: move complex ctype to dtype lowering
mloubout 386d5a2
compiler: generate std:complex for cpp compilers
mloubout b5bf79c
compiler: add std::complex arithmetic defs for unsupported types
mloubout ac28372
compiler: fix alias dtype with complex numbers
mloubout 89b6fea
compiler: fix internal language specific types and cast
mloubout d5a2542
compiler: rework dtype lowering
mloubout 64801cb
compiler: switch to c++14 for complex_literals
mloubout 2f0cacf
compiler: subdtype numpy for dtype lowering
mloubout 7ad523b
compiler: use structs to pass complex arguments
enwask e8e51f1
compiler: add Dereference scalar case
enwask d0c55f9
compiler: implement float16 support
enwask 9081b2e
symbolics: fix printer for half precision
enwask 89c8bf5
misc: fix formatting
enwask 43b82db
compiler: refactor float16 and lower_dtypes
enwask 91ab1e9
compiler: add dtype_alloc_ctype helper for allocation size
enwask d907e8d
misc: more float16 refactoring/formatting fixes
enwask 425d568
Remove dtypes lowering from IET layer
enwask 8db3f96
compiler: reimplement float16/complex lowering
enwask 53462a3
misc: cleanup, docs and typing for half support
enwask 8a8f24f
compiler: FindSymbols 'scalars' -> 'abstractsymbols'
enwask b0c9ee9
test: include scalar parameters in complex tests
enwask 344c435
test: add test_dtypes with initial tests for float16 + complex
enwask 4f5ee36
misc: more lower_dtypes cleanup + type hints
enwask 49a9bec
api: use grid dtype for extent and origin, add test_grid
enwask e8c7fc0
test: clean up and add more half/complex tests
enwask 12b936a
test: fix test_grid_objs, add test_grid_dtypes
enwask 1981465
api: allow side for cross derivatives, fixes #2442
mloubout da2ea2a
compiler: process dtypes through printer
mloubout f76dbad
symbolics: specialize sizeof
mloubout d55931f
compiler: move dtype pass to top level operator iet pass
mloubout cb6fdc8
symbolics: fix SizeOf rebuild
mloubout 11d6b32
symbolics: use std namespace for c++
mloubout ed5dbe6
compiler: fix std math func names
mloubout 63e589d
symbolics: move printers rogether through registry
mloubout f781aa4
symbolics: rework Cast
mloubout 05d4e3f
compiler: fix complex headers
mloubout 6fc54e3
api: remove un-needed dtype reconstruction mode
mloubout 0f17026
compiler: fix dtype for mpi routines
mloubout 2ce9817
compiler: fix missing algorithm include for min/max
mloubout 9307bf0
arch: switch sycl error to warning for no-compile codegen
mloubout 2b2848b
symbolics: rework cast/sizeof for pickling
mloubout 3e9e931
api: fix c_datatype hack
mloubout 58e6310
compiler: make visitor language parametric
mloubout f1a082d
compiler: make sure complex ctype is handled properly for typedata
mloubout 0c914f2
symbolics: cleaner repr of Cast
mloubout 1c9ab2e
test: improve dtype tests log
mloubout 461fd43
compiler: make sure cpp is used for c++ compilers
mloubout c515253
compiler: make printer part of the target and differentiate C and CXX
mloubout 4899f11
compiler: add all cxx target to operator registry
mloubout f968a89
compiler: cleanup operator class names
mloubout d385957
compiler: switch cxx backend to static_cast
mloubout b419050
compiler: add switch for static_cast vs reinterpret_cast
mloubout ad7271f
compiler: handle plain text header
mloubout 91f2018
compiler: convert all in visitors to f-string
mloubout 049f17a
compiler: convert printer to f-string
mloubout 8f4f221
arch: add intel gpu basic gpu_info support
mloubout d24e6e1
compiler: fix header order
mloubout 8e0a2d3
compiler: add scalar type option
mloubout 65f1b37
compiler: fix real dtype
mloubout 1da795e
compiler: more robust safeinv
mloubout e9fa6ec
compiler: mssing substraction cxx def
mloubout 83737b0
compiler: make dtype lowering more flexible
mloubout 6a563a2
examples: add on the fly dft tutorial
mloubout 601d99d
api: fix norm with complex numbers
mloubout c1a31a9
api: dix sympy assumptions for complex valued objects
mloubout 43da5a2
misc: f-string formatting
mloubout 8185a5e
compiler: cleanup default includes/header/namespaces
mloubout 124b9ba
misc: fix typos and formatting
mloubout 24faf28
compiler: rename lang option to langbb for clarity
mloubout 5f89aed
api: enforce pow_to_mul to be un-evaluable
mloubout be87c17
compiler: rename lang to langbb throughout for clarity
mloubout File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
symbolics: cleaner repr of Cast
commit 0c914f2ef362804c80eba9cc367da7eb753d0c67
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fstrings here and below