-
Notifications
You must be signed in to change notification settings - Fork 127
Added complex tests #465
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
Added complex tests #465
Conversation
| @@ -0,0 +1,17 @@ | |||
| from ulab import numpy as np | |||
|
|
|||
| print ( -0.3826834+0.9238795j + 0.5j ) | |||
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.
These test micropython's complex support, because the operands are scalars.
| print(np.exp(a)) | ||
|
|
||
| for n in [0,1j,2,0.3j,4,5j]: | ||
| print(n**2) |
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.
Again, since n is a scalar, this is a test for micropython, and not ulab. The power operator is not implemented for complex arrays. See #456 (comment) .
| /docs/manual/source/**/*.pyi | ||
| /docs/.ipynb_checkpoints/ | ||
| /docs/ulab-test.ipynb | ||
| /code/.atom-build.yml |
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.
I would not like to add user-specific .gitignore files to the repository.
Indeed. Thanks for pointing this out. I have fixed it. |
Some initial tests for Complex. Currently np.sqrt returns an incorrect value.