mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2024-11-26 17:05:27 +01:00
cosmetic changes in compute_SOS
This commit is contained in:
parent
a060b4ed8b
commit
604aa3a6b5
@ -102,9 +102,10 @@ end
|
|||||||
|
|
||||||
function compute_SOS{T<:Number}(sqrt_matrix::Array{T,2},
|
function compute_SOS{T<:Number}(sqrt_matrix::Array{T,2},
|
||||||
elt::GroupAlgebraElement{T})
|
elt::GroupAlgebraElement{T})
|
||||||
L = size(sqrt_matrix,2)
|
n = size(sqrt_matrix,2)
|
||||||
result = @parallel (+) for i in 1:L
|
# result = zeros(T, length(elt.coefficients))
|
||||||
square(sqrt_matrix[:,i], elt)
|
result = @parallel (+) for i in 1:n
|
||||||
|
square_as_elt(sqrt_matrix[:,i], elt)
|
||||||
end
|
end
|
||||||
return GroupAlgebraElement{T}(result, elt.product_matrix)
|
return GroupAlgebraElement{T}(result, elt.product_matrix)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user