Skip to content

Commit 2e9afa5

Browse files
committed
Avoid abstract types of fields in SupportVectors
1 parent a2085ea commit 2e9afa5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/LIBSVM.jl

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ export svmtrain, svmpredict, fit!, predict, transform,
1313
include("LibSVMtypes.jl")
1414
include("constants.jl")
1515

16-
struct SupportVectors{T,U}
16+
struct SupportVectors{T<:AbstractVector,U<:AbstractMatrix}
1717
l::Int32
1818
nSV::Vector{Int32}
19-
y::AbstractVector{T}
20-
X::AbstractMatrix{U}
19+
y::T
20+
X::U
2121
indices::Vector{Int32}
2222
SVnodes::Vector{SVMNode}
2323
end

0 commit comments

Comments
 (0)