Skip to content

Positivity check in PDiagMat and ScalMat constructors? #22

@dmbates

Description

@dmbates

At present there is no check for positivity of the arguments that will be on the diagonal of a PDiagMat or ScalMat. Probably a good idea to check that.

julia> using PDMats

julia> ScalMat(4,-1.5)
ScalMat(4,-1.5,-0.6666666666666666)

julia> PDiagMat([-1.,2.,-3.,4.])
PDiagMat(4,[-1.0,2.0,-3.0,4.0],[-1.0,0.5,-0.333333,0.25])

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