You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/bases/bases.jl
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -239,8 +239,25 @@ function plan_transform_layout(lay, L, szs::NTuple{N,Union{Int,Block{1}}}, dims=
239
239
InvPlan(mapfactorize(L, dimsz), dims)
240
240
end
241
241
plan_transform_layout(::MappedBasisLayout, L, szs::NTuple{N,Union{Int,Block{1}}}, dims=ntuple(identity,Val(N))) where N =plan_transform(demap(L), szs, dims)
242
+
243
+
"""
244
+
plan_transform(basis, (n₁,…,nₘ), [dims])
245
+
246
+
plans a transform applying the transform to an array specified by the
247
+
sizes `(n₁,…,nₘ)`. If `nₖ` is an integer then this gives the size in that dimension.
248
+
If `nₖ` is a `Block` then the array in that dimension is specified by `axes(basis,1)[Block.(Base.oneto(nₖ)]`.
249
+
The array it acts on should correspond to samples on the points specified by `grid(basis, (n₁,…,nₘ))`.
250
+
251
+
If `dims` is an integer or tuple of integers then the transform is only applied to that dimension.
252
+
If `dims` is omitted then every dimension is transformed.
253
+
"""
242
254
plan_transform(L, szs::NTuple{N,Union{Int,Block{1}}}, dims=ntuple(identity,Val(N))) where N =plan_transform_layout(MemoryLayout(L), L, szs, dims)
243
255
256
+
"""
257
+
plan_transform(basis, A::AbstractArray, [dims])
258
+
259
+
is equivalent to `plan_transform(basis, size(A), [dims])`.
0 commit comments