spire.algebra.Sign

SignAlgebra

trait SignAlgebra extends CMonoid[Sign] with Signed[Sign] with Order[Sign]

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SignAlgebra
  2. Order
  3. PartialOrder
  4. Eq
  5. Signed
  6. CMonoid
  7. CSemigroup
  8. Monoid
  9. Semigroup
  10. AnyRef
  11. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. def abs(a: Sign): Sign

    An idempotent function that ensures an object has a non-negative sign.

    An idempotent function that ensures an object has a non-negative sign.

    Definition Classes
    SignAlgebraSigned
  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def compare(x: Sign, y: Sign): Int

    Definition Classes
    SignAlgebraOrder
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def eqv(x: Sign, y: Sign): Boolean

    Returns true if x and y are equivalent, false otherwise.

    Returns true if x and y are equivalent, false otherwise.

    Definition Classes
    OrderPartialOrderEq
  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  13. def gt(x: Sign, y: Sign): Boolean

    Definition Classes
    OrderPartialOrder
  14. def gteqv(x: Sign, y: Sign): Boolean

    Definition Classes
    OrderPartialOrder
  15. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  16. def id: Sign

    Return the identity element for this monoid.

    Return the identity element for this monoid.

    Definition Classes
    SignAlgebraMonoid
  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. def isZero(a: Sign): Boolean

    Definition Classes
    Signed
  19. def lt(x: Sign, y: Sign): Boolean

    Definition Classes
    OrderPartialOrder
  20. def lteqv(x: Sign, y: Sign): Boolean

    Definition Classes
    OrderPartialOrder
  21. def max(x: Sign, y: Sign): Sign

    Definition Classes
    Order
  22. def min(x: Sign, y: Sign): Sign

    Definition Classes
    Order
  23. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  24. def neqv(x: Sign, y: Sign): Boolean

    Returns false if x and y are equivalent, true otherwise.

    Returns false if x and y are equivalent, true otherwise.

    Definition Classes
    Eq
  25. final def notify(): Unit

    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  27. def on[B](f: (B) ⇒ Sign): Order[B]

    Defines an order on B by mapping B to A using f and using As order to order B.

    Defines an order on B by mapping B to A using f and using As order to order B.

    Definition Classes
    OrderPartialOrderEq
  28. def op(a: Sign, b: Sign): Sign

    Definition Classes
    SignAlgebraSemigroup
  29. def partialCompare(x: Sign, y: Sign): Double

    Result of comparing x with y.

    Result of comparing x with y. Returns NaN if operands are not comparable. If operands are comparable, returns a Double whose sign is: - negative iff x < y - zero iff x === y - positive iff x > y

    Definition Classes
    OrderPartialOrder
  30. def pmax(x: Sign, y: Sign): Option[Sign]

    Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.

    Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.

    Definition Classes
    PartialOrder
  31. def pmin(x: Sign, y: Sign): Option[Sign]

    Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.

    Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.

    Definition Classes
    PartialOrder
  32. def reverse: Order[Sign]

    Defines an ordering on A where all arrows switch direction.

    Defines an ordering on A where all arrows switch direction.

    Definition Classes
    OrderPartialOrder
  33. def sign(a: Sign): Sign

    Returns Zero if a is 0, Positive if a is positive, and Negative is a is negative.

    Returns Zero if a is 0, Positive if a is positive, and Negative is a is negative.

    Definition Classes
    SignAlgebraSigned
  34. def signum(a: Sign): Int

    Returns 0 if a is 0, > 0 if a is positive, and < 0 is a is negative.

    Returns 0 if a is 0, > 0 if a is positive, and < 0 is a is negative.

    Definition Classes
    SignAlgebraSigned
  35. def sum(as: TraversableOnce[Sign]): Sign

    Given a sequence of as, sum them using the monoid and return the total.

    Given a sequence of as, sum them using the monoid and return the total.

    Definition Classes
    Monoid
  36. def sumOption(as: TraversableOnce[Sign]): Option[Sign]

    Given a sequence of as, sum them using the semigroup and return the total.

    Given a sequence of as, sum them using the semigroup and return the total.

    If the sequence is empty, returns None. Otherwise, returns Some(total).

    Definition Classes
    Semigroup
  37. def sumn(a: Sign, n: Int): Sign

    Return a combined with itself n times.

    Return a combined with itself n times.

    Definition Classes
    MonoidSemigroup
  38. def sumnAboveOne(a: Sign, n: Int): Sign

    Attributes
    protected
    Definition Classes
    Semigroup
  39. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  40. def toString(): String

    Definition Classes
    AnyRef → Any
  41. def tryCompare(x: Sign, y: Sign): Option[Int]

    Result of comparing x with y.

    Result of comparing x with y. Returns None if operands are not comparable. If operands are comparable, returns Some[Int] where the Int sign is: - negative iff x < y - zero iff x == y - positive iff x > y

    Definition Classes
    PartialOrder
  42. def tryGt(x: Sign, y: Sign): Option[Boolean]

    Definition Classes
    PartialOrder
  43. def tryGteqv(x: Sign, y: Sign): Option[Boolean]

    Definition Classes
    PartialOrder
  44. def tryLt(x: Sign, y: Sign): Option[Boolean]

    Definition Classes
    PartialOrder
  45. def tryLteqv(x: Sign, y: Sign): Option[Boolean]

    Definition Classes
    PartialOrder
  46. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Order[Sign]

Inherited from PartialOrder[Sign]

Inherited from Eq[Sign]

Inherited from Signed[Sign]

Inherited from CMonoid[Sign]

Inherited from CSemigroup[Sign]

Inherited from Monoid[Sign]

Inherited from Semigroup[Sign]

Inherited from AnyRef

Inherited from Any

Ungrouped