I am trying to get the bandwidth of a matrix using BandedMatrices.jl in the following manner.
using BandedMatrices
A = [
2.0 5.0 5.0 0.0 0.0 0.0
2.0 5.0 5.0 0.0 0.0 0.0
2.0 5.0 5.0 0.0 0.0 0.0
0.0 0.0 0.0 8.0 0.0 0.0
0.0 0.0 0.0 0.0 8.0 0.0
0.0 0.0 0.0 0.0 0.0 8.0]
println(bandwidths(A))
It is giving (5,5) while the expected answer is (3,3).
Please let me know the right procedure for getting the bandwidth of a matrix.
Thanks in advance.