Skip to content

Commit d1d552a

Browse files
authored
whitespace fixes (#154)
1 parent 3149f4b commit d1d552a

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/linalg.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,4 +151,4 @@ MemoryLayout(V::SubBlockSkylineMatrix{T,LL,UU,BlockIndexRange1,BlockIndexRange1}
151151
# cholesky
152152
##
153153

154-
ArrayLayouts._cholesky(::AbstractBandedBlockBandedLayout, axes, A::Symmetric, piv::ArrayLayouts.CNoPivot=ArrayLayouts.CNoPivot(); check::Bool = true) = cholesky!(Symmetric(BlockBandedMatrix(parent(A)), Symbol(A.uplo)), piv; check = check)
154+
ArrayLayouts._cholesky(::AbstractBandedBlockBandedLayout, axes, A::Symmetric, piv::ArrayLayouts.CNoPivot=ArrayLayouts.CNoPivot(); check::Bool = true) = cholesky!(Symmetric(BlockBandedMatrix(parent(A)), Symbol(A.uplo)), piv; check = check)

test/test_blockskylineqr.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ import BlockBandedMatrices: blockcolsupport
167167
R = UpperTriangular(V)
168168
@test axes(R) == axes(V) == axes(F.factors)
169169
@test blocksize(R) == (N,N)
170-
@test @allocated(blocksize(R))  40
170+
@test @allocated(blocksize(R)) 40
171171
@test blockbandwidths(R) == (0,2)
172172
@test @allocated(blockbandwidths(R)) 40
173173
@test blockcolsupport(R,Block(4)) == Block.(2:4)

test/test_linalg.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,4 +184,4 @@ end
184184
@test Δ isa BandedBlockBandedMatrix
185185
@test cholesky(Symmetric(Δ)).U cholesky(Matrix(Δ)).U
186186
@test cholesky(Symmetric(Δ,:L)).U cholesky(Matrix(Δ)).U
187-
end
187+
end

test/test_misc.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ BlockBandedMatrices.subblockbandwidths(::MyBandedBlockBandedMatrix) = (1,1)
1111
Base.axes(A::MyBandedBlockBandedMatrix) = axes(A.A)
1212
function Base.getindex(A::MyBandedBlockBandedMatrix, k::Int, j::Int)
1313
Kk, Jj = findblockindex(axes(A,1), k), findblockindex(axes(A,2), j)
14-
-1  Int(block(Kk)-block(Jj))  1 || return 0.0
15-
-1  Int(blockindex(Kk)-blockindex(Jj))  1 || return 0.0
14+
-1 Int(block(Kk)-block(Jj)) 1 || return 0.0
15+
-1 Int(blockindex(Kk)-blockindex(Jj)) 1 || return 0.0
1616
A.A[k,j]
1717
end
1818

@@ -25,7 +25,7 @@ BlockBandedMatrices.blockbandwidths(::MyBlockBandedMatrix) = (1,1)
2525
Base.axes(A::MyBlockBandedMatrix) = axes(A.A)
2626
function Base.getindex(A::MyBlockBandedMatrix, k::Int, j::Int)
2727
Kk, Jj = findblockindex(axes(A,1), k), findblockindex(axes(A,2), j)
28-
-1  Int(block(Kk)-block(Jj))  1 || return 0.0
28+
-1 Int(block(Kk)-block(Jj)) 1 || return 0.0
2929
A.A[k,j]
3030
end
3131

0 commit comments

Comments
 (0)