Skip to content

numpy.fromfunction equivalent #2558

Open
@james-mxr

Description

@james-mxr

Example;

import numpy as np
np.fromfunction(lambda i, j: i == j, (2, 3), dtype=int)

Would be nice to have an inbuilt equivalent.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions