Skip to content

Commit

Permalink
More AbstractArray
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffFessler committed Jul 1, 2020
1 parent 083072e commit ce98d7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/mod/Transforms.jl
Expand Up @@ -484,7 +484,7 @@ end # begin
end # for

# Array with shared memory
function unsafe_vectorslice(A::Array{T}, i::Int, n::Int) where T
function unsafe_vectorslice(A::AbstractArray{T}, i::Int, n::Int) where T
return unsafe_wrap(Array, pointer(A, i), n)::Vector{T}
end

Expand Down
4 changes: 2 additions & 2 deletions src/mod/transforms_filter.jl
Expand Up @@ -82,7 +82,7 @@ function unsafe_dwt1level!(y::AbstractVector{<:Number}, x::AbstractVector{<:Numb
return y
end

function dwt_transform_strided!(y::Array{<:Number}, x::AbstractArray{<:Number},
function dwt_transform_strided!(y::AbstractArray{<:Number}, x::AbstractArray{<:Number},
msub::Int, nsub::Int, stride::Int, idx_func::Function,
tmpvec::Vector{T}, tmpvec2::Vector{T},
filter::OrthoFilter, fw::Bool,
Expand All @@ -95,7 +95,7 @@ function dwt_transform_strided!(y::Array{<:Number}, x::AbstractArray{<:Number},
end
end

function dwt_transform_cols!(y::Array{<:Number}, x::AbstractArray{<:Number},
function dwt_transform_cols!(y::AbstractArray{<:Number}, x::AbstractArray{<:Number},
msub::Int, nsub::Int, idx_func::Function,
tmpvec::Vector{T},
filter::OrthoFilter, fw::Bool,
Expand Down

0 comments on commit ce98d7c

Please sign in to comment.