mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2024-12-27 02:45:30 +01:00
update ortSVD to "where" syntax
This commit is contained in:
parent
1825cc0b3d
commit
9c674ec284
@ -122,7 +122,7 @@ function Cstar_repr(x::GroupRingElem{T}, mreps::Dict) where {T}
|
||||
return sum(x[i].*mreps[parent(x).basis[i]] for i in findn(x.coeffs))
|
||||
end
|
||||
|
||||
function orthSVD{T}(M::AbstractMatrix{T})
|
||||
function orthSVD(M::AbstractMatrix{T}) where {T<:AbstractFloat}
|
||||
M = full(M)
|
||||
fact = svdfact(M)
|
||||
M_rank = sum(fact[:S] .> maximum(size(M))*eps(T))
|
||||
|
Loading…
Reference in New Issue
Block a user