QuantEcon/QuantEcon.jl

LQ name conflict

Open

#229 aberto em 11 de dez. de 2018

Ver no GitHub
 (3 comments) (0 reactions) (0 assignees)Julia (300 forks)batch import
bughelp wanted

Métricas do repositório

Stars
 (495 stars)
Métricas de merge de PR
 (Mesclagem média 1d 1h) (2 fundiu PRs em 30d)

Description

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

Guia do colaborador