mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2024-08-14 17:26:57 +02:00
in-place projection to augmentation ideal
This commit is contained in:
parent
c4dcaf25fe
commit
8f88035bb7
@ -50,9 +50,9 @@ function compute_SOS(sqrt_matrix, elt::GroupRingElem)
|
|||||||
return GroupRingElem(result, parent(elt))
|
return GroupRingElem(result, parent(elt))
|
||||||
end
|
end
|
||||||
|
|
||||||
function correct_to_augmentation_ideal{T<:Rational}(sqrt_matrix::Array{T,2})
|
function correct_to_augmentation_ideal!{T<:Rational}(sqrt_matrix::Array{T,2})
|
||||||
l = size(sqrt_matrix, 2)
|
l = size(sqrt_matrix, 2)
|
||||||
sqrt_corrected = copy(sqrt_matrix)
|
sqrt_corrected = sqrt_matrix
|
||||||
Threads.@threads for j in 1:l
|
Threads.@threads for j in 1:l
|
||||||
col = sum(view(sqrt_matrix, :,j))//l
|
col = sum(view(sqrt_matrix, :,j))//l
|
||||||
for i in 1:l
|
for i in 1:l
|
||||||
|
Loading…
Reference in New Issue
Block a user