spire.optional
Type members
Classlikes
Represents a permutation encoded as a map from preimages to images, including only pairs that are moved by the permutation (so the identity is Map.empty).
Represents a permutation encoded as a map from preimages to images, including only pairs that are moved by the permutation (so the identity is Map.empty).
Note that although the preimage and image contain only moved points, the domain and range of a Perm is all integers. This acts as the identity for integers not in the image.
- Companion
- object
This provides an implicit Eq[A]
for any type A
using Scala's (Java's) ==
(equals
). This is generally
considered a bad idea, since it means you lose all type safety -- for instance, any 2 types can always be compared as
Eq[Any]
.
This provides an implicit Eq[A]
for any type A
using Scala's (Java's) ==
(equals
). This is generally
considered a bad idea, since it means you lose all type safety -- for instance, any 2 types can always be compared as
Eq[Any]
.
This provides orderings (Order and Eq) for Float and Double that have a total order. Specifically, this will order NaN's consistently, rather than having their order be undefined. However, this won't be as fast as the default ordering.
This provides orderings (Order and Eq) for Float and Double that have a total order. Specifically, this will order NaN's consistently, rather than having their order be undefined. However, this won't be as fast as the default ordering.
This object provides implicit instances of Eq and Order for Seq-likes that will behave like infinite vectors.
Essentially all this means is that Seq(0, 0, 0) === Seq()
, since both are infinite vectors of zeros. Any element
not explicitly set is implied to be 0.
This object provides implicit instances of Eq and Order for Seq-likes that will behave like infinite vectors.
Essentially all this means is that Seq(0, 0, 0) === Seq()
, since both are infinite vectors of zeros. Any element
not explicitly set is implied to be 0.