spire.std

LongAlgebra

class LongAlgebra extends LongIsEuclideanRing with LongIsNRoot with LongIsReal with Serializable

Annotations
@SerialVersionUID()
Linear Supertypes
Serializable, Serializable, LongIsReal, LongIsSigned, LongOrder, IsIntegral[Long], IsReal[Long], Signed[Long], Order[Long], PartialOrder[Long], Eq[Long], LongIsNRoot, NRoot[Long], LongIsEuclideanRing, EuclideanRing[Long], CRing[Long], MultiplicativeCMonoid[Long], MultiplicativeCSemigroup[Long], Ring[Long], Rng[Long], AdditiveAbGroup[Long], AdditiveCMonoid[Long], AdditiveCSemigroup[Long], AdditiveGroup[Long], Rig[Long], MultiplicativeMonoid[Long], Semiring[Long], MultiplicativeSemigroup[Long], AdditiveMonoid[Long], AdditiveSemigroup[Long], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. LongAlgebra
  2. Serializable
  3. Serializable
  4. LongIsReal
  5. LongIsSigned
  6. LongOrder
  7. IsIntegral
  8. IsReal
  9. Signed
  10. Order
  11. PartialOrder
  12. Eq
  13. LongIsNRoot
  14. NRoot
  15. LongIsEuclideanRing
  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 LongAlgebra()

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: Long): Long

    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
    LongIsSignedSigned
  5. def additive: AbGroup[Long]

  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def ceil(a: Long): Long

    Definition Classes
    IsIntegralIsReal
  8. def clone(): AnyRef

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

    Definition Classes
    LongOrderOrder
  10. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  12. def eqv(x: Long, y: Long): Boolean

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

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

    Definition Classes
    LongOrderOrderPartialOrderEq
  13. final def euclid(a: Long, b: Long)(implicit eq: Eq[Long]): Long

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

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

    Definition Classes
    IsIntegralIsReal
  16. def fpow(a: Long, b: Long): Long

    Definition Classes
    LongIsNRootNRoot
  17. def fromInt(n: Int): Long

    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
    LongIsEuclideanRingRing
  18. def gcd(a: Long, b: Long): Long

    Definition Classes
    LongIsEuclideanRingEuclideanRing
  19. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  20. def gt(x: Long, y: Long): Boolean

    Definition Classes
    LongOrderOrderPartialOrder
  21. def gteqv(x: Long, y: Long): Boolean

    Definition Classes
    LongOrderOrderPartialOrder
  22. def hashCode(): Int

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

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

    Definition Classes
    MultiplicativeMonoid
  25. def isSignNegative(a: Long): Boolean

    Definition Classes
    Signed
  26. def isSignNonNegative(a: Long): Boolean

    Definition Classes
    Signed
  27. def isSignNonPositive(a: Long): Boolean

    Definition Classes
    Signed
  28. def isSignNonZero(a: Long): Boolean

    Definition Classes
    Signed
  29. def isSignPositive(a: Long): Boolean

    Definition Classes
    Signed
  30. def isSignZero(a: Long): Boolean

    Definition Classes
    Signed
  31. def isWhole(a: Long): Boolean

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

    Tests if a is zero.

    Tests if a is zero.

    Definition Classes
    AdditiveMonoid
  33. def lcm(a: Long, b: Long): Long

    Definition Classes
    EuclideanRing
  34. def log(a: Long): Long

    Definition Classes
    LongIsNRoot
  35. def lt(x: Long, y: Long): Boolean

    Definition Classes
    LongOrderOrderPartialOrder
  36. def lteqv(x: Long, y: Long): Boolean

    Definition Classes
    LongOrderOrderPartialOrder
  37. def max(x: Long, y: Long): Long

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

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

    Definition Classes
    LongIsEuclideanRingAdditiveGroup
  40. def mod(a: Long, b: Long): Long

    Definition Classes
    LongIsEuclideanRingEuclideanRing
  41. def multiplicative: CMonoid[Long]

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

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

    Definition Classes
    LongIsEuclideanRingAdditiveGroup
  44. def neqv(x: Long, y: Long): Boolean

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

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

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

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

    Definition Classes
    AnyRef
  47. def nroot(x: Long, n: Int): Long

    Definition Classes
    LongIsNRootNRoot
  48. def on[B](f: (B) ⇒ Long): 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
  49. def one: Long

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

    Definition Classes
    LongIsEuclideanRingAdditiveSemigroup
  52. def pmax(x: Long, y: Long): Option[Long]

    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 pmin(x: Long, y: Long): Option[Long]

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

    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
    LongIsEuclideanRingRigSemiring
  55. def prod(as: TraversableOnce[Long]): Long

    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
  56. def prodOption(as: TraversableOnce[Long]): Option[Long]

    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
  57. def prodn(a: Long, n: Int): Long

    Return a multiplied with itself n times.

    Return a multiplied with itself n times.

    Definition Classes
    MultiplicativeMonoidMultiplicativeSemigroup
  58. def prodnAboveOne(a: Long, n: Int): Long

    Attributes
    protected
    Definition Classes
    MultiplicativeSemigroup
  59. def quot(a: Long, b: Long): Long

    Definition Classes
    LongIsEuclideanRingEuclideanRing
  60. def quotmod(a: Long, b: Long): (Long, Long)

    Definition Classes
    EuclideanRing
  61. def reverse: Order[Long]

    Defines an ordering on A where all arrows switch direction.

    Defines an ordering on A where all arrows switch direction.

    Definition Classes
    OrderPartialOrder
  62. def round(a: Long): Long

    Definition Classes
    IsIntegralIsReal
  63. def sign(a: Long): 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
  64. def signum(a: Long): 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
    LongIsSignedSigned
  65. def sqrt(a: Long): Long

    Definition Classes
    NRoot
  66. def sum(as: TraversableOnce[Long]): Long

    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
  67. def sumOption(as: TraversableOnce[Long]): Option[Long]

    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
  68. def sumn(a: Long, n: Int): Long

    Return a added with itself n times.

    Return a added with itself n times.

    Definition Classes
    AdditiveGroupAdditiveMonoidAdditiveSemigroup
  69. def sumnAboveOne(a: Long, n: Int): Long

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

    Definition Classes
    AnyRef
  71. def times(a: Long, b: Long): Long

  72. def toDouble(n: Long): Double

    Definition Classes
    LongIsRealIsReal
  73. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  78. def zero: Long

    Definition Classes
    LongIsEuclideanRingAdditiveMonoid

Inherited from Serializable

Inherited from Serializable

Inherited from LongIsReal

Inherited from LongIsSigned

Inherited from LongOrder

Inherited from IsIntegral[Long]

Inherited from IsReal[Long]

Inherited from Signed[Long]

Inherited from Order[Long]

Inherited from PartialOrder[Long]

Inherited from Eq[Long]

Inherited from LongIsNRoot

Inherited from NRoot[Long]

Inherited from LongIsEuclideanRing

Inherited from EuclideanRing[Long]

Inherited from CRing[Long]

Inherited from MultiplicativeCMonoid[Long]

Inherited from MultiplicativeCSemigroup[Long]

Inherited from Ring[Long]

Inherited from Rng[Long]

Inherited from AdditiveAbGroup[Long]

Inherited from AdditiveCMonoid[Long]

Inherited from AdditiveCSemigroup[Long]

Inherited from AdditiveGroup[Long]

Inherited from Rig[Long]

Inherited from MultiplicativeMonoid[Long]

Inherited from Semiring[Long]

Inherited from MultiplicativeSemigroup[Long]

Inherited from AdditiveMonoid[Long]

Inherited from AdditiveSemigroup[Long]

Inherited from AnyRef

Inherited from Any

Ungrouped