@@ -491,15 +491,26 @@ import BandedMatrices: BandedStyle, BandedRows
491
491
@test b_ .* A_ == b_ .* Matrix (A_)
492
492
@test b_ .* A_ isa BandedMatrix
493
493
@test bandwidths (b_ .* A_) == bandwidths (A_)
494
+
494
495
@test b_' .* A_ == b_' .* Matrix (A_)
495
496
@test b_' .* A_ isa BandedMatrix
496
497
@test bandwidths (b_' .* A_) == bandwidths (A_)
498
+
499
+ @test permutedims (b_) .* A_ == permutedims (b_) .* Matrix (A_)
500
+ @test permutedims (b_) .* A_ isa BandedMatrix
501
+ @test bandwidths (permutedims (b_) .* A_) == bandwidths (A_)
502
+
497
503
@test A_ .* b_ == Matrix (A_) .* b_
498
504
@test A_ .* b_ isa BandedMatrix
499
505
@test bandwidths (A_ .* b_) == bandwidths (A_)
506
+
500
507
@test A_ .* b_' == Matrix (A_) .* b_'
501
508
@test A_ .* b_' isa BandedMatrix
502
509
@test bandwidths (A_ .* b_' ) == bandwidths (A_)
510
+
511
+ @test A_ .* permutedims (b_) == Matrix (A_) .* permutedims (b_)
512
+ @test A_ .* permutedims (b_) isa BandedMatrix
513
+ @test bandwidths (A_ .* permutedims (b_)) == bandwidths (A_)
503
514
end
504
515
505
516
# division tests currently don't deal with Inf/NaN correctly,
@@ -546,11 +557,17 @@ import BandedMatrices: BandedStyle, BandedRows
546
557
D_ .= b_' .* A_
547
558
@test D_ == b_' .* A_
548
559
560
+ D_ .= permutedims (b_) .* A_
561
+ @test D_ == permutedims (b_) .* A_
562
+
549
563
D_ .= A_ .* b_
550
564
@test D_ == A_ .* b_
551
565
552
566
D_ .= A_ .* b_'
553
567
@test D_ == A_ .* b_'
568
+
569
+ D_ .= A_ .* permutedims (b_)
570
+ @test D_ == A_ .* permutedims (b_)
554
571
end
555
572
end
556
573
end
0 commit comments