-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question : Finding the bandwidth of a matrix #247
Comments
julia> using SparseArrays
julia> sparse(A)
6×6 SparseMatrixCSC{Float64, Int64} with 12 stored entries:
2.0 5.0 5.0 ⋅ ⋅ ⋅
2.0 5.0 5.0 ⋅ ⋅ ⋅
2.0 5.0 5.0 ⋅ ⋅ ⋅
⋅ ⋅ ⋅ 8.0 ⋅ ⋅
⋅ ⋅ ⋅ ⋅ 8.0 ⋅
⋅ ⋅ ⋅ ⋅ ⋅ 8.0
julia> sparse(A) |> bandwidths
(2, 2) Why are you expecting |
yeah, I agree it must be (2, 2) not (3,3). It is working for I confirm the same behavior with the new version of the package. |
|
How can you get the |
|
Maybe it needs info in the docs because, for example, rank of a dense matrix is slow, based on svdvals, but it could have been "generically" full. Contrast that to rank of a LowRankMatrix which is fast and structural by the type. |
If you make a PR to the docs I’ll merge it |
I am trying to get the bandwidth of a matrix using BandedMatrices.jl in the following manner.
It is giving (5,5) while I am expecting (3,3).
Please let me know the right procedure for getting the bandwidth of a given matrix.
Thanks in advance.
The text was updated successfully, but these errors were encountered: