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},
|
||||
elt::GroupAlgebraElement{T})
|
||||
L = size(sqrt_matrix,2)
|
||||
result = @parallel (+) for i in 1:L
|
||||
square(sqrt_matrix[:,i], elt)
|
||||
n = size(sqrt_matrix,2)
|
||||
# result = zeros(T, length(elt.coefficients))
|
||||
result = @parallel (+) for i in 1:n
|
||||
square_as_elt(sqrt_matrix[:,i], elt)
|
||||
end
|
||||
return GroupAlgebraElement{T}(result, elt.product_matrix)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user