|
310 | 310 | BI,BJ = findblockindex.(axes(A), (i,j)) |
311 | 311 | if -A.l ≤ Int(block(BJ)-block(BI)) ≤ A.u |
312 | 312 | V = view(A, block(BI),block(BJ)) |
313 | | - @inbounds V[blockindex(BI),blockindex(BJ)] = convert(T, v)::T |
| 313 | + @inbounds V[blockindex(BI),blockindex(BJ)] = convert(T, v)::T |
314 | 314 | elseif !iszero(v) |
315 | 315 | throw(BandError(A)) |
316 | 316 | end |
@@ -462,13 +462,13 @@ function blockbandwidths(V::SubArray{<:Any,2,<:Any,<:Tuple{<:BlockSlice{<:BlockR |
462 | 462 | end |
463 | 463 |
|
464 | 464 |
|
465 | | -const BandedBlockBandedBlock{T, BLOCKS, RAXIS} = SubArray{T,2,BandedBlockBandedMatrix{T, BLOCKS, RAXIS},<:Tuple{<:BlockSlice1,<:BlockSlice1},false} |
| 465 | +const BandedBlockBandedBlock{T, BLOCKS, RAXIS} = SubArray{T,2,BandedBlockBandedMatrix{T, BLOCKS, RAXIS},<:Tuple{<:BlockSlice{Block1},<:BlockSlice{Block1}},false} |
466 | 466 |
|
467 | 467 |
|
468 | 468 | BroadcastStyle(::Type{<: BandedBlockBandedBlock}) = BandedStyle() |
469 | 469 |
|
470 | 470 |
|
471 | | -function inblockbands(V::SubArray{<:Any,2,<:AbstractMatrix,<:Tuple{<:BlockSlice1,<:BlockSlice1},false}) |
| 471 | +function inblockbands(V::SubArray{<:Any,2,<:AbstractMatrix,<:Tuple{<:BlockSlice{Block1},<:BlockSlice{Block1}},false}) |
472 | 472 | A = parent(V) |
473 | 473 | K_sl, J_sl = parentindices(V) |
474 | 474 | K, J = K_sl.block, J_sl.block |
@@ -502,7 +502,7 @@ parentblocks2Int(V::BandedBlockBandedBlock)::Tuple{Int,Int} = Int(first(parentin |
502 | 502 | ###################################### |
503 | 503 | # BandedMatrix interface for Blocks # |
504 | 504 | ###################################### |
505 | | -@inline function bandwidths(V::SubArray{T,2,<:AbstractMatrix,<:Tuple{BlockSlice1,BlockSlice1}}) where T |
| 505 | +@inline function bandwidths(V::SubArray{T,2,<:AbstractMatrix,<:Tuple{BlockSlice{Block1},BlockSlice{Block1}}}) where T |
506 | 506 | inblockbands(V) && return subblockbandwidths(parent(V)) |
507 | 507 | (-720,-720) |
508 | 508 | end |
|
0 commit comments