Skip to content

Commit 4f5959d

Browse files
committed
Rework offset-axes check in three-arg conv
1 parent f7fb84c commit 4f5959d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/dspbase.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,9 @@ Uses 2-D FFT algorithm.
792792
"""
793793
function conv(u::AbstractVector{T}, v::Transpose{T,<:AbstractVector}, A::AbstractMatrix{T}) where T
794794
# Arbitrary indexing offsets not implemented
795-
@assert !Base.has_offset_axes(u, v, A)
795+
if any(conv_with_offset, (axes(u)..., axes(v)..., axes(A)...))
796+
throw(ArgumentError("offset axes not supported"))
797+
end
796798
m = length(u)+size(A,1)-1
797799
n = length(v)+size(A,2)-1
798800
B = zeros(T, m, n)

0 commit comments

Comments
 (0)