@@ -37,7 +37,7 @@ struct Metadata{
37
37
TIdcs<: Dict{<:VarName,Int} ,
38
38
TDists<: AbstractVector{<:Distribution} ,
39
39
TVN<: AbstractVector{<:VarName} ,
40
- TVal<: AbstractVector{<:Real } ,
40
+ TVal<: AbstractVector{<:Any } ,
41
41
}
42
42
# Mapping from the `VarName` to its integer index in `vns`, `ranges` and `dists`
43
43
idcs:: TIdcs # Dict{<:VarName,Int}
@@ -51,7 +51,7 @@ struct Metadata{
51
51
52
52
# Vector of values of all the univariate, multivariate and matrix variables
53
53
# The value(s) of `vn` is/are `vals[ranges[idcs[vn]]]`
54
- vals:: TVal # AbstractVector{<:Real }
54
+ vals:: TVal # AbstractVector{<:Any }
55
55
56
56
# Vector of distributions correpsonding to `vns`
57
57
dists:: TDists # AbstractVector{<:Distribution}
@@ -409,7 +409,7 @@ unflatten_metadata(vnv::VarNamedVector, x::AbstractVector) = unflatten(vnv, x)
409
409
Construct an empty type unstable instance of `Metadata`.
410
410
"""
411
411
function Metadata ()
412
- vals = Vector {Real } ()
412
+ vals = Vector {Any } ()
413
413
flags = Dict {String,BitVector} ()
414
414
flags[" del" ] = BitVector ()
415
415
flags[" trans" ] = BitVector ()
@@ -576,8 +576,8 @@ function merge_metadata(metadata_left::Metadata, metadata_right::Metadata)
576
576
T_right = eltype (metadata_right. vals)
577
577
T = promote_type (T_left, T_right)
578
578
# TODO : Is this necessary?
579
- if ! (T <: Real )
580
- T = Real
579
+ if ! (T <: Any )
580
+ T = Any
581
581
end
582
582
583
583
# Determine `eltype` of `dists`.
@@ -767,7 +767,7 @@ function getindex_internal(vi::NTVarInfo, ::Colon)
767
767
return reduce (vcat, map (Base. Fix2 (getindex_internal, Colon ()), vi. metadata))
768
768
end
769
769
function getindex_internal (vi:: VarInfo{NamedTuple{(),Tuple{}}} , :: Colon )
770
- return float (Real) []
770
+ return Any []
771
771
end
772
772
function getindex_internal (md:: Metadata , :: Colon )
773
773
return mapreduce (
0 commit comments