Filtering Arrays and Circulant Tensors

TransferFunctions.ind2subFunction
ind2sub(inds::DimsInteger, ind::Integer)

Convert a linear index ind to a subscript index for the array size inds.

source

Border Arrays

TransferFunctions.validextensionFunction
validextension(b::AbstractBorder, A::AbstractArray)

Returns the maximum padding extension that is valid for the border b and the parent array A.

julia> TF.validextension(TF.Circular(), ones(40,40))
((40, 40), (40, 40))

julia> TF.validextension(TF.Symmetric(), ones(40,40))
((39, 39), (39, 39))

julia> TF.validextension(TF.Fill(0), ones(40,40))
((9223372036854775807, 9223372036854775807), (9223372036854775807, 9223372036854775807))
source

To implement the IndexBorderMap, you need to implement the method

Base.getindexMethod
mapindex(b::IndexMapBorder{T}, A::AbstractArray{T,N}, I::Vararg{Int,N}) where {T,N}

Map the BorderArray index to a parent array index with the given scheme.

source