Skip to content

Stackoverflow with QR #114

Closed
Closed
@Kolaru

Description

@Kolaru

Using j′vp on a QR factorization result in a stackoverflow, like in the following example:

using FiniteDifferences
using LinearAlgebra

X = randn(5, 5)
j′vp(central_fdm(5, 1), X->qr(X).Q, randn(5, 5), X)

I believe it is due to the fact that vec(Q) return a Base.ReshapedArray (for Q, R = qr(X)).

Causes problem while testing JuliaDiff/ChainRules.jl#306

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