QuantEcon/QuantEcon.jl

LQ name conflict

Open

#229 geöffnet am 11. Dez. 2018

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Julia (300 Forks)batch import
bughelp wanted

Repository-Metriken

Stars
 (495 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 1T 1h) (2 gemergte PRs in 30 T)

Beschreibung

Now that Julia has an LQ type (in the LinearAlgebra stdlib), there's a name conflict with the type exported by the package.

One way to handle this would be to change the following to ... struct LQProblem with the appropriate constructor.

mutable struct LQ
    Q::ScalarOrArray
    R::ScalarOrArray
    A::ScalarOrArray
    B::ScalarOrArray
    C::ScalarOrArray
    N::ScalarOrArray
    bet::Real
    capT::Union{Int, Nothing} # terminal period
    rf::ScalarOrArray
    P::ScalarOrArray
    d::Real
    F::ScalarOrArray # policy rule
end

https://github.com/QuantEcon/lecture-source-jl/issues/436

Contributor Guide