Skip to content

Error with Slogdet returning floats instead of arrays #799

Closed
@ricardoV94

Description

@ricardoV94

Description

import pytensor.tensor as pt

x = pt.matrix("x")
sign, logdet = pt.linalg.slogdet(x)
det = sign * pt.exp(logdet)
det.eval({x: [[1]]})  # ValueError: expected an ndarray

Also slogdet is not in tensor.nlinalg.__all__ and therefore doesn't show up in tensor.linalg

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions