@@ -27,12 +27,12 @@ mutable struct GenericFunctionNodeData{T, S}
27
27
edgeIDs:: Array{Int,1}
28
28
frommodule:: S # Union{Symbol, AbstractString}
29
29
fnc:: T
30
- multihypo:: String # likely to moved when GenericWrapParam is refactored
30
+ multihypo:: Array{Float64} # likely to moved when GenericWrapParam is refactored
31
31
certainhypo:: Vector{Int}
32
32
solveInProgress:: Int
33
33
GenericFunctionNodeData {T, S} () where {T, S} = new {T,S} ()
34
- GenericFunctionNodeData {T, S} (x1, x2, x3, x4, x5:: S , x6:: T , x7 :: String = " " , x8 :: Vector{Int} = Int[], x9:: Int = 0 ) where {T, S} = new {T,S} (x1, x2, x3, x4, x5, x6, x7, x8 , x9)
35
- GenericFunctionNodeData (x1, x2, x3, x4, x5:: S , x6:: T , x7 :: String = " " , x8 :: Vector{Int} = Int[], x9:: Int = 0 ) where {T, S} = new {T,S} (x1, x2, x3, x4, x5, x6, x7, x8 , x9)
34
+ GenericFunctionNodeData {T, S} (x1, x2, x3, x4, x5:: S , x6:: T , multihypo :: Vector{<:Real} = Float64[], certainhypo :: Vector{Int} = Int[], x9:: Int = 0 ) where {T, S} = new {T,S} (x1, x2, x3, x4, x5, x6, multihypo, certainhypo , x9)
35
+ GenericFunctionNodeData (x1, x2, x3, x4, x5:: S , x6:: T , multihypo :: Vector{<:Real} = Float64[], certainhypo :: Vector{Int} = Int[], x9:: Int = 0 ) where {T, S} = new {T,S} (x1, x2, x3, x4, x5, x6, multihypo, certainhypo , x9)
36
36
# GenericFunctionNodeData(x1, x2, x3, x4, x5::S, x6::T, x7::String) where {T, S} = new{T,S}(x1, x2, x3, x4, x5, x6, x7)
37
37
end
38
38
43
43
44
44
# Simply for convenience - don't export, TODO Its used in IIF so maybe it should be exported
45
45
const PackedFunctionNodeData{T} = GenericFunctionNodeData{T, <: AbstractString }
46
- PackedFunctionNodeData (x1, x2, x3, x4, x5:: S , x6:: T , x7 :: String = " " , x8 :: Vector{Int} = Int[], x9:: Int = 0 ) where {T <: PackedInferenceType , S <: AbstractString } = GenericFunctionNodeData (x1, x2, x3, x4, x5, x6, x7, x8 , x9)
46
+ PackedFunctionNodeData (x1, x2, x3, x4, x5:: S , x6:: T , multihypo :: Vector{Float64} = [], certainhypo :: Vector{Int} = Int[], x9:: Int = 0 ) where {T <: PackedInferenceType , S <: AbstractString } = GenericFunctionNodeData (x1, x2, x3, x4, x5, x6, multihypo, certainhypo , x9)
47
47
const FunctionNodeData{T} = GenericFunctionNodeData{T, Symbol}
48
- FunctionNodeData (x1, x2, x3, x4, x5:: Symbol , x6:: T , x7 :: String = " " , x8 :: Vector{Int} = Int[], x9:: Int = 0 ) where {T <: Union{FunctorInferenceType, ConvolutionObject} }= GenericFunctionNodeData {T, Symbol} (x1, x2, x3, x4, x5, x6, x7, x8 , x9)
48
+ FunctionNodeData (x1, x2, x3, x4, x5:: Symbol , x6:: T , multihypo :: Vector{Float64} = [], certainhypo :: Vector{Int} = Int[], x9:: Int = 0 ) where {T <: Union{FunctorInferenceType, ConvolutionObject} }= GenericFunctionNodeData {T, Symbol} (x1, x2, x3, x4, x5, x6, multihypo, certainhypo , x9)
49
49
50
50
# #==============================================================================
51
51
# # Factors
0 commit comments