Skip to content

Commit c7db689

Browse files
authored
sub_materialize on axes (#3)
* Update ArrayLayouts.jl * Update Project.toml
1 parent 39b0b76 commit c7db689

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-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.1.2"
4+
version = "0.1.3"
55

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

src/ArrayLayouts.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ include("diagonal.jl")
6666
include("triangular.jl")
6767
include("factorizations.jl")
6868

69-
@inline sub_materialize(_, V) = Array(V)
69+
@inline sub_materialize(_, V, _) = Array(V)
70+
@inline sub_materialize(L, V) = sub_materialize(L, V, axes(V))
7071
@inline sub_materialize(V::SubArray) = sub_materialize(MemoryLayout(typeof(V)), V)
7172

7273
@inline lazy_getindex(A, I...) = sub_materialize(view(A, I...))

0 commit comments

Comments
 (0)