Factors

case
class Factors(elements: Map[SafeLong, Int], sign: Sign) extends Decomposition[SafeLong] with Iterable[(SafeLong, Int)] with Ordered[Factors]
Companion
object
trait Serializable
trait Product
trait Equals
trait Ordered[Factors]
trait Comparable[Factors]
trait Iterable[(SafeLong, Int)]
trait IterableFactoryDefaults[(SafeLong, Int), Iterable]
trait IterableOps[(SafeLong, Int), Iterable, Iterable[(SafeLong, Int)]]
trait IterableOnceOps[(SafeLong, Int), Iterable, Iterable[(SafeLong, Int)]]
trait IterableOnce[(SafeLong, Int)]
class Object
trait Matchable
class Any

Value members

Concrete methods

def %(rhs: Factors): Factors
def %(rhs: SafeLong): Factors
def *(rhs: Factors): Factors
def *(rhs: SafeLong): Factors
def +(rhs: Factors): Factors
def +(rhs: SafeLong): Factors
def -(rhs: Factors): Factors
def -(rhs: SafeLong): Factors
def /(rhs: Factors): Factors
def /(rhs: SafeLong): Factors
def /%(rhs: Factors): (Factors, Factors)
def /%(rhs: SafeLong): (Factors, Factors)
def compare(rhs: Factors): Int
def compare(rhs: Int): Int
def contains(p: SafeLong): Boolean
def gcd(rhs: Factors): Factors
def get(p: SafeLong): Int
def iterator: Iterator[(SafeLong, Int)]
def lcm(rhs: Factors): Factors
def pow(rhs: Int): Factors
def signum: Int
def toMap: Map[SafeLong, Int]
override
def toString(): String
Definition Classes
Iterable -> Any

Inherited methods

@inline
final
def ++[B >: (SafeLong, Int)](suffix: IterableOnce[B]): Iterable[B]
Inherited from
IterableOps
def <(that: Factors): Boolean
Inherited from
Ordered
def <=(that: Factors): Boolean
Inherited from
Ordered
def >(that: Factors): Boolean
Inherited from
Ordered
def >=(that: Factors): Boolean
Inherited from
Ordered
@inline
final
def addString(b: StringBuilder): StringBuilder
Inherited from
IterableOnceOps
@inline
final
def addString(b: StringBuilder, sep: String): StringBuilder
Inherited from
IterableOnceOps
def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder
Inherited from
IterableOnceOps
def collect[B](pf: PartialFunction[(SafeLong, Int), B]): Iterable[B]
Inherited from
IterableOps
def collectFirst[B](pf: PartialFunction[(SafeLong, Int), B]): Option[B]
Inherited from
IterableOnceOps
def compareTo(that: Factors): Int
Inherited from
Ordered
def concat[B >: (SafeLong, Int)](suffix: IterableOnce[B]): Iterable[B]
Inherited from
IterableOps
def copyToArray[B >: (SafeLong, Int)](xs: Array[B], start: Int, len: Int): Int
Inherited from
IterableOnceOps
@deprecatedOverriding(message = "This should always forward to the 3-arg version of this method", since = "2.13.4")
def copyToArray[B >: (SafeLong, Int)](xs: Array[B], start: Int): Int
Inherited from
IterableOnceOps
@deprecatedOverriding(message = "This should always forward to the 3-arg version of this method", since = "2.13.4")
def copyToArray[B >: (SafeLong, Int)](xs: Array[B]): Int
Inherited from
IterableOnceOps
def corresponds[B](that: IterableOnce[B])(p: ((SafeLong, Int), B) => Boolean): Boolean
Inherited from
IterableOnceOps
def count(p: (SafeLong, Int) => Boolean): Int
Inherited from
IterableOnceOps
def drop(n: Int): Iterable[(SafeLong, Int)]
Inherited from
IterableOps
def dropRight(n: Int): Iterable[(SafeLong, Int)]
Inherited from
IterableOps
def dropWhile(p: (SafeLong, Int) => Boolean): Iterable[(SafeLong, Int)]
Inherited from
IterableOps
override
def empty: Iterable[(SafeLong, Int)]
Definition Classes
IterableFactoryDefaults -> IterableOps
Inherited from
IterableFactoryDefaults
def exists(p: (SafeLong, Int) => Boolean): Boolean
Inherited from
IterableOnceOps
def filter(pred: (SafeLong, Int) => Boolean): Iterable[(SafeLong, Int)]
Inherited from
IterableOps
def filterNot(pred: (SafeLong, Int) => Boolean): Iterable[(SafeLong, Int)]
Inherited from
IterableOps
def find(p: (SafeLong, Int) => Boolean): Option[(SafeLong, Int)]
Inherited from
IterableOnceOps
def flatMap[B](f: (SafeLong, Int) => IterableOnce[B]): Iterable[B]
Inherited from
IterableOps
def flatten[B](implicit asIterable: (SafeLong, Int) => IterableOnce[B]): Iterable[B]
Inherited from
IterableOps
def fold[A1 >: (SafeLong, Int)](z: A1)(op: (A1, A1) => A1): A1
Inherited from
IterableOnceOps
def foldLeft[B](z: B)(op: (B, (SafeLong, Int)) => B): B
Inherited from
IterableOnceOps
def foldRight[B](z: B)(op: ((SafeLong, Int), B) => B): B
Inherited from
IterableOnceOps
def forall(p: (SafeLong, Int) => Boolean): Boolean
Inherited from
IterableOnceOps
def foreach[U](f: (SafeLong, Int) => U): Unit
Inherited from
IterableOnceOps
protected
def fromSpecific(coll: IterableOnce[(SafeLong, Int)]): Iterable[(SafeLong, Int)]
Inherited from
IterableFactoryDefaults
def groupBy[K](f: (SafeLong, Int) => K): Map[K, Iterable[(SafeLong, Int)]]
Inherited from
IterableOps
def groupMap[K, B](key: (SafeLong, Int) => K)(f: (SafeLong, Int) => B): Map[K, Iterable[B]]
Inherited from
IterableOps
def groupMapReduce[K, B](key: (SafeLong, Int) => K)(f: (SafeLong, Int) => B)(reduce: (B, B) => B): Map[K, B]
Inherited from
IterableOps
def grouped(size: Int): Iterator[Iterable[(SafeLong, Int)]]
Inherited from
IterableOps
def head: (SafeLong, Int)
Inherited from
IterableOps
def headOption: Option[(SafeLong, Int)]
Inherited from
IterableOps
def init: Iterable[(SafeLong, Int)]
Inherited from
IterableOps
def inits: Iterator[Iterable[(SafeLong, Int)]]
Inherited from
IterableOps
def isEmpty: Boolean
Inherited from
IterableOnceOps
override
def isTraversableAgain: Boolean
Definition Classes
IterableOps -> IterableOnceOps
Inherited from
IterableOps
def iterableFactory: IterableFactory[Iterable]
Inherited from
Iterable
def knownSize: Int
Inherited from
IterableOnce
def last: (SafeLong, Int)
Inherited from
IterableOps
def lastOption: Option[(SafeLong, Int)]
Inherited from
IterableOps
def lazyZip[B](that: Iterable[B]): LazyZip2[(SafeLong, Int), B, Factors]
Inherited from
Iterable
def map[B](f: (SafeLong, Int) => B): Iterable[B]
Inherited from
IterableOps
def max[B >: (SafeLong, Int)](implicit ord: Ordering[B]): (SafeLong, Int)
Inherited from
IterableOnceOps
def maxBy[B](f: (SafeLong, Int) => B)(implicit cmp: Ordering[B]): (SafeLong, Int)
Inherited from
IterableOnceOps
def maxByOption[B](f: (SafeLong, Int) => B)(implicit cmp: Ordering[B]): Option[(SafeLong, Int)]
Inherited from
IterableOnceOps
def maxOption[B >: (SafeLong, Int)](implicit ord: Ordering[B]): Option[(SafeLong, Int)]
Inherited from
IterableOnceOps
def min[B >: (SafeLong, Int)](implicit ord: Ordering[B]): (SafeLong, Int)
Inherited from
IterableOnceOps
def minBy[B](f: (SafeLong, Int) => B)(implicit cmp: Ordering[B]): (SafeLong, Int)
Inherited from
IterableOnceOps
def minByOption[B](f: (SafeLong, Int) => B)(implicit cmp: Ordering[B]): Option[(SafeLong, Int)]
Inherited from
IterableOnceOps
def minOption[B >: (SafeLong, Int)](implicit ord: Ordering[B]): Option[(SafeLong, Int)]
Inherited from
IterableOnceOps
@inline
final
def mkString: String
Inherited from
IterableOnceOps
@inline
final
def mkString(sep: String): String
Inherited from
IterableOnceOps
final
def mkString(start: String, sep: String, end: String): String
Inherited from
IterableOnceOps
protected
def newSpecificBuilder: Builder[(SafeLong, Int), Iterable[(SafeLong, Int)]]
Inherited from
IterableFactoryDefaults
@deprecatedOverriding(message = "nonEmpty is defined as !isEmpty; override isEmpty instead", since = "2.13.0")
def nonEmpty: Boolean
Inherited from
IterableOnceOps
def partition(p: (SafeLong, Int) => Boolean): (Iterable[(SafeLong, Int)], Iterable[(SafeLong, Int)])
Inherited from
IterableOps
def partitionMap[A1, A2](f: (SafeLong, Int) => Either[A1, A2]): (Iterable[A1], Iterable[A2])
Inherited from
IterableOps
def product[B >: (SafeLong, Int)](implicit num: Numeric[B]): B
Inherited from
IterableOnceOps
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product
def reduce[B >: (SafeLong, Int)](op: (B, B) => B): B
Inherited from
IterableOnceOps
def reduceLeft[B >: (SafeLong, Int)](op: (B, (SafeLong, Int)) => B): B
Inherited from
IterableOnceOps
def reduceLeftOption[B >: (SafeLong, Int)](op: (B, (SafeLong, Int)) => B): Option[B]
Inherited from
IterableOnceOps
def reduceOption[B >: (SafeLong, Int)](op: (B, B) => B): Option[B]
Inherited from
IterableOnceOps
def reduceRight[B >: (SafeLong, Int)](op: ((SafeLong, Int), B) => B): B
Inherited from
IterableOnceOps
def reduceRightOption[B >: (SafeLong, Int)](op: ((SafeLong, Int), B) => B): Option[B]
Inherited from
IterableOnceOps
protected
def reversed: Iterable[(SafeLong, Int)]
Inherited from
IterableOnceOps
def scan[B >: (SafeLong, Int)](z: B)(op: (B, B) => B): Iterable[B]
Inherited from
IterableOps
def scanLeft[B](z: B)(op: (B, (SafeLong, Int)) => B): Iterable[B]
Inherited from
IterableOps
def scanRight[B](z: B)(op: ((SafeLong, Int), B) => B): Iterable[B]
Inherited from
IterableOps
def size: Int
Inherited from
IterableOnceOps
def sizeCompare(that: Iterable[_]): Int
Inherited from
IterableOps
def sizeCompare(otherSize: Int): Int
Inherited from
IterableOps
@inline
final
def sizeIs: SizeCompareOps
Inherited from
IterableOps
def slice(from: Int, until: Int): Iterable[(SafeLong, Int)]
Inherited from
IterableOps
def sliding(size: Int, step: Int): Iterator[Iterable[(SafeLong, Int)]]
Inherited from
IterableOps
def sliding(size: Int): Iterator[Iterable[(SafeLong, Int)]]
Inherited from
IterableOps
def span(p: (SafeLong, Int) => Boolean): (Iterable[(SafeLong, Int)], Iterable[(SafeLong, Int)])
Inherited from
IterableOps
override
def splitAt(n: Int): (Iterable[(SafeLong, Int)], Iterable[(SafeLong, Int)])
Definition Classes
IterableOps -> IterableOnceOps
Inherited from
IterableOps
def stepper[S <: Stepper[_]](implicit shape: StepperShape[(SafeLong, Int), S]): S
Inherited from
IterableOnce
def sum[B >: (SafeLong, Int)](implicit num: Numeric[B]): B
Inherited from
IterableOnceOps
def tail: Iterable[(SafeLong, Int)]
Inherited from
IterableOps
def tails: Iterator[Iterable[(SafeLong, Int)]]
Inherited from
IterableOps
def take(n: Int): Iterable[(SafeLong, Int)]
Inherited from
IterableOps
def takeRight(n: Int): Iterable[(SafeLong, Int)]
Inherited from
IterableOps
def takeWhile(p: (SafeLong, Int) => Boolean): Iterable[(SafeLong, Int)]
Inherited from
IterableOps
override
def tapEach[U](f: (SafeLong, Int) => U): Iterable[(SafeLong, Int)]
Definition Classes
IterableOps -> IterableOnceOps
Inherited from
IterableOps
def to[C1](factory: Factory[(SafeLong, Int), C1]): C1
Inherited from
IterableOnceOps
def toArray[B >: (SafeLong, Int) : ClassTag]: Array[B]
Inherited from
IterableOnceOps
@inline
final
def toBuffer[B >: (SafeLong, Int)]: Buffer[B]
Inherited from
IterableOnceOps
def toIndexedSeq: IndexedSeq[(SafeLong, Int)]
Inherited from
IterableOnceOps
final
Inherited from
Iterable
def toList: List[(SafeLong, Int)]
Inherited from
IterableOnceOps
def toMap[K, V](implicit ev: (SafeLong, Int) <:< (K, V)): Map[K, V]
Inherited from
IterableOnceOps
def toSeq: Seq[(SafeLong, Int)]
Inherited from
IterableOnceOps
def toSet[B >: (SafeLong, Int)]: Set[B]
Inherited from
IterableOnceOps
def toVector: Vector[(SafeLong, Int)]
Inherited from
IterableOnceOps
def transpose[B](implicit asIterable: (SafeLong, Int) => Iterable[B]): Iterable[Iterable[B]]
Inherited from
IterableOps
def unzip[A1, A2](implicit asPair: (SafeLong, Int) => (A1, A2)): (Iterable[A1], Iterable[A2])
Inherited from
IterableOps
def unzip3[A1, A2, A3](implicit asTriple: (SafeLong, Int) => (A1, A2, A3)): (Iterable[A1], Iterable[A2], Iterable[A3])
Inherited from
IterableOps
def view: View[(SafeLong, Int)]
Inherited from
IterableOps
def withFilter(p: (SafeLong, Int) => Boolean): WithFilter[(SafeLong, Int), Iterable]
Inherited from
IterableOps
def zip[B](that: IterableOnce[B]): Iterable[((SafeLong, Int), B)]
Inherited from
IterableOps
def zipAll[A1 >: (SafeLong, Int), B](that: Iterable[B], thisElem: A1, thatElem: B): Iterable[(A1, B)]
Inherited from
IterableOps
def zipWithIndex: Iterable[((SafeLong, Int), Int)]
Inherited from
IterableOps

Deprecated and Inherited methods

@deprecated(message = "Use ++ instead of ++: for collections of type Iterable", since = "2.13.0")
def ++:[B >: (SafeLong, Int)](that: IterableOnce[B]): Iterable[B]
Deprecated
[Since version 2.13.0] Use ++ instead of ++: for collections of type Iterable
Inherited from
IterableOps
@inline @deprecated(message = "Use foldLeft instead of /:", since = "2.13.0")
final
def /:[B](z: B)(op: (B, (SafeLong, Int)) => B): B
Deprecated
[Since version 2.13.0] Use foldLeft instead of /:
Inherited from
IterableOnceOps
@inline @deprecated(message = "Use foldRight instead of :\\", since = "2.13.0")
final
def :\[B](z: B)(op: ((SafeLong, Int), B) => B): B
Deprecated
[Since version 2.13.0] Use foldRight instead of :\\
Inherited from
IterableOnceOps
@deprecated(message = "`aggregate` is not relevant for sequential collections. Use `foldLeft(z)(seqop)` instead.", since = "2.13.0")
def aggregate[B](z: => B)(seqop: (B, (SafeLong, Int)) => B, combop: (B, B) => B): B
Deprecated
[Since version 2.13.0] `aggregate` is not relevant for sequential collections. Use `foldLeft(z)(seqop)` instead.
Inherited from
IterableOnceOps
@inline @deprecatedOverriding(message = "Use iterableFactory instead", since = "2.13.0") @deprecated(message = "Use iterableFactory instead", since = "2.13.0")
def companion: IterableFactory[Iterable]
Deprecated
[Since version 2.13.0] Use iterableFactory instead
Inherited from
IterableOps
@inline @deprecated(message = "Use `dest ++= coll` instead", since = "2.13.0")
final
def copyToBuffer[B >: (SafeLong, Int)](dest: Buffer[B]): Unit
Deprecated
[Since version 2.13.0] Use `dest ++= coll` instead
Inherited from
IterableOnceOps
@deprecated(message = "Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details)", since = "2.13.0")
def hasDefiniteSize: Boolean
Deprecated
[Since version 2.13.0] Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details)
Inherited from
IterableOnceOps
@deprecated(message = "Use coll instead of repr in a collection implementation, use the collection value itself from the outside", since = "2.13.0")
final
def repr: Iterable[(SafeLong, Int)]
Deprecated
[Since version 2.13.0] Use coll instead of repr in a collection implementation, use the collection value itself from the outside
Inherited from
IterableOps
@deprecated(message = "Iterable.seq always returns the iterable itself", since = "2.13.0")
Deprecated
[Since version 2.13.0] Iterable.seq always returns the iterable itself
Inherited from
Iterable
@inline @deprecated(message = "Use .iterator instead of .toIterator", since = "2.13.0")
final
def toIterator: Iterator[(SafeLong, Int)]
Deprecated
[Since version 2.13.0] Use .iterator instead of .toIterator
Inherited from
IterableOnceOps
@inline @deprecated(message = "Use .to(LazyList) instead of .toStream", since = "2.13.0")
final
def toStream: Stream[(SafeLong, Int)]
Deprecated
[Since version 2.13.0] Use .to(LazyList) instead of .toStream
Inherited from
IterableOnceOps
@deprecated(message = "Use toIterable instead", since = "2.13.0")
final
def toTraversable: Iterable[(SafeLong, Int)]
Deprecated
[Since version 2.13.0] Use toIterable instead
Inherited from
IterableOps
@deprecated(message = "Use .view.slice(from, until) instead of .view(from, until)", since = "2.13.0")
def view(from: Int, until: Int): View[(SafeLong, Int)]
Deprecated
[Since version 2.13.0] Use .view.slice(from, until) instead of .view(from, until)
Inherited from
IterableOps

Concrete fields

lazy