Open CarpeNecopinum opened 4 years ago
Open for comments on e61718d. To pass the tests, I have to allow constructing a Simplex from a StaticVector of points if deleteat
can return one. But Simplex already had a constructor taking a StaticVector, which however interpreted that vector as a single point.
So I added a constructor that takes nested arrays and interprets them as an array of points again.
As noted in #127, all other variants of
vertices
return something<: AbstractVector
.To avoid runtime overhead, this PR uses an SVector to conform to that interface. Additionally, a Simplex can now be constructed from an SVector,
deleteat
has been extended to supportSVectors
and a type instability that occurred when callingvertexmat
with an SVector has been fixed.