Skip to content

Commit 7172048

Browse files
authored
Support LayoutMatrix / Diagonal (#93)
1 parent ff50b2c commit 7172048

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ArrayLayouts"
22
uuid = "4c555306-a7a7-4459-81d9-ec55ddd5c99a"
33
authors = ["Sheehan Olver <[email protected]>"]
4-
version = "0.8.3"
4+
version = "0.8.4"
55

66
[deps]
77
FillArrays = "1a297f60-69ca-5386-bcde-b61e274b549b"

src/ldiv.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ macro _layoutldiv(Typ)
158158
Base.:/(A::$Typ, x::AbstractMatrix) = ArrayLayouts.rdiv(A,x)
159159

160160
Base.:/(x::AbstractMatrix, A::$Typ) = ArrayLayouts.rdiv(x,A)
161-
Base.:/(x::Diagonal, A::$Typ) = ArrayLayouts.rdiv(x,A)
161+
Base.:/(D::Diagonal, A::$Typ) = ArrayLayouts.rdiv(D,A)
162+
Base.:/(A::$Typ, D::Diagonal) = ArrayLayouts.rdiv(A,D)
162163

163164
Base.:/(x::$Typ, A::$Typ) = ArrayLayouts.rdiv(x,A)
164165
end

test/test_layoutarray.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ MemoryLayout(::Type{MyVector}) = DenseColumnMajor()
262262
@test D\ Matrix(D)\
263263
@test\D \Matrix(D)
264264
@test D\\D
265+
@test/D /Matrix(D)
265266
end
266267

267268
@testset "Adj/Trans" begin

0 commit comments

Comments
 (0)