QuantEcon/QuantEcon.jl

LQ name conflict

Open

#229 创建于 2018年12月11日

在 GitHub 查看
 (3 评论) (0 反应) (0 负责人)Julia (300 fork)batch import
bughelp wanted

仓库指标

Star
 (495 star)
PR 合并指标
 (平均合并 1天 1小时) (30 天内合并 2 个 PR)

描述

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

贡献者指南