JuliaDecisionFocusedLearning / InferOpt.jl

Combinatorial optimization layers for machine learning pipelines
https://juliadecisionfocusedlearning.github.io/InferOpt.jl/
MIT License
113 stars 4 forks source link

Remove dispatch on `Real` #38

Closed gdalle closed 1 year ago

gdalle commented 1 year ago

Currently, most of our code deals with values $y$ or $\theta$ that are typed as AbstractArray{<:Real}. This restriction is not used for dispatch, so it is not essential, and may even prevent the use of other interesting number formats that do not subtype Real. I suggest we remove it