-
Notifications
You must be signed in to change notification settings - Fork 121
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
Tidy src/atoms/affine #538
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #538 +/- ##
==========================================
- Coverage 92.83% 92.73% -0.11%
==========================================
Files 86 86
Lines 5375 5310 -65
==========================================
- Hits 4990 4924 -66
- Misses 385 386 +1 ☔ View full report in Codecov by Sentry. |
end | ||
|
||
head(io::IO, ::ImaginaryAtom) = print(io, "imag") | ||
|
||
function Base.sign(x::ImaginaryAtom) | ||
# FIXME(odow): what is this? | ||
sign(x.children[1]) == ComplexSign() |
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.
Follow up later: I don't think this method is correct because this statement isn't used.
# add_subtract.jl | ||
# Handles unary negation, addition and subtraction of variables, constants | ||
# and expressions. | ||
# All expressions and atoms are subtpyes of AbstractExpr. |
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.
Is this not useful or has it be moved somewhere ?
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 didn't think it was useful. It's pretty obvious that NegateAtom
handles negation. And we really need a docstring for each atom with examples, rather than this vague comment in the file. But that's a separate PR...
Just some small formatting changes, mainly so I have an excuse to read through and understand the code.