11using BandedMatrices, BlockBandedMatrices, BlockArrays, LinearAlgebra, ArrayLayouts, Test
2+ import Base: oneto
23
34@testset " broadcasting" begin
45 @testset " general" begin
@@ -24,9 +25,9 @@ using BandedMatrices, BlockBandedMatrices, BlockArrays, LinearAlgebra, ArrayLayo
2425
2526 @testset " lmul!/rmul!" begin
2627 N = 10
27- A = BlockBandedMatrix {Float64} (undef, 1 : N, 1 : N , (1 ,1 ))
28+ A = BlockBandedMatrix {Float64} (undef, oneto (N), oneto (N) , (1 ,1 ))
2829 A. data .= randn .()
29- B = BlockBandedMatrix {Float64} (undef, 1 : N, 1 : N , (2 ,2 ))
30+ B = BlockBandedMatrix {Float64} (undef, oneto (N), oneto (N) , (2 ,2 ))
3031 B .= (- ). (A)
3132 @test similar (A) isa typeof (A)
3233 @test similar (A,Float64) isa typeof (A)
@@ -71,9 +72,9 @@ using BandedMatrices, BlockBandedMatrices, BlockArrays, LinearAlgebra, ArrayLayo
7172 @test 2.0 .\ A isa typeof (A)
7273 @test blockbandwidths (2 \ A) == blockbandwidths (2.0 .\ A) == blockbandwidths (A)
7374
74- A = BandedBlockBandedMatrix {Float64} (undef, 1 : N, 1 : N , (1 ,1 ),(1 ,1 ))
75+ A = BandedBlockBandedMatrix {Float64} (undef, oneto (N), oneto (N) , (1 ,1 ),(1 ,1 ))
7576 A. data .= randn .()
76- B = BandedBlockBandedMatrix {Float64} (undef, 1 : N, 1 : N , (2 ,2 ),(2 ,2 ))
77+ B = BandedBlockBandedMatrix {Float64} (undef, oneto (N), oneto (N) , (2 ,2 ),(2 ,2 ))
7778 B .= (- ). (A)
7879 @test similar (A) isa typeof (A)
7980 @test similar (A,Float64) isa typeof (A)
0 commit comments