Skip to content

Commit e08f229

Browse files
authored
Support sub_materialize(::Number) (#75)
1 parent a36ee82 commit e08f229

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-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.7.4"
4+
version = "0.7.5"
55

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

src/ArrayLayouts.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ include("factorizations.jl")
101101
@inline sub_materialize(_, V, _) = Array(V)
102102
@inline sub_materialize(L, V) = sub_materialize(L, V, axes(V))
103103
@inline sub_materialize(V::SubArray) = sub_materialize(MemoryLayout(V), V)
104-
@inline sub_materialize(V::AbstractArray) = V # Anything not a SubArray is already materialized
104+
@inline sub_materialize(V) = V # Anything not a SubArray is already materialized
105105

106106
copy(A::SubArray{<:Any,N,<:LayoutArray}) where N = sub_materialize(A)
107107
copy(A::SubArray{<:Any,N,<:AdjOrTrans{<:Any,<:LayoutArray}}) where N = sub_materialize(A)

0 commit comments

Comments
 (0)