Skip to content

Commit 57b5e82

Browse files
committed
axes -> ax in function
1 parent aab5fd4 commit 57b5e82

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
1515
[compat]
1616
ArrayLayouts = "0.6.3"
1717
BandedMatrices = "0.16.8"
18-
BlockArrays = "0.15"
18+
BlockArrays = "0.15.2"
1919
FillArrays = "0.11"
2020
MatrixFactorizations = "0.7.1, 0.8"
2121
julia = "1.5"

src/BlockSkylineMatrix.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ checkbandwidths(N, M, l::AbstractVector{Int}, u::AbstractVector{Int}) =
33
throw(DimensionMismatch("For a matrix of $(N)×$(M) blocks, $(M) lower and upper column bandwidths are required"))
44

55
#### Routines for BandedSizes
6-
function bb_blockstarts(axes, l::AbstractVector{Int}, u::AbstractVector{Int})
7-
N,M = blocksize.(axes,1)
6+
function bb_blockstarts(ax, l::AbstractVector{Int}, u::AbstractVector{Int})
7+
N,M = blocksize.(ax,1)
88
L,U = maximum(l), maximum(u)
99
b_start = BandedMatrix{Int}(undef, (N, M), (L, U))
1010
-L > U && return b_start
@@ -15,10 +15,10 @@ function bb_blockstarts(axes, l::AbstractVector{Int}, u::AbstractVector{Int})
1515
for J = 1:M
1616
KR = Block.(max(1,J-u[J]):min(J+l[J],N))
1717
if !isempty(KR)
18-
b_start[Int.(KR),J] .= ind_shift .+ first.(getindex.(Ref(axes[1]),KR)) .- first(axes[1][KR[1]]) .+ 1
18+
b_start[Int.(KR),J] .= ind_shift .+ first.(getindex.(Ref(ax[1]),KR)) .- first(ax[1][KR[1]]) .+ 1
1919

20-
num_rows = length(axes[1][KR])
21-
num_cols = length(axes[2][Block(J)])
20+
num_rows = length(ax[1][KR])
21+
num_cols = length(ax[2][Block(J)])
2222
ind_shift += num_rows*num_cols
2323
end
2424
end

test/test_blockbanded.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import Base.Broadcast: materialize!
3535
N = M = 4
3636
cols = rows = 1:N
3737
A = BlockBandedMatrix{Int}(undef, rows,cols, (l,u))
38-
A.data .= 1:length(A.data)
38+
A.data .= 1:70
3939

4040
@test A[1,1] == 1
4141
@test A[1,3] == 10

0 commit comments

Comments
 (0)