Skip to content

Commit baac056

Browse files
committed
Update ArrayLayouts.jl
1 parent d200d0f commit baac056

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ArrayLayouts.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ end
8181
abstract type LayoutArray{T,N} <: AbstractArray{T,N} end
8282
const LayoutMatrix{T} = LayoutArray{T,2}
8383
const LayoutVector{T} = LayoutArray{T,1}
84+
const LayoutVecOrMat{T} = Union{LayoutVector{T},LayoutMatrix{T}}
85+
const LayoutVecOrMats{T} = Union{LayoutVecOrMat{T},SubArray{T,1,<:LayoutVecOrMat},SubArray{T,2,<:LayoutVecOrMat}}
86+
8487

8588
## TODO: Following are type piracy which may be removed in Julia v1.5
8689
## No, it can't, because strides(::AdjointAbsMat) is defined only for real eltype!
@@ -374,9 +377,6 @@ end
374377
# printing
375378
###
376379

377-
const LayoutVecOrMat{T} = Union{LayoutVector{T},LayoutMatrix{T}}
378-
const LayoutVecOrMats{T} = Union{LayoutVecOrMat{T},SubArray{T,1,<:LayoutVecOrMat},SubArray{T,2,<:LayoutVecOrMat}}
379-
380380
layout_replace_in_print_matrix(_, A, i, j, s) =
381381
i in colsupport(A,j) ? s : Base.replace_with_centered_mark(s)
382382

0 commit comments

Comments
 (0)