class SignAlgebra extends CMonoid[Sign] with Signed[Sign] with Order[Sign]
- Alphabetic
- By Inheritance
- SignAlgebra
- Order
- PartialOrder
- Eq
- Signed
- CMonoid
- CSemigroup
- Monoid
- Semigroup
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new SignAlgebra()
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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
- SignAlgebra → Signed
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
combine(as: TraversableOnce[Sign]): Sign
Given a sequence of
as, combine them using the monoid and return the total.Given a sequence of
as, combine them using the monoid and return the total.- Definition Classes
- Monoid
-
def
combineOption(as: TraversableOnce[Sign]): Option[Sign]
Given a sequence of
as, combine them using the semigroup and return the total.Given a sequence of
as, combine them using the semigroup and return the total.If the sequence is empty, returns None. Otherwise, returns Some(total).
- Definition Classes
- Semigroup
-
def
combinen(a: Sign, n: Int): Sign
Return
acombined with itselfntimes. -
def
combinenAboveOne(a: Sign, n: Int): Sign
- Attributes
- protected
- Definition Classes
- Semigroup
-
def
compare(x: Sign, y: Sign): Int
- Definition Classes
- SignAlgebra → Order
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
eqv(x: Sign, y: Sign): Boolean
Returns
trueifxandyare equivalent,falseotherwise.Returns
trueifxandyare equivalent,falseotherwise.- Definition Classes
- Order → PartialOrder → Eq
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
gt(x: Sign, y: Sign): Boolean
- Definition Classes
- Order → PartialOrder
-
def
gteqv(x: Sign, y: Sign): Boolean
- Definition Classes
- Order → PartialOrder
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
def
id: Sign
Return the identity element for this monoid.
Return the identity element for this monoid.
- Definition Classes
- SignAlgebra → Monoid
-
def
isId(a: Sign)(implicit ev: Eq[Sign]): Boolean
Tests if
ais the identity.Tests if
ais the identity.- Definition Classes
- Monoid
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isSignNegative(a: Sign): Boolean
- Definition Classes
- Signed
-
def
isSignNonNegative(a: Sign): Boolean
- Definition Classes
- Signed
-
def
isSignNonPositive(a: Sign): Boolean
- Definition Classes
- Signed
-
def
isSignNonZero(a: Sign): Boolean
- Definition Classes
- Signed
-
def
isSignPositive(a: Sign): Boolean
- Definition Classes
- Signed
-
def
isSignZero(a: Sign): Boolean
- Definition Classes
- Signed
-
def
lt(x: Sign, y: Sign): Boolean
- Definition Classes
- Order → PartialOrder
-
def
lteqv(x: Sign, y: Sign): Boolean
- Definition Classes
- Order → PartialOrder
-
def
max(x: Sign, y: Sign): Sign
- Definition Classes
- Order
-
def
min(x: Sign, y: Sign): Sign
- Definition Classes
- Order
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
neqv(x: Sign, y: Sign): Boolean
Returns
falseifxandyare equivalent,trueotherwise.Returns
falseifxandyare equivalent,trueotherwise.- Definition Classes
- Eq
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
on[B](f: (B) ⇒ Sign): Order[B]
Defines an order on
Bby mappingBtoAusingfand usingAs order to orderB.Defines an order on
Bby mappingBtoAusingfand usingAs order to orderB.- Definition Classes
- Order → PartialOrder → Eq
-
def
op(a: Sign, b: Sign): Sign
- Definition Classes
- SignAlgebra → Semigroup
-
def
partialCompare(x: Sign, y: Sign): Double
Result of comparing
xwithy.Result of comparing
xwithy. Returns NaN if operands are not comparable. If operands are comparable, returns a Double whose sign is: - negative iffx < y- zero iffx === y- positive iffx > y- Definition Classes
- Order → PartialOrder
-
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
-
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
-
def
reverse: Order[Sign]
Defines an ordering on
Awhere all arrows switch direction.Defines an ordering on
Awhere all arrows switch direction.- Definition Classes
- Order → PartialOrder
-
def
sign(a: Sign): Sign
Returns Zero if
ais 0, Positive ifais positive, and Negative isais negative.Returns Zero if
ais 0, Positive ifais positive, and Negative isais negative.- Definition Classes
- SignAlgebra → Signed
-
def
signum(a: Sign): Int
Returns 0 if
ais 0, > 0 ifais positive, and < 0 isais negative.Returns 0 if
ais 0, > 0 ifais positive, and < 0 isais negative.- Definition Classes
- SignAlgebra → Signed
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
tryCompare(x: Sign, y: Sign): Option[Int]
Result of comparing
xwithy.Result of comparing
xwithy. Returns None if operands are not comparable. If operands are comparable, returns Some[Int] where the Int sign is: - negative iffx < y- zero iffx == y- positive iffx > y- Definition Classes
- PartialOrder
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )