mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2024-12-26 18:40:29 +01:00
fix: can not assign in short-circut eval
This commit is contained in:
parent
7a39775fff
commit
94fd8f0bf9
@ -78,9 +78,11 @@ function init_orbit_data(logger, sett::Settings; radius=2)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function transform(U::AbstractArray, V::AbstractArray; sparse=false)
|
function transform(U::AbstractArray, V::AbstractArray; sparse=false)
|
||||||
w = U'*V*U
|
w = U'*V*U
|
||||||
sparse && w = sparsify(w)
|
if sparse
|
||||||
return w
|
w = sparsify(w)
|
||||||
|
end
|
||||||
|
return w
|
||||||
end
|
end
|
||||||
|
|
||||||
A(data::OrbitData, π, t) = data.dims[π]*transform(data.Us[π], data.cnstr[t], sparse=true)
|
A(data::OrbitData, π, t) = data.dims[π]*transform(data.Us[π], data.cnstr[t], sparse=true)
|
||||||
|
Loading…
Reference in New Issue
Block a user