1
0
mirror of https://github.com/kalmarek/PropertyT.jl.git synced 2024-10-15 08:05:35 +02:00

@parallel compute_SOS

This commit is contained in:
kalmarek 2017-10-09 18:08:22 +02:00
parent 344e11a974
commit d7bc94b64c

View File

@ -36,17 +36,17 @@ function compute_SOS(sqrt_matrix, elt::GroupRingElem)
l = length(elt.coeffs)
pm = parent(elt).pm
result = zeros(eltype(sqrt_matrix), l)
for i in 1:n
result .+= groupring_square(view(sqrt_matrix,:,i), l, pm)
end
# @everywhere groupring_square = PropertyT.groupring_square
#
# result = @parallel (+) for i in 1:n
# groupring_square(view(sqrt_matrix,:,i), length(elt.coeffs), parent(elt).pm)
# result = zeros(eltype(sqrt_matrix), l)
# for i in 1:n
# result .+= groupring_square(view(sqrt_matrix,:,i), l, pm)
# end
@everywhere groupring_square = PropertyT.groupring_square
result = @parallel (+) for i in 1:n
groupring_square(view(sqrt_matrix,:,i), length(elt.coeffs), parent(elt).pm)
end
return GroupRingElem(result, parent(elt))
end