Skip to content

Allocating lmul! #253

@rveltz

Description

@rveltz

Hi,

This is not really an issue. I am wondering if the following is expected to allocate:

julia> F = zeros(31,61);

julia> PS = FastSphericalHarmonics.plan_sph_synthesis(copy(F))
FastTransforms plan for FFTW Fourier synthesis on the sphere for 31×61-element array of Float64

julia> @time lmul!(PS,F);
  0.000356 seconds (147 allocations: 10.453 KiB)

julia> @time lmul!(PS,F);
  0.000368 seconds (147 allocations: 10.453 KiB)

I am trying to optimize FastSphericalHarmonics.sph_evaluate! by caching the plans and stumbled on this allocation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions