add sparse kwarg to transform
This commit is contained in:
parent
c98e853268
commit
53ea594438
@ -97,10 +97,9 @@ function init_OrbitData(name::String)
|
|||||||
return m, orbData
|
return m, orbData
|
||||||
end
|
end
|
||||||
|
|
||||||
function transform{T}(U::AbstractArray{T,2}, V::AbstractArray{T,2}, eps=eps(T))
|
function transform{T}(U::AbstractArray{T,2}, V::AbstractArray{T,2}, eps=eps(T); sparse=true)
|
||||||
w = U'*V*U
|
w = U'*V*U
|
||||||
# sparsify!(w, eps)
|
sparse && sparsify!(w, eps)
|
||||||
# dropzeros!(w)
|
|
||||||
return w
|
return w
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user