Skip to content

Add from_diag constructor for Array2 #672

@rth

Description

@rth

Array.diag can returns the diagonal of an array, however I couldn't find the associated constructor i.e. to construct an array given it's diagonal.

In numpy this can be done with the np.diag function.

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