Skip to content

Commit e2798ad

Browse files
authored
Small adjustments to recent/future changes in LinAlg.jl (#139)
1 parent bd54341 commit e2798ad

File tree

7 files changed

+17
-17
lines changed

7 files changed

+17
-17
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "BlockBandedMatrices"
22
uuid = "ffab5731-97b5-5995-9138-79e8c1846df0"
3-
version = "0.11.9"
3+
version = "0.11.10"
44

55
[deps]
66
ArrayLayouts = "4c555306-a7a7-4459-81d9-ec55ddd5c99a"

src/BandedBlockBandedMatrix.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ end
613613
end
614614

615615

616-
BLAS.axpy!(a::T, A::BandedBlockBandedMatrix{T}, B::BandedBlockBandedMatrix{T}) where T =
616+
axpy!(a::T, A::BandedBlockBandedMatrix{T}, B::BandedBlockBandedMatrix{T}) where {T} =
617617
B .= a .* A .+ B
618618

619619

src/BlockBandedMatrices.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import Base: getindex, setindex!, checkbounds, @propagate_inbounds, convert,
1212
import Base.Broadcast: BroadcastStyle, AbstractArrayStyle, DefaultArrayStyle, Broadcasted, broadcasted,
1313
materialize, materialize!
1414

15-
import LinearAlgebra: UniformScaling, isdiag, rmul!, lmul!, ldiv!, rdiv!,
15+
import LinearAlgebra: UniformScaling, isdiag, rmul!, lmul!, ldiv!, rdiv!, axpy!,
1616
AbstractTriangular, AdjOrTrans, HermOrSym, StructuredMatrixStyle,
1717
qr, qr!
1818
import LinearAlgebra.BLAS: BlasInt, BlasFloat, @blasfunc, BlasComplex, BlasReal

test/test_bandedblockbanded.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -320,24 +320,24 @@ import ArrayLayouts: RangeCumsum
320320
V = view(A, Block(N,N))
321321

322322
AN = A[Block(N,N)]
323-
BLAS.axpy!(2.0, V, V)
323+
axpy!(2.0, V, V)
324324
@test A[Block(N,N)] 3AN
325325

326326

327327
Y = zeros(cols[N], cols[N])
328-
BLAS.axpy!(2.0, V, Y)
328+
axpy!(2.0, V, Y)
329329
@test Y 2A[Block(N,N)]
330330

331331
Y = BandedMatrix(Zeros(cols[N], cols[N]), (λ, μ))
332-
BLAS.axpy!(2.0, V, Y)
332+
axpy!(2.0, V, Y)
333333
@test Y 2A[Block(N,N)]
334334

335335
Y = BandedMatrix(Zeros(cols[N], cols[N]), (λ+1, μ+1))
336-
BLAS.axpy!(2.0, V, Y)
336+
axpy!(2.0, V, Y)
337337
@test Y 2A[Block(N,N)]
338338

339339
Y = BandedMatrix(Zeros(cols[N], cols[N]), (0, 0))
340-
@test_throws BandError BLAS.axpy!(2.0, V, Y)
340+
@test_throws BandError axpy!(2.0, V, Y)
341341
end
342342

343343
@testset "Float32" begin

test/test_blockbanded.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,14 +173,14 @@ import Base.Broadcast: materialize!
173173
@test MemoryLayout(typeof(V)) == ColumnMajor()
174174

175175
Y = zeros(cols[N], cols[N])
176-
@time BLAS.axpy!(2.0, V, Y)
176+
@time axpy!(2.0, V, Y)
177177
@test Y 2A[Block(N,N)]
178178

179179
Y = BandedMatrix(Zeros(cols[N], cols[N]), (0, 0))
180-
@test_throws BandError BLAS.axpy!(2.0, V, Y)
180+
@test_throws BandError axpy!(2.0, V, Y)
181181

182182
AN = A[Block(N,N)]
183-
@time BLAS.axpy!(2.0, V, V)
183+
@time axpy!(2.0, V, V)
184184
@test A[Block(N,N)] 3AN
185185

186186
A = BlockBandedMatrix(Ones{Float64}((4,6)), [2,2], [2,2,2], (0,2))

test/test_blockskylineqr.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import BlockBandedMatrices: blockcolsupport
1515
Q,R = F
1616
Q̃,R̃ = qr(Matrix(A))
1717
@test R
18-
@test Q
18+
@test Matrix(Q) Matrix(Q̃)
1919

2020
b = randn(size(A,1))
2121
@test Q'b 'b
@@ -37,7 +37,7 @@ import BlockBandedMatrices: blockcolsupport
3737
Q,R = F
3838
Q̃,R̃ = qr(Matrix(A))
3939
@test R
40-
@test Q
40+
@test Matrix(Q) Matrix(Q̃)
4141

4242
b = randn(size(A,1))
4343
@test Q'b 'b
@@ -60,7 +60,7 @@ import BlockBandedMatrices: blockcolsupport
6060
Q,R = F
6161
Q̃,R̃ = qr(Matrix(A))
6262
@test R
63-
@test Q
63+
@test Matrix(Q) Matrix(Q̃)
6464

6565
b = randn(size(A,1))
6666
@test Q'b 'b
@@ -83,7 +83,7 @@ import BlockBandedMatrices: blockcolsupport
8383
Q,L = F
8484
Q̃,L̃ = ql(Matrix(A))
8585
@test L
86-
@test Q
86+
@test Matrix(Q) Matrix(Q̃)
8787

8888
b = randn(size(A,1))
8989
@test Q'b 'b
@@ -182,7 +182,7 @@ import BlockBandedMatrices: blockcolsupport
182182
N = 5
183183
A = BlockBandedMatrix{BigFloat}(undef, 1:N,1:N, (2,1))
184184
A.data .= randn.()
185-
@test qr(A).Q qr(Float64.(A)).Q
185+
@test Matrix(qr(A).Q) Matrix(qr(Float64.(A)).Q)
186186
b = randn(size(A,1))
187187
@test qr(A .+ 0im)\b qr(A)\b A\b
188188
end

test/test_linalg.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ end
135135
@time AB = A + B
136136
@test AB Matrix(A) + Matrix(B)
137137

138-
@time BLAS.axpy!(1.0, A, B)
138+
@time axpy!(1.0, A, B)
139139
@test B AB
140140
end
141141

0 commit comments

Comments
 (0)