Skip to content

Question about the arguments type and the return type in specific methods #813

Answered by cdrnet
shikouzhong asked this question in Q&A
Discussion options

You must be logged in to vote

The type-safety is intentional and generally desired and wanted. It does mean that you can, but also have to, be aware of what domain you're computing in.

Technically we could offer all operations also cross-type, unfortunately this would explode the API in a way that is hard to justify. So you'll essentially have to find a good boundary in your algorithms between real and complex domain areas, and convert whenever you have to cross that boundary, e.g. using ToComplex32().

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by cdrnet
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #463 on July 24, 2021 07:20.