mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2024-11-22 16:05:27 +01:00
perm_avg → perm_avg!
This commit is contained in:
parent
70bf9ad74c
commit
ead95d20c3
@ -7,6 +7,7 @@ julia:
|
||||
- 1.0
|
||||
- 1.1
|
||||
- 1.2
|
||||
- 1.3
|
||||
- nightly
|
||||
notifications:
|
||||
email: true
|
||||
|
@ -147,7 +147,7 @@ function reconstruct(Ps::Vector{M},
|
||||
tmp = [zeros(Float64, size(first(transfP))) for _ in 1:lU]
|
||||
|
||||
Threads.@threads for π in 1:lU
|
||||
tmp[π] = perm_avg(tmp[π], transfP[π], values(preps))
|
||||
tmp[π] = perm_avg!(tmp[π], transfP[π], values(preps))
|
||||
end
|
||||
|
||||
recP = sum(tmp)./length(preps)
|
||||
@ -155,7 +155,7 @@ function reconstruct(Ps::Vector{M},
|
||||
return recP
|
||||
end
|
||||
|
||||
function perm_avg(result, P, perms)
|
||||
function perm_avg!(result, P, perms)
|
||||
lp = length(first(perms).d)
|
||||
for p in perms
|
||||
# result .+= view(P, p.d, p.d)
|
||||
|
Loading…
Reference in New Issue
Block a user