Skip to content

Make diagonal matrix with variables? #454

@sdwfrost

Description

@sdwfrost

If I have an expression such as the following:

@variables λ[nrates](t)

how do I construct a diagonal matrix from this (Diagonal from LinearAlgebra doesn't work OOTB)

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