You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.
julia> using StaticArrays
julia> v = SVector.([2,1,3],[1,2,3]);
julia> minimum(v)
2-element SArray{Tuple{2},Int64,1,2} with indices SOneTo(2):
1
2
julia> isnan(v[1])
ERROR: MethodError: no method matching isnan(::SArray{Tuple{2},Int64,1,2})
[...]
julia> using GeometryTypes
julia> minimum(v)
ERROR: DimensionMismatch("No precise constructor for SArray{Tuple{2},Int64,1,2} found. Length of input was 1.")
[...]
julia> isnan(v[1])
false
Looking at the code, it looks likes the new minimum is supposed to compute dimension-wise minimum but is failing.
I feel these minimum and isnan implementations are a bit questionable for points too. They don't really do what these functions are supposed to be doing. But they definitely shouldn't change the definition for StaticArrays.
The text was updated successfully, but these errors were encountered:
These methods are pirated for
StaticArray
types:Looking at the code, it looks likes the new
minimum
is supposed to compute dimension-wise minimum but is failing.I feel these
minimum
andisnan
implementations are a bit questionable for points too. They don't really do what these functions are supposed to be doing. But they definitely shouldn't change the definition forStaticArray
s.The text was updated successfully, but these errors were encountered: