Skip to content

Commit a29da61

Browse files
committed
Type stability
1 parent 33d64d1 commit a29da61

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/mokernels/moinput.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
MOInputIsotopicByFeatures(x::AbstractVector, out_dim::Integer)
2+
MOInputIsotopicByFeatures(x::AbstractVector, out_dim::Int)
33
44
`MOInputIsotopicByFeatures(x, out_dim)` has length `out_dim * length(x)`.
55
@@ -26,11 +26,11 @@ See [Inputs for Multiple Outputs](@ref) in the docs for more info.
2626
"""
2727
struct MOInputIsotopicByFeatures{S,T<:AbstractVector{S}} <: AbstractVector{Tuple{S,Int}}
2828
x::T
29-
out_dim::Integer
29+
out_dim::Int
3030
end
3131

3232
"""
33-
MOInputIsotopicByOutputs(x::AbstractVector, out_dim::Integer)
33+
MOInputIsotopicByOutputs(x::AbstractVector, out_dim::Int)
3434
3535
`MOInputIsotopicByOutputs(x, out_dim)` has length `length(x) * out_dim`.
3636
@@ -55,7 +55,7 @@ The first `length(x)` elements represent the inputs for the first output, the se
5555
"""
5656
struct MOInputIsotopicByOutputs{S,T<:AbstractVector{S}} <: AbstractVector{Tuple{S,Int}}
5757
x::T
58-
out_dim::Integer
58+
out_dim::Int
5959
end
6060

6161
const IsotopicMOInputsUnion = Union{MOInputIsotopicByFeatures,MOInputIsotopicByOutputs}
@@ -87,7 +87,7 @@ function Base.vcat(x::MOInputIsotopicByOutputs, y::MOInputIsotopicByOutputs)
8787
end
8888

8989
"""
90-
MOInput(x::AbstractVector, out_dim::Integer)
90+
MOInput(x::AbstractVector, out_dim::Int)
9191
9292
A data type to accommodate modelling multi-dimensional output data.
9393
`MOInput(x, out_dim)` has length `length(x) * out_dim`.

0 commit comments

Comments
 (0)