spire.std

ByteAlgebra

class ByteAlgebra extends ByteIsEuclideanRing with ByteIsReal with Serializable

Annotations
@SerialVersionUID( 0L )
Linear Supertypes
Serializable, Serializable, ByteIsReal, ByteIsSigned, ByteOrder, IsIntegral[Byte], IsRational[Byte], IsAlgebraic[Byte], IsReal[Byte], Signed[Byte], Order[Byte], PartialOrder[Byte], Eq[Byte], ByteIsEuclideanRing, EuclideanRing[Byte], CRing[Byte], MultiplicativeCMonoid[Byte], MultiplicativeCSemigroup[Byte], Ring[Byte], Rng[Byte], AdditiveAbGroup[Byte], AdditiveCMonoid[Byte], AdditiveCSemigroup[Byte], AdditiveGroup[Byte], Rig[Byte], MultiplicativeMonoid[Byte], Semiring[Byte], MultiplicativeSemigroup[Byte], AdditiveMonoid[Byte], AdditiveSemigroup[Byte], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ByteAlgebra
  2. Serializable
  3. Serializable
  4. ByteIsReal
  5. ByteIsSigned
  6. ByteOrder
  7. IsIntegral
  8. IsRational
  9. IsAlgebraic
  10. IsReal
  11. Signed
  12. Order
  13. PartialOrder
  14. Eq
  15. ByteIsEuclideanRing
  16. EuclideanRing
  17. CRing
  18. MultiplicativeCMonoid
  19. MultiplicativeCSemigroup
  20. Ring
  21. Rng
  22. AdditiveAbGroup
  23. AdditiveCMonoid
  24. AdditiveCSemigroup
  25. AdditiveGroup
  26. Rig
  27. MultiplicativeMonoid
  28. Semiring
  29. MultiplicativeSemigroup
  30. AdditiveMonoid
  31. AdditiveSemigroup
  32. AnyRef
  33. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ByteAlgebra()

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

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

    Definition Classes
    Any
  6. def abs(a: Byte): Byte

    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
    ByteIsSignedSigned
  7. def additive: AbGroup[Byte]

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def ceil(a: Byte): Byte

    Rounds a the nearest integer that is greater than or equal to a.

    Rounds a the nearest integer that is greater than or equal to a.

    Definition Classes
    IsIntegralIsReal
  10. def clone(): AnyRef

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

    Definition Classes
    ByteOrderOrder
  12. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  14. def eqv(x: Byte, y: Byte): Boolean

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

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

    Definition Classes
    ByteOrderOrderPartialOrderEq
  15. final def euclid(a: Byte, b: Byte)(implicit eq: Eq[Byte]): Byte

    Attributes
    protected[this]
    Definition Classes
    EuclideanRing
    Annotations
    @tailrec()
  16. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def floor(a: Byte): Byte

    Rounds a the nearest integer that is less than or equal to a.

    Rounds a the nearest integer that is less than or equal to a.

    Definition Classes
    IsIntegralIsReal
  18. def fromInt(n: Int): Byte

    Defined to be equivalent to additive.sumn(one, n).

    Defined to be equivalent to additive.sumn(one, n). That is, n repeated summations of this ring's one, or -one if n is negative.

    Definition Classes
    ByteIsEuclideanRingRing
  19. def gcd(a: Byte, b: Byte): Byte

    Definition Classes
    ByteIsEuclideanRingEuclideanRing
  20. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  21. def gt(x: Byte, y: Byte): Boolean

    Definition Classes
    ByteOrderOrderPartialOrder
  22. def gteqv(x: Byte, y: Byte): Boolean

    Definition Classes
    ByteOrderOrderPartialOrder
  23. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  24. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  25. def isOne(a: Byte)(implicit ev: Eq[Byte]): Boolean

    Definition Classes
    MultiplicativeMonoid
  26. def isSignNegative(a: Byte): Boolean

    Definition Classes
    Signed
  27. def isSignNonNegative(a: Byte): Boolean

    Definition Classes
    Signed
  28. def isSignNonPositive(a: Byte): Boolean

    Definition Classes
    Signed
  29. def isSignNonZero(a: Byte): Boolean

    Definition Classes
    Signed
  30. def isSignPositive(a: Byte): Boolean

    Definition Classes
    Signed
  31. def isSignZero(a: Byte): Boolean

    Definition Classes
    Signed
  32. def isWhole(a: Byte): Boolean

    Returns true iff a is a an integer.

    Returns true iff a is a an integer.

    Definition Classes
    IsIntegralIsReal
  33. def isZero(a: Byte)(implicit ev: Eq[Byte]): Boolean

    Tests if a is zero.

    Tests if a is zero.

    Definition Classes
    AdditiveMonoid
  34. def lcm(a: Byte, b: Byte): Byte

    Definition Classes
    EuclideanRing
  35. def lt(x: Byte, y: Byte): Boolean

    Definition Classes
    ByteOrderOrderPartialOrder
  36. def lteqv(x: Byte, y: Byte): Boolean

    Definition Classes
    ByteOrderOrderPartialOrder
  37. def max(x: Byte, y: Byte): Byte

    Definition Classes
    Order
  38. def min(x: Byte, y: Byte): Byte

    Definition Classes
    Order
  39. def minus(a: Byte, b: Byte): Byte

    Definition Classes
    ByteIsEuclideanRingAdditiveGroup
  40. def mod(a: Byte, b: Byte): Byte

    Definition Classes
    ByteIsEuclideanRingEuclideanRing
  41. def multiplicative: CMonoid[Byte]

  42. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  43. def negate(a: Byte): Byte

    Definition Classes
    ByteIsEuclideanRingAdditiveGroup
  44. def neqv(x: Byte, y: Byte): Boolean

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

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

    Definition Classes
    ByteOrderEq
  45. final def notify(): Unit

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

    Definition Classes
    AnyRef
  47. def on[B](f: (B) ⇒ Byte): 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
  48. def one: Byte

  49. def partialCompare(x: Byte, y: Byte): 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
  50. def plus(a: Byte, b: Byte): Byte

    Definition Classes
    ByteIsEuclideanRingAdditiveSemigroup
  51. def pmax(x: Byte, y: Byte): Option[Byte]

    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
  52. def pmin(x: Byte, y: Byte): Option[Byte]

    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
  53. def pow(a: Byte, b: Int): Byte

    This is similar to Semigroup#pow, except that a pow 0 is defined to be the multiplicative identity.

    This is similar to Semigroup#pow, except that a pow 0 is defined to be the multiplicative identity.

    Definition Classes
    ByteIsEuclideanRingRigSemiring
  54. def prod(as: TraversableOnce[Byte]): Byte

    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
    MultiplicativeMonoid
  55. def prodOption(as: TraversableOnce[Byte]): Option[Byte]

    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
    MultiplicativeSemigroup
  56. def prodn(a: Byte, n: Int): Byte

    Return a multiplied with itself n times.

    Return a multiplied with itself n times.

    Definition Classes
    MultiplicativeMonoidMultiplicativeSemigroup
  57. def prodnAboveOne(a: Byte, n: Int): Byte

    Attributes
    protected
    Definition Classes
    MultiplicativeSemigroup
  58. def quot(a: Byte, b: Byte): Byte

    Definition Classes
    ByteIsEuclideanRingEuclideanRing
  59. def quotmod(a: Byte, b: Byte): (Byte, Byte)

    Definition Classes
    EuclideanRing
  60. def reverse: Order[Byte]

    Defines an ordering on A where all arrows switch direction.

    Defines an ordering on A where all arrows switch direction.

    Definition Classes
    OrderPartialOrder
  61. def round(a: Byte): Byte

    Rounds a to the nearest integer.

    Rounds a to the nearest integer.

    Definition Classes
    IsIntegralIsReal
  62. def sign(a: Byte): 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
    Signed
  63. def signum(a: Byte): 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
    ByteIsSignedSigned
  64. def sum(as: TraversableOnce[Byte]): Byte

    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
    AdditiveMonoid
  65. def sumOption(as: TraversableOnce[Byte]): Option[Byte]

    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
    AdditiveSemigroup
  66. def sumn(a: Byte, n: Int): Byte

    Return a added with itself n times.

    Return a added with itself n times.

    Definition Classes
    AdditiveGroupAdditiveMonoidAdditiveSemigroup
  67. def sumnAboveOne(a: Byte, n: Int): Byte

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

    Definition Classes
    AnyRef
  69. def times(a: Byte, b: Byte): Byte

  70. def toAlgebraic(a: Byte): Algebraic

    Definition Classes
    IsRationalIsAlgebraic
  71. def toBigInt(n: Byte): BigInt

    Definition Classes
    ByteIsRealIsIntegral
  72. def toDouble(n: Byte): Double

    Approximates a as a Double.

    Approximates a as a Double.

    Definition Classes
    ByteIsRealIsReal
  73. def toRational(a: Byte): Rational

    Definition Classes
    IsIntegralIsRational
  74. def toReal(a: Byte): Real

    Definition Classes
    IsAlgebraicIsReal
  75. def toString(): String

    Definition Classes
    AnyRef → Any
  76. def tryCompare(x: Byte, y: Byte): 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
  77. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  80. def zero: Byte

    Definition Classes
    ByteIsEuclideanRingAdditiveMonoid

Inherited from Serializable

Inherited from Serializable

Inherited from ByteIsReal

Inherited from ByteIsSigned

Inherited from ByteOrder

Inherited from IsIntegral[Byte]

Inherited from IsRational[Byte]

Inherited from IsAlgebraic[Byte]

Inherited from IsReal[Byte]

Inherited from Signed[Byte]

Inherited from Order[Byte]

Inherited from PartialOrder[Byte]

Inherited from Eq[Byte]

Inherited from ByteIsEuclideanRing

Inherited from EuclideanRing[Byte]

Inherited from CRing[Byte]

Inherited from MultiplicativeCMonoid[Byte]

Inherited from MultiplicativeCSemigroup[Byte]

Inherited from Ring[Byte]

Inherited from Rng[Byte]

Inherited from AdditiveAbGroup[Byte]

Inherited from AdditiveCMonoid[Byte]

Inherited from AdditiveCSemigroup[Byte]

Inherited from AdditiveGroup[Byte]

Inherited from Rig[Byte]

Inherited from MultiplicativeMonoid[Byte]

Inherited from Semiring[Byte]

Inherited from MultiplicativeSemigroup[Byte]

Inherited from AdditiveMonoid[Byte]

Inherited from AdditiveSemigroup[Byte]

Inherited from AnyRef

Inherited from Any

Ungrouped