Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
jishnub committed Mar 10, 2024
1 parent 55f522b commit 9e218aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/test_indexing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,7 @@ import BandedMatrices: rowstart, rowstop, colstart, colstop,
@test bs.indices == diagind(A, k)
@test bs.band == Band(k)
@test collect(bs) == collect(diagind(A, k))
@test view(bs, 1:length(bs)) === view(diagind(A, k), 1:length(bs))
@test Vector{eltype(A)}(V) == collect(V) == A[diagind(A,k)] == A[band(k)]
@test Vector{ComplexF64}(V) == Vector{ComplexF64}(A[diagind(A,k)]) ==
convert(AbstractVector{ComplexF64}, V) == convert(AbstractArray{ComplexF64}, V)
Expand Down

0 comments on commit 9e218aa

Please sign in to comment.