Skip to content

LazyArray.compute() should honor out= param #503

@FrancescAlted

Description

@FrancescAlted

Right now this is not the case:

a = blosc2.ones(10)
out = blosc2.zeros(1)
lexpr = blosc2.lazyexpr("sum(a)")
print(lexpr.compute(out=out))
print(f"out = {out[:]}")

output:

10.0
out = [0.]

when it should be something like:

<blosc2.ndarray.NDArray object at 0x119052a90>
out = [10.]

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