From 0ec6d560f40d6eb5ff2b1ccc89d7b86970165bde Mon Sep 17 00:00:00 2001 From: Rafael Schouten Date: Mon, 24 Aug 2020 21:47:43 +1000 Subject: [PATCH] return missing formatdims method --- src/dimension.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dimension.jl b/src/dimension.jl index f85100bac..3f47ad7ee 100644 --- a/src/dimension.jl +++ b/src/dimension.jl @@ -422,6 +422,7 @@ formatdims(A::AbstractArray{<:Any,N}, dims::Tuple{Vararg{<:Any,N}}) where N = _formatdims(axes(A), dims) formatdims(A::AbstractArray{<:Any,N}, dims::Tuple{Vararg{<:Any,M}}) where {N,M} = throw(DimensionMismatch("Array A has $N axes, while the number of dims is $M")) +formatdims(axes::Tuple, dims::Tuple) = _formatdims(axes, dims) _formatdims(axes::Tuple{Vararg{<:AbstractRange}}, dims::Tuple) =