@@ -38,7 +38,7 @@ struct Metadata{
38
38
TIdcs<: Dict{<:VarName,Int} ,
39
39
TDists<: AbstractVector{<:Distribution} ,
40
40
TVN<: AbstractVector{<:VarName} ,
41
- TVal<: AbstractVector{<:Real } ,
41
+ TVal<: AbstractVector{<:Any } ,
42
42
}
43
43
# Mapping from the `VarName` to its integer index in `vns`, `ranges` and `dists`
44
44
idcs:: TIdcs # Dict{<:VarName,Int}
@@ -52,7 +52,7 @@ struct Metadata{
52
52
53
53
# Vector of values of all the univariate, multivariate and matrix variables
54
54
# The value(s) of `vn` is/are `vals[ranges[idcs[vn]]]`
55
- vals:: TVal # AbstractVector{<:Real }
55
+ vals:: TVal # AbstractVector{<:Any }
56
56
57
57
# Vector of distributions correpsonding to `vns`
58
58
dists:: TDists # AbstractVector{<:Distribution}
@@ -483,7 +483,7 @@ unflatten_metadata(vnv::VarNamedVector, x::AbstractVector) = unflatten(vnv, x)
483
483
Construct an empty type unstable instance of `Metadata`.
484
484
"""
485
485
function Metadata ()
486
- vals = Vector {Real } ()
486
+ vals = Vector {Any } ()
487
487
flags = Dict {String,BitVector} ()
488
488
flags[" del" ] = BitVector ()
489
489
flags[" trans" ] = BitVector ()
@@ -662,8 +662,8 @@ function merge_metadata(metadata_left::Metadata, metadata_right::Metadata)
662
662
T_right = eltype (metadata_right. vals)
663
663
T = promote_type (T_left, T_right)
664
664
# TODO : Is this necessary?
665
- if ! (T <: Real )
666
- T = Real
665
+ if ! (T <: Any )
666
+ T = Any
667
667
end
668
668
669
669
# Determine `eltype` of `dists`.
@@ -855,7 +855,7 @@ function getindex_internal(vi::NTVarInfo, ::Colon)
855
855
return reduce (vcat, map (Base. Fix2 (getindex_internal, Colon ()), vi. metadata))
856
856
end
857
857
function getindex_internal (vi:: VarInfo{NamedTuple{(),Tuple{}}} , :: Colon )
858
- return float (Real) []
858
+ return Any []
859
859
end
860
860
function getindex_internal (md:: Metadata , :: Colon )
861
861
return mapreduce (
0 commit comments