Skip to content

Allocations in LSR1 push! #387

@MaxenceGollier

Description

@MaxenceGollier

MRE

using LinearOperators
using LinearAlgebra

lsr1_op = LSR1Operator(Float64, 10)
y1 = randn(10)
s1 = randn(10)

println(@allocated push!(lsr1_op, y1, s1))

y2 = randn(10)
s2 = randn(10)

println(@allocated push!(lsr1_op, y2, s2))

results in

288
720

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions