JuliaArrays/StaticArrays.jl

Provide isless

Open

#367 opened on 2018年2月16日

GitHub で見る
 (9 comments) (0 reactions) (0 assignees)Julia (839 stars) (154 forks)batch import
featuregood first issue

説明

For tuples there is

(1, 2) < (1, 3) #true

Would it make sense to have it for SVectors as well?

SVector(1, 2) < SVector(1, 3) # ERROR: MethodError: no method matching isless(::SVector{2,Int64}, ::SVector{2,Int64})

My use case is to sort a long Vector of small SVector elements.

コントリビューターガイド