Skip to content

Commit

Permalink
Remove comment #1
Browse files Browse the repository at this point in the history
  • Loading branch information
mfalt authored Jan 17, 2018
1 parent bc72b8c commit a29a58c
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/types/QuadraticForm.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,3 @@ end

+(qf1::QuadraticForm, qf2::QuadraticForm) = QuadraticForm(qf1.P+qf2.P, qf1.q+qf2.q, qf1.r+qf2.r)
==(qf1::QuadraticForm, qf2::QuadraticForm) = (qf1.P==qf2.P) && (qf1.q==qf2.q) && (qf1.r==qf2.r)

# function find_minimum_value{T}(qf::QuadraticForm{T})
# if qf.P[2] == qf.P[3] == qf.P[4] == zero(T)
# return -qf.q[1]^2/(4*qf.P[1])+qf.r
# elseif qf.P[1] == qf.P[2] == qf.P[3] == zero(T)
# return -qf.q[2]^2/(4*qf.P[4])+qf.r
# else #Assume P is not zero
# return -qf.q'*(qf.P\qf.q)/4 + qf.r
# end
# end

0 comments on commit a29a58c

Please sign in to comment.