object IdealInt
- Alphabetic
- By Inheritance
- IdealInt
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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
- val MINUS_ONE: IdealInt
- val ONE: IdealInt
- val ZERO: IdealInt
- def apply(intString: String, b: Int): IdealInt
Translates the String representation of an
IdealInt
with baseb
into anIdealInt
. - def apply(intString: String): IdealInt
Translates the decimal String representation of an
IdealInt
into anIdealInt
. - def apply(i: BigInteger): IdealInt
- def apply(i: Long): IdealInt
- def apply(i: Int): IdealInt
Constructs a
IdealInt
whose value is equal to that of the specified integer value. - final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def gcd(vals: Iterator[IdealInt]): IdealInt
The gcd of a collection of
IdealInt
. - def gcd(vals: Iterable[IdealInt]): IdealInt
The gcd of a collection of
IdealInt
. - def gcdAndCofactors(vals: Seq[IdealInt]): (IdealInt, Seq[IdealInt])
Extended Euclidean algorithm for computing both the gcd and the cofactors of a sequence of
IdealInt
. - def gcdAndCofactors(_a: IdealInt, _b: IdealInt): (IdealInt, IdealInt, IdealInt)
Extended Euclidean algorithm for computing both the gcd and the cofactors of two
IdealInt
. - final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- implicit def int2idealInt(i: Int): IdealInt
Implicit conversion from
Int
toIdealInt
. - final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def lcm(vals: Iterator[IdealInt]): IdealInt
The lcm of a collection of
IdealInt
. - def lcm(vals: Iterable[IdealInt]): IdealInt
The lcm of a collection of
IdealInt
. - def log2(n: IdealInt): Option[Int]
If
n = 2^k
, returnSome(k)
, otherwiseNone
. - implicit def long2idealInt(l: Long): IdealInt
Implicit conversion from
Long
toIdealInt
- def max(els: Iterable[IdealInt]): IdealInt
- def max(it: Iterator[IdealInt]): IdealInt
Compute the maximum of a sequence of
IdealInt
.Compute the maximum of a sequence of
IdealInt
. If the sequence is empty,ZERO
is returned - def min(els: Iterable[IdealInt]): IdealInt
- def min(it: Iterator[IdealInt]): IdealInt
Compute the maximum of a sequence of
IdealInt
.Compute the maximum of a sequence of
IdealInt
. If the sequence is empty,ZERO
is returned - final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def parseString(intString: String): Option[IdealInt]
- def pow2(exp: IdealInt): IdealInt
Compute
2^exp
. - def pow2(exp: Int): IdealInt
Compute
2^exp
. - def pow2MinusOne(exp: IdealInt): IdealInt
Compute
2^exp - 1
. - def pow2MinusOne(exp: Int): IdealInt
Compute
2^exp - 1
. - def pow2Mod(exp: IdealInt, modulus: IdealInt): IdealInt
Compute
2^exp % modulus
. - def sum(it: Iterator[IdealInt]): IdealInt
- def sum(it: Iterable[IdealInt]): IdealInt
Compute the sum of a sequence of
IdealInt
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unapply(n: IdealInt): Option[Int]
Extract a 32-bit integer from an
IdealInt
. - final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- implicit object IdealIntIsIntegral extends Integral[IdealInt]
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)