Skip to content

Commit

Permalink
add getclist compat function
Browse files Browse the repository at this point in the history
  • Loading branch information
ulfworsoe committed Feb 25, 2019
1 parent 643125c commit 29829b7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/msk_functions_ext.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,16 @@ function optimize(task:: MSKtask, fallback :: String)
return optimize(task)
end
end

function getclist(task:: MSKtask, subj :: Vector{Int32})
n = length(subj)
r = Vector{Float64}(n)
for i in 1:n
r[i] = getcj(task, subj[i])
end
return r
end

function getclist(task:: MSKtask, subj :: Vector{T1}) where T1 <: Integer
return getclist(task,convert(Vector{Int32},subj))
end

0 comments on commit 29829b7

Please sign in to comment.