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/second_order_cone #541
Conversation
@@ -60,7 +50,8 @@ function rationalnorm(x::AbstractExpr, k::Rational{Int}) | |||
if row == 1 || col == 1 | |||
return RationalNormAtom(abs(x), k) | |||
end | |||
else | |||
return RationalNormAtom(x, k) | |||
# FIXME(odow): what happens if x is a matrix? |
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. The function previously returned nothing
if x
was a complex matrix.
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #541 +/- ##
==========================================
- Coverage 92.83% 92.71% -0.13%
==========================================
Files 86 86
Lines 5375 5326 -49
==========================================
- Hits 4990 4938 -52
- Misses 385 388 +3 ☔ View full report in Codecov by Sentry. |
|
||
## Create a new variable euc_norm to represent the norm |
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.
Maybe move it to a docstring ?
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.
This comment was outdated so I deleted it. The function did not in fact create a new variable euc_norm
to represent the norm. I think it mean t
, and okay, by reading the function I see it is building [t, x] in SOC
. I don't think it needs a comment saying that.
x-ref #538