final class LinearCombination2 extends LinearCombination
Linear combinations with exactly two non-constant term
- Alphabetic
- By Inheritance
- LinearCombination2
- LinearCombination
- IndexedSeq
- IndexedSeqOps
- IndexedSeq
- IndexedSeqOps
- Seq
- SeqOps
- Seq
- Equals
- SeqOps
- PartialFunction
- Function1
- Iterable
- Iterable
- IterableFactoryDefaults
- IterableOps
- IterableOnceOps
- IterableOnce
- SortedWithOrder
- Sorted
- Term
- TerFor
- 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
- def *(that: LinearCombination): LinearCombination
Multiple two linear combinations.
Multiple two linear combinations. One of the arguments has to be constant, otherwise the method will raise an
IllegalArgumentException
.- Definition Classes
- LinearCombination
- def +(that: LinearCombination)(implicit newOrder: TermOrder): LinearCombination
Addition of two linear combinations.
Addition of two linear combinations. The result is sorted with the same
TermOrder
asthis
- Definition Classes
- LinearCombination2 → LinearCombination
- def +(that: IdealInt): LinearCombination
Add an integer literal to a
LinearCombination
.Add an integer literal to a
LinearCombination
. The result is sorted with the sameTermOrder
asthis
- Definition Classes
- LinearCombination2 → LinearCombination
- final def ++[B >: (IdealInt, Term)](suffix: IterableOnce[B]): IndexedSeq[B]
- Definition Classes
- IterableOps
- Annotations
- @inline()
- final def ++:[B >: (IdealInt, Term)](prefix: IterableOnce[B]): IndexedSeq[B]
- Definition Classes
- SeqOps → IterableOps
- Annotations
- @inline()
- final def +:[B >: (IdealInt, Term)](elem: B): IndexedSeq[B]
- Definition Classes
- SeqOps
- Annotations
- @inline()
- def -(that: LinearCombination)(implicit newOrder: TermOrder): LinearCombination
Subtraction of two linear combinations.
Subtraction of two linear combinations. The result is sorted with the same
TermOrder
asthis
- Definition Classes
- LinearCombination2 → LinearCombination
- def /(denom: IdealInt): LinearCombination
Divide all coefficients of this linear combination by a constant, rounding downwards
Divide all coefficients of this linear combination by a constant, rounding downwards
- Definition Classes
- LinearCombination2 → LinearCombination
- final def :+[B >: (IdealInt, Term)](elem: B): IndexedSeq[B]
- Definition Classes
- SeqOps
- Annotations
- @inline()
- final def :++[B >: (IdealInt, Term)](suffix: IterableOnce[B]): IndexedSeq[B]
- Definition Classes
- SeqOps
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def addString(b: StringBuilder): b.type
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- final def addString(b: StringBuilder, sep: String): b.type
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- def addString(b: StringBuilder, start: String, sep: String, end: String): b.type
- Definition Classes
- IterableOnceOps
- def andThen[C](k: PartialFunction[(IdealInt, Term), C]): PartialFunction[Int, C]
- Definition Classes
- PartialFunction
- def andThen[C](k: ((IdealInt, Term)) => C): PartialFunction[Int, C]
- Definition Classes
- PartialFunction → Function1
- def appended[B >: (IdealInt, Term)](elem: B): IndexedSeq[B]
- Definition Classes
- SeqOps
- def appendedAll[B >: (IdealInt, Term)](suffix: IterableOnce[B]): IndexedSeq[B]
- Definition Classes
- SeqOps
- def apply(i: Int): (IdealInt, Term)
- Definition Classes
- LinearCombination → SeqOps → Function1
- def applyOrElse[A1 <: Int, B1 >: (IdealInt, Term)](x: A1, default: (A1) => B1): B1
- Definition Classes
- PartialFunction
- def applyPreferredMaxLength: Int
- Attributes
- protected
- Definition Classes
- IndexedSeq
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def assertCtor: Boolean
- Attributes
- protected
- Definition Classes
- LinearCombination
- def canEqual(that: Any): Boolean
- Definition Classes
- IndexedSeq → Seq → Equals
- def className: String
- Attributes
- protected[this]
- Definition Classes
- Iterable
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- val coeff0: IdealInt
- val coeff1: IdealInt
- def coeffIterator: Iterator[IdealInt]
Iterator over all coefficients of the linear combination
Iterator over all coefficients of the linear combination
- Definition Classes
- LinearCombination2 → LinearCombination
- final def coll: LinearCombination2.this.type
- Attributes
- protected
- Definition Classes
- Iterable → IterableOps
- def collect[B](pf: PartialFunction[(IdealInt, Term), B]): IndexedSeq[B]
- Definition Classes
- IterableOps → IterableOnceOps
- def collectFirst[B](pf: PartialFunction[(IdealInt, Term), B]): Option[B]
- Definition Classes
- IterableOnceOps
- def combinations(n: Int): Iterator[IndexedSeq[(IdealInt, Term)]]
- Definition Classes
- SeqOps
- def compose[R](k: PartialFunction[R, Int]): PartialFunction[R, (IdealInt, Term)]
- Definition Classes
- PartialFunction
- def compose[A](g: (A) => Int): (A) => (IdealInt, Term)
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- final def concat[B >: (IdealInt, Term)](suffix: IterableOnce[B]): IndexedSeq[B]
- Definition Classes
- SeqOps → IterableOps
- Annotations
- @inline()
- val constant: IdealInt
The constant term of this linear combination (zero if there is no constant term)
The constant term of this linear combination (zero if there is no constant term)
- Definition Classes
- LinearCombination2 → LinearCombination
- def constantDiff(that: LinearCombination): Option[IdealInt]
Return
Some(d)
if the difference betweenthis
andthat
is only an integer constantd
(this = that + d
), andNone
otherwise.Return
Some(d)
if the difference betweenthis
andthat
is only an integer constantd
(this = that + d
), andNone
otherwise.- Definition Classes
- LinearCombination
- lazy val constants: Set[ConstantTerm]
- Definition Classes
- LinearCombination2 → LinearCombination → SortedWithOrder → TerFor
- def constantsIterator: Iterator[ConstantTerm]
- Definition Classes
- LinearCombination2 → LinearCombination
- def contains[A1 >: (IdealInt, Term)](elem: A1): Boolean
- Definition Classes
- SeqOps
- def containsSlice[B >: (IdealInt, Term)](that: Seq[B]): Boolean
- Definition Classes
- SeqOps
- def copyToArray[B >: (IdealInt, Term)](xs: Array[B], start: Int, len: Int): Int
- Definition Classes
- IterableOnceOps
- def copyToArray[B >: (IdealInt, Term)](xs: Array[B], start: Int): Int
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecatedOverriding()
- def copyToArray[B >: (IdealInt, Term)](xs: Array[B]): Int
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecatedOverriding()
- def corresponds[B](that: Seq[B])(p: ((IdealInt, Term), B) => Boolean): Boolean
- Definition Classes
- SeqOps
- def corresponds[B](that: IterableOnce[B])(p: ((IdealInt, Term), B) => Boolean): Boolean
- Definition Classes
- IterableOnceOps
- def count(p: ((IdealInt, Term)) => Boolean): Int
- Definition Classes
- IterableOnceOps
- def diff[B >: (IdealInt, Term)](that: Seq[B]): IndexedSeq[(IdealInt, Term)]
- Definition Classes
- SeqOps
- def distinct: IndexedSeq[(IdealInt, Term)]
- Definition Classes
- SeqOps
- def distinctBy[B](f: ((IdealInt, Term)) => B): IndexedSeq[(IdealInt, Term)]
- Definition Classes
- SeqOps
- def drop(n: Int): IndexedSeq[(IdealInt, Term)]
- Definition Classes
- IndexedSeqOps → IterableOps → IterableOnceOps
- def dropRight(n: Int): IndexedSeq[(IdealInt, Term)]
- Definition Classes
- IndexedSeqOps → IterableOps
- def dropWhile(p: ((IdealInt, Term)) => Boolean): IndexedSeq[(IdealInt, Term)]
- Definition Classes
- IterableOps → IterableOnceOps
- def elementWise: ElementWiseExtractor[Int, (IdealInt, Term)]
- Definition Classes
- PartialFunction
- def empty: IndexedSeq[(IdealInt, Term)]
- Definition Classes
- IterableFactoryDefaults → IterableOps
- def endsWith[B >: (IdealInt, Term)](that: Iterable[B]): Boolean
- Definition Classes
- SeqOps
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(that: Any): Boolean
- Definition Classes
- LinearCombination2 → Seq → Equals → AnyRef → Any
- def exists(p: ((IdealInt, Term)) => Boolean): Boolean
- Definition Classes
- IterableOnceOps
- def filter(pred: ((IdealInt, Term)) => Boolean): IndexedSeq[(IdealInt, Term)]
- Definition Classes
- IterableOps → IterableOnceOps
- def filterNot(pred: ((IdealInt, Term)) => Boolean): IndexedSeq[(IdealInt, Term)]
- Definition Classes
- IterableOps → IterableOnceOps
- def filterPairs(f: (IdealInt, Term) => Boolean): LinearCombination
- Definition Classes
- LinearCombination2 → LinearCombination
- def find(p: ((IdealInt, Term)) => Boolean): Option[(IdealInt, Term)]
- Definition Classes
- IterableOnceOps
- def findLast(p: ((IdealInt, Term)) => Boolean): Option[(IdealInt, Term)]
- Definition Classes
- SeqOps
- def flatMap[B](f: ((IdealInt, Term)) => IterableOnce[B]): IndexedSeq[B]
- Definition Classes
- IterableOps → IterableOnceOps
- def flatten[B](implicit asIterable: ((IdealInt, Term)) => IterableOnce[B]): IndexedSeq[B]
- Definition Classes
- IterableOps → IterableOnceOps
- def fold[A1 >: (IdealInt, Term)](z: A1)(op: (A1, A1) => A1): A1
- Definition Classes
- IterableOnceOps
- def foldLeft[B](z: B)(op: (B, (IdealInt, Term)) => B): B
- Definition Classes
- IterableOnceOps
- def foldRight[B](z: B)(op: ((IdealInt, Term), B) => B): B
- Definition Classes
- IndexedSeqOps → IterableOnceOps
- def forall(p: ((IdealInt, Term)) => Boolean): Boolean
- Definition Classes
- IterableOnceOps
- def foreach[U](f: ((IdealInt, Term)) => U): Unit
- Definition Classes
- IterableOnceOps
- def fromSpecific(coll: IterableOnce[(IdealInt, Term)]): IndexedSeq[(IdealInt, Term)]
- Attributes
- protected
- Definition Classes
- IterableFactoryDefaults → IterableOps
- def get(t: Term): IdealInt
Determine the coefficient of a certain term in this linear combination, or zero if the term does not occur.
Determine the coefficient of a certain term in this linear combination, or zero if the term does not occur. This is done by binary search
- Definition Classes
- LinearCombination2 → LinearCombination
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def getCoeff(i: Int): IdealInt
Method to access the coefficients of the linear combination
Method to access the coefficients of the linear combination
- Definition Classes
- LinearCombination2 → LinearCombination
- def getPair(i: Int): (IdealInt, Term)
- Definition Classes
- LinearCombination2 → LinearCombination
- def getTerm(i: Int): Term
Method to access the terms of the linear combination
Method to access the terms of the linear combination
- Definition Classes
- LinearCombination2 → LinearCombination
- def groupBy[K](f: ((IdealInt, Term)) => K): Map[K, IndexedSeq[(IdealInt, Term)]]
- Definition Classes
- IterableOps
- def groupMap[K, B](key: ((IdealInt, Term)) => K)(f: ((IdealInt, Term)) => B): Map[K, IndexedSeq[B]]
- Definition Classes
- IterableOps
- def groupMapReduce[K, B](key: ((IdealInt, Term)) => K)(f: ((IdealInt, Term)) => B)(reduce: (B, B) => B): Map[K, B]
- Definition Classes
- IterableOps
- def grouped(size: Int): Iterator[IndexedSeq[(IdealInt, Term)]]
- Definition Classes
- IterableOps
- def hashCode(): Int
- Definition Classes
- LinearCombination2 → Seq → AnyRef → Any
- def head: (IdealInt, Term)
- Definition Classes
- IndexedSeqOps → IterableOps
- def headOption: Option[(IdealInt, Term)]
- Definition Classes
- IndexedSeqOps → IterableOps
- def indexOf[B >: (IdealInt, Term)](elem: B): Int
- Definition Classes
- SeqOps
- Annotations
- @deprecatedOverriding()
- def indexOf[B >: (IdealInt, Term)](elem: B, from: Int): Int
- Definition Classes
- SeqOps
- def indexOfSlice[B >: (IdealInt, Term)](that: Seq[B]): Int
- Definition Classes
- SeqOps
- Annotations
- @deprecatedOverriding()
- def indexOfSlice[B >: (IdealInt, Term)](that: Seq[B], from: Int): Int
- Definition Classes
- SeqOps
- def indexWhere(p: ((IdealInt, Term)) => Boolean): Int
- Definition Classes
- SeqOps
- Annotations
- @deprecatedOverriding()
- def indexWhere(p: ((IdealInt, Term)) => Boolean, from: Int): Int
- Definition Classes
- SeqOps
- def indices: Range
- Definition Classes
- SeqOps
- def init: IndexedSeq[(IdealInt, Term)]
- Definition Classes
- IterableOps
- def inits: Iterator[IndexedSeq[(IdealInt, Term)]]
- Definition Classes
- IterableOps
- def intersect[B >: (IdealInt, Term)](that: Seq[B]): IndexedSeq[(IdealInt, Term)]
- Definition Classes
- SeqOps
- def inverseNonConstantTerms(that: LinearCombination): Boolean
Return whether the
this
andthat
agree on the non-constant terms, but with inverted sign.Return whether the
this
andthat
agree on the non-constant terms, but with inverted sign. I.e., whether the sum ofthis
andthat
is some integer constantd
(this + that = d
).- Definition Classes
- LinearCombination2 → LinearCombination
- def isConstant: Boolean
Return whether this linear combination is an integer constant
Return whether this linear combination is an integer constant
- Definition Classes
- LinearCombination2 → LinearCombination
- def isDefinedAt(idx: Int): Boolean
- Definition Classes
- SeqOps
- def isEmpty: Boolean
- Definition Classes
- SeqOps → IterableOnceOps
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isNonZero: Boolean
Return whether the value of this linear combination is never zero
Return whether the value of this linear combination is never zero
- Definition Classes
- LinearCombination2 → LinearCombination
- def isPositive: Boolean
A linear combination is called positive if it is not constantly zero and if the leading coefficient is positive
A linear combination is called positive if it is not constantly zero and if the leading coefficient is positive
- Definition Classes
- LinearCombination
- def isPrimitive: Boolean
A linear combination is called primitive if it is not constantly zero and if the coefficients of non-constant terms are coprime.
A linear combination is called primitive if it is not constantly zero and if the coefficients of non-constant terms are coprime.
- Definition Classes
- LinearCombination
- def isSortedBy(otherOrder: TermOrder): Boolean
- Definition Classes
- SortedWithOrder → Sorted
- def isTraversableAgain: Boolean
- Definition Classes
- IterableOps → IterableOnceOps
- def isZero: Boolean
Return whether the value of this linear combination is constantly zero
Return whether the value of this linear combination is constantly zero
- Definition Classes
- LinearCombination2 → LinearCombination
- def iterableFactory: SeqFactory[IndexedSeq]
- Definition Classes
- IndexedSeq → IndexedSeq → Seq → Seq → Iterable → Iterable → IterableOps
- def iterator: Iterator[(IdealInt, Term)]
- Definition Classes
- LinearCombination → IndexedSeqOps → IterableOnce
- def knownSize: Int
- Definition Classes
- IndexedSeqOps → IterableOnce
- def last: (IdealInt, Term)
- Definition Classes
- IndexedSeqOps → IterableOps
- def lastCoeff: IdealInt
- Definition Classes
- LinearCombination
- def lastIndexOf[B >: (IdealInt, Term)](elem: B, end: Int): Int
- Definition Classes
- SeqOps
- def lastIndexOfSlice[B >: (IdealInt, Term)](that: Seq[B]): Int
- Definition Classes
- SeqOps
- Annotations
- @deprecatedOverriding()
- def lastIndexOfSlice[B >: (IdealInt, Term)](that: Seq[B], end: Int): Int
- Definition Classes
- SeqOps
- def lastIndexWhere(p: ((IdealInt, Term)) => Boolean): Int
- Definition Classes
- SeqOps
- Annotations
- @deprecatedOverriding()
- def lastIndexWhere(p: ((IdealInt, Term)) => Boolean, end: Int): Int
- Definition Classes
- SeqOps
- def lastOption: Option[(IdealInt, Term)]
- Definition Classes
- IterableOps
- def lastTerm: Term
- Definition Classes
- LinearCombination2 → LinearCombination
- def lazyPairSeq: IndexedSeq[(IdealInt, Term)]
- Attributes
- protected
- Definition Classes
- LinearCombination
- def lazyZip[B](that: Iterable[B]): LazyZip2[(IdealInt, Term), B, LinearCombination2.this.type]
- Definition Classes
- Iterable
- def lcSize: Int
- Definition Classes
- LinearCombination2 → LinearCombination
- def leadingCoeff: IdealInt
The leading coefficient of this linear combination
The leading coefficient of this linear combination
- Definition Classes
- LinearCombination2 → LinearCombination
- def leadingTerm: Term
The leading monomial of this linear combination
The leading monomial of this linear combination
- Definition Classes
- LinearCombination2 → LinearCombination
- def length: Int
- Definition Classes
- LinearCombination → SeqOps
- final def lengthCompare(that: Iterable[_]): Int
- Definition Classes
- IndexedSeqOps → SeqOps
- final def lengthCompare(len: Int): Int
- Definition Classes
- IndexedSeqOps → SeqOps
- final def lengthIs: SizeCompareOps
- Definition Classes
- SeqOps
- Annotations
- @inline()
- def lift: (Int) => Option[(IdealInt, Term)]
- Definition Classes
- PartialFunction
- def makePositive: LinearCombination
- Definition Classes
- LinearCombination
- def makePrimitive: LinearCombination
Divide the linear combination by
nonConstCoeffGcd
such that it becomes primitive (isPrimitive
).Divide the linear combination by
nonConstCoeffGcd
such that it becomes primitive (isPrimitive
). IfisNonZero
, the constant term will be rounded downwards.- Definition Classes
- LinearCombination
- def makePrimitiveAndPositive: LinearCombination
Divide the linear combination by
nonConstCoeffGcd
such that it becomes primitive (isPrimitive
), and possibly change the sign so that the linear combination becomes positive (isPositive
)Divide the linear combination by
nonConstCoeffGcd
such that it becomes primitive (isPrimitive
), and possibly change the sign so that the linear combination becomes positive (isPositive
)- Definition Classes
- LinearCombination
- def map[B](f: ((IdealInt, Term)) => B): IndexedSeq[B]
- Definition Classes
- IndexedSeqOps → IterableOps → IterableOnceOps
- def max[B >: (IdealInt, Term)](implicit ord: Ordering[B]): (IdealInt, Term)
- Definition Classes
- IterableOnceOps
- def maxBy[B](f: ((IdealInt, Term)) => B)(implicit ord: Ordering[B]): (IdealInt, Term)
- Definition Classes
- IterableOnceOps
- def maxByOption[B](f: ((IdealInt, Term)) => B)(implicit ord: Ordering[B]): Option[(IdealInt, Term)]
- Definition Classes
- IterableOnceOps
- def maxOption[B >: (IdealInt, Term)](implicit ord: Ordering[B]): Option[(IdealInt, Term)]
- Definition Classes
- IterableOnceOps
- def min[B >: (IdealInt, Term)](implicit ord: Ordering[B]): (IdealInt, Term)
- Definition Classes
- IterableOnceOps
- def minBy[B](f: ((IdealInt, Term)) => B)(implicit ord: Ordering[B]): (IdealInt, Term)
- Definition Classes
- IterableOnceOps
- def minByOption[B](f: ((IdealInt, Term)) => B)(implicit ord: Ordering[B]): Option[(IdealInt, Term)]
- Definition Classes
- IterableOnceOps
- def minOption[B >: (IdealInt, Term)](implicit ord: Ordering[B]): Option[(IdealInt, Term)]
- Definition Classes
- IterableOnceOps
- final def mkString: String
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- final def mkString(sep: String): String
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- final def mkString(start: String, sep: String, end: String): String
- Definition Classes
- IterableOnceOps
- def moduloLeadingCoeff: LinearCombination
Reduce all coefficients but the coefficient of the leading term of
this
withIdealInt.reduceAbs(this.leadingCoeff)
and return the remainder.Reduce all coefficients but the coefficient of the leading term of
this
withIdealInt.reduceAbs(this.leadingCoeff)
and return the remainder. This is used for simplifying divisibility constraints.- Definition Classes
- LinearCombination
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def newSpecificBuilder: Builder[(IdealInt, Term), IndexedSeq[(IdealInt, Term)]]
- Attributes
- protected
- Definition Classes
- IterableFactoryDefaults → IterableOps
- lazy val nonConstCoeffGcd: IdealInt
The gcd of the coefficients of non-constant terms in the linear combination
The gcd of the coefficients of non-constant terms in the linear combination
- Definition Classes
- LinearCombination2 → LinearCombination
- def nonEmpty: Boolean
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecatedOverriding()
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def occCounts[B](sq: Seq[B]): Map[B, Int]
- Attributes
- protected[collection]
- Definition Classes
- SeqOps
- def orElse[A1 <: Int, B1 >: (IdealInt, Term)](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]
- Definition Classes
- PartialFunction
- val order: TermOrder
- Definition Classes
- LinearCombination → SortedWithOrder
- def padTo[B >: (IdealInt, Term)](len: Int, elem: B): IndexedSeq[B]
- Definition Classes
- SeqOps
- def pairIterator: Iterator[(IdealInt, Term)]
- Definition Classes
- LinearCombination
- lazy val pairSeq: IndexedSeq[(IdealInt, Term)]
- Definition Classes
- LinearCombination2 → LinearCombination
- def partition(p: ((IdealInt, Term)) => Boolean): (IndexedSeq[(IdealInt, Term)], IndexedSeq[(IdealInt, Term)])
- Definition Classes
- IterableOps
- def partitionMap[A1, A2](f: ((IdealInt, Term)) => Either[A1, A2]): (IndexedSeq[A1], IndexedSeq[A2])
- Definition Classes
- IterableOps
- def patch[B >: (IdealInt, Term)](from: Int, other: IterableOnce[B], replaced: Int): IndexedSeq[B]
- Definition Classes
- SeqOps
- def permutations: Iterator[IndexedSeq[(IdealInt, Term)]]
- Definition Classes
- SeqOps
- def predicates: Set[Predicate]
- def prepended[B >: (IdealInt, Term)](elem: B): IndexedSeq[B]
- Definition Classes
- IndexedSeqOps → SeqOps
- def prependedAll[B >: (IdealInt, Term)](prefix: IterableOnce[B]): IndexedSeq[B]
- Definition Classes
- SeqOps
- def product[B >: (IdealInt, Term)](implicit num: Numeric[B]): B
- Definition Classes
- IterableOnceOps
- def reduce[B >: (IdealInt, Term)](op: (B, B) => B): B
- Definition Classes
- IterableOnceOps
- def reduceLeft[B >: (IdealInt, Term)](op: (B, (IdealInt, Term)) => B): B
- Definition Classes
- IterableOnceOps
- def reduceLeftOption[B >: (IdealInt, Term)](op: (B, (IdealInt, Term)) => B): Option[B]
- Definition Classes
- IterableOnceOps
- def reduceOption[B >: (IdealInt, Term)](op: (B, B) => B): Option[B]
- Definition Classes
- IterableOnceOps
- def reduceRight[B >: (IdealInt, Term)](op: ((IdealInt, Term), B) => B): B
- Definition Classes
- IterableOnceOps
- def reduceRightOption[B >: (IdealInt, Term)](op: ((IdealInt, Term), B) => B): Option[B]
- Definition Classes
- IterableOnceOps
- def reduceWithLeadingCoeff: LinearCombination
Reduce all coefficients of
this
withIdealInt.reduceAbs(this.leadingCoeff)
and return the quotient.Reduce all coefficients of
this
withIdealInt.reduceAbs(this.leadingCoeff)
and return the quotient. This is used for column operations when solving systems of linear equations.- Definition Classes
- LinearCombination
- def reverse: IndexedSeq[(IdealInt, Term)]
- Definition Classes
- IndexedSeqOps → SeqOps
- def reverseIterator: Iterator[(IdealInt, Term)]
- Definition Classes
- IndexedSeqOps → SeqOps
- def reversed: Iterable[(IdealInt, Term)]
- Attributes
- protected
- Definition Classes
- IndexedSeqOps → IterableOnceOps
- def runWith[U](action: ((IdealInt, Term)) => U): (Int) => Boolean
- Definition Classes
- PartialFunction
- def sameElements[B >: (IdealInt, Term)](o: IterableOnce[B]): Boolean
- Definition Classes
- IndexedSeq → SeqOps
- def sameNonConstantTerms(that: LinearCombination): Boolean
Return whether the
this
andthat
agree on the non-constant terms.Return whether the
this
andthat
agree on the non-constant terms. I.e., whether the difference betweenthis
andthat
is only some integer constantd
(this = that + d
).- Definition Classes
- LinearCombination2 → LinearCombination
- def scale(coeff: IdealInt): LinearCombination
Multiply all coefficients of this linear combination by a constant
Multiply all coefficients of this linear combination by a constant
- Definition Classes
- LinearCombination2 → LinearCombination
- def scaleAndAdd(coeff: IdealInt, const: IdealInt): LinearCombination
Multiply all coefficients of this linear combination by a constant, and add some constant term
Multiply all coefficients of this linear combination by a constant, and add some constant term
- Definition Classes
- LinearCombination2 → LinearCombination
- def scan[B >: (IdealInt, Term)](z: B)(op: (B, B) => B): IndexedSeq[B]
- Definition Classes
- IterableOps
- def scanLeft[B](z: B)(op: (B, (IdealInt, Term)) => B): IndexedSeq[B]
- Definition Classes
- IterableOps → IterableOnceOps
- def scanRight[B](z: B)(op: ((IdealInt, Term), B) => B): IndexedSeq[B]
- Definition Classes
- IterableOps
- def search[B >: (IdealInt, Term)](elem: B, from: Int, to: Int)(implicit ord: Ordering[B]): SearchResult
- Definition Classes
- IndexedSeqOps → SeqOps
- def search[B >: (IdealInt, Term)](elem: B)(implicit ord: Ordering[B]): SearchResult
- Definition Classes
- IndexedSeqOps → SeqOps
- def segmentLength(p: ((IdealInt, Term)) => Boolean, from: Int): Int
- Definition Classes
- SeqOps
- final def segmentLength(p: ((IdealInt, Term)) => Boolean): Int
- Definition Classes
- SeqOps
- final def size: Int
- Definition Classes
- SeqOps → IterableOnceOps
- final def sizeCompare(that: Iterable[_]): Int
- Definition Classes
- SeqOps → IterableOps
- final def sizeCompare(otherSize: Int): Int
- Definition Classes
- SeqOps → IterableOps
- final def sizeIs: SizeCompareOps
- Definition Classes
- IterableOps
- Annotations
- @inline()
- def slice(from: Int, until: Int): IndexedSeq[(IdealInt, Term)]
- Definition Classes
- IndexedSeqOps → IndexedSeqOps → IterableOps → IterableOnceOps
- def sliding(size: Int, step: Int): Iterator[IndexedSeq[(IdealInt, Term)]]
- Definition Classes
- IterableOps
- def sliding(size: Int): Iterator[IndexedSeq[(IdealInt, Term)]]
- Definition Classes
- IterableOps
- def sortBy(newOrder: TermOrder): LinearCombination
Re-sort an object with a new
TermOrder
.Re-sort an object with a new
TermOrder
. It is guaranteed that the resultisSortedBy(order)
- Definition Classes
- LinearCombination2 → Sorted
- def sortBy[B](f: ((IdealInt, Term)) => B)(implicit ord: Ordering[B]): IndexedSeq[(IdealInt, Term)]
- Definition Classes
- SeqOps
- def sortWith(lt: ((IdealInt, Term), (IdealInt, Term)) => Boolean): IndexedSeq[(IdealInt, Term)]
- Definition Classes
- SeqOps
- def sorted[B >: (IdealInt, Term)](implicit ord: Ordering[B]): IndexedSeq[(IdealInt, Term)]
- Definition Classes
- SeqOps
- def span(p: ((IdealInt, Term)) => Boolean): (IndexedSeq[(IdealInt, Term)], IndexedSeq[(IdealInt, Term)])
- Definition Classes
- IterableOps → IterableOnceOps
- def splitAt(n: Int): (IndexedSeq[(IdealInt, Term)], IndexedSeq[(IdealInt, Term)])
- Definition Classes
- IterableOps → IterableOnceOps
- def startsWith[B >: (IdealInt, Term)](that: IterableOnce[B], offset: Int): Boolean
- Definition Classes
- SeqOps
- def stepper[S <: Stepper[_]](implicit shape: StepperShape[(IdealInt, Term), S]): S with EfficientSplit
- Definition Classes
- IndexedSeqOps → IterableOnce
- def stringPrefix: String
- Attributes
- protected[this]
- Definition Classes
- IndexedSeq → Seq → Iterable
- def sum[B >: (IdealInt, Term)](implicit num: Numeric[B]): B
- Definition Classes
- IterableOnceOps
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def tail: IndexedSeq[(IdealInt, Term)]
- Definition Classes
- IterableOps
- def tails: Iterator[IndexedSeq[(IdealInt, Term)]]
- Definition Classes
- IterableOps
- def take(n: Int): IndexedSeq[(IdealInt, Term)]
- Definition Classes
- IndexedSeqOps → IterableOps → IterableOnceOps
- def takeRight(n: Int): IndexedSeq[(IdealInt, Term)]
- Definition Classes
- IndexedSeqOps → IterableOps
- def takeWhile(p: ((IdealInt, Term)) => Boolean): IndexedSeq[(IdealInt, Term)]
- Definition Classes
- IterableOps → IterableOnceOps
- def tapEach[U](f: ((IdealInt, Term)) => U): IndexedSeq[(IdealInt, Term)]
- Definition Classes
- IterableOps → IterableOnceOps
- val term0: Term
- val term1: Term
- def termIterator: Iterator[Term]
Iterator over all terms of the linear combination
Iterator over all terms of the linear combination
- Definition Classes
- LinearCombination2 → LinearCombination
- lazy val termSeq: IndexedSeq[Term]
- Definition Classes
- LinearCombination
- def to[C1](factory: Factory[(IdealInt, Term), C1]): C1
- Definition Classes
- IterableOnceOps
- def toArray[B >: (IdealInt, Term)](implicit arg0: ClassTag[B]): Array[B]
- Definition Classes
- IterableOnceOps
- final def toBuffer[B >: (IdealInt, Term)]: Buffer[B]
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- final def toIndexedSeq: IndexedSeq[(IdealInt, Term)]
- Definition Classes
- IndexedSeq → IterableOnceOps
- def toList: List[(IdealInt, Term)]
- Definition Classes
- IterableOnceOps
- def toMap[K, V](implicit ev: <:<[(IdealInt, Term), (K, V)]): Map[K, V]
- Definition Classes
- IterableOnceOps
- final def toSeq: LinearCombination2.this.type
- Definition Classes
- Seq → IterableOnceOps
- def toSet[B >: (IdealInt, Term)]: Set[B]
- Definition Classes
- IterableOnceOps
- def toString(): String
- Definition Classes
- LinearCombination → Seq → Function1 → Iterable → AnyRef → Any
- def toVector: Vector[(IdealInt, Term)]
- Definition Classes
- IterableOnceOps
- def transpose[B](implicit asIterable: ((IdealInt, Term)) => Iterable[B]): IndexedSeq[IndexedSeq[B]]
- Definition Classes
- IterableOps
- def unapply(a: Int): Option[(IdealInt, Term)]
- Definition Classes
- PartialFunction
- def unary_-: LinearCombination
The negation of a linear combination
The negation of a linear combination
- Definition Classes
- LinearCombination2 → LinearCombination
- def unzip[A1, A2](implicit asPair: ((IdealInt, Term)) => (A1, A2)): (IndexedSeq[A1], IndexedSeq[A2])
- Definition Classes
- IterableOps
- def unzip3[A1, A2, A3](implicit asTriple: ((IdealInt, Term)) => (A1, A2, A3)): (IndexedSeq[A1], IndexedSeq[A2], IndexedSeq[A3])
- Definition Classes
- IterableOps
- def updated[B >: (IdealInt, Term)](index: Int, elem: B): IndexedSeq[B]
- Definition Classes
- SeqOps
- lazy val variables: Set[VariableTerm]
- Definition Classes
- LinearCombination2 → LinearCombination → TerFor
- def variablesIterator: Iterator[VariableTerm]
- Definition Classes
- LinearCombination2 → LinearCombination
- def view: IndexedSeqView[(IdealInt, Term)]
- Definition Classes
- IndexedSeqOps → SeqOps → IterableOps
- 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])
- def withFilter(p: ((IdealInt, Term)) => Boolean): WithFilter[(IdealInt, Term), [_]IndexedSeq[_]]
- Definition Classes
- IterableOps
- def zip[B](that: IterableOnce[B]): IndexedSeq[((IdealInt, Term), B)]
- Definition Classes
- IterableOps
- def zipAll[A1 >: (IdealInt, Term), B](that: Iterable[B], thisElem: A1, thatElem: B): IndexedSeq[(A1, B)]
- Definition Classes
- IterableOps
- def zipWithIndex: IndexedSeq[((IdealInt, Term), Int)]
- Definition Classes
- IterableOps → IterableOnceOps
Deprecated Value Members
- final def /:[B](z: B)(op: (B, (IdealInt, Term)) => B): B
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use foldLeft instead of /:
- final def :\[B](z: B)(op: ((IdealInt, Term), B) => B): B
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use foldRight instead of :\
- def aggregate[B](z: => B)(seqop: (B, (IdealInt, Term)) => B, combop: (B, B) => B): B
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) For sequential collections, prefer
foldLeft(z)(seqop)
. For parallel collections, useParIterableLike#aggregate
.
- def companion: IterableFactory[[_]IndexedSeq[_]]
- Definition Classes
- IterableOps
- Annotations
- @deprecated @deprecatedOverriding() @inline()
- Deprecated
(Since version 2.13.0) Use iterableFactory instead
- final def copyToBuffer[B >: (IdealInt, Term)](dest: Buffer[B]): Unit
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use
dest ++= coll
instead
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)
- def hasDefiniteSize: Boolean
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details)
- final def prefixLength(p: ((IdealInt, Term)) => Boolean): Int
- Definition Classes
- SeqOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use segmentLength instead of prefixLength
- final def repr: IndexedSeq[(IdealInt, Term)]
- Definition Classes
- IterableOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use coll instead of repr in a collection implementation, use the collection value itself from the outside
- def reverseMap[B](f: ((IdealInt, Term)) => B): IndexedSeq[B]
- Definition Classes
- SeqOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .reverseIterator.map(f).to(...) instead of .reverseMap(f)
- def seq: LinearCombination2.this.type
- Definition Classes
- Iterable
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Iterable.seq always returns the iterable itself
- final def toIterable: LinearCombination2.this.type
- Definition Classes
- Iterable → IterableOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.7) toIterable is internal and will be made protected; its name is similar to
toList
ortoSeq
, but it doesn't copy non-immutable collections
- final def toIterator: Iterator[(IdealInt, Term)]
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use .iterator instead of .toIterator
- final def toStream: Stream[(IdealInt, Term)]
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use .to(LazyList) instead of .toStream
- final def toTraversable: Traversable[(IdealInt, Term)]
- Definition Classes
- IterableOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) toTraversable is internal and will be made protected; its name is similar to
toList
ortoSeq
, but it doesn't copy non-immutable collections
- final def union[B >: (IdealInt, Term)](that: Seq[B]): IndexedSeq[B]
- Definition Classes
- SeqOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use
concat
instead
- def view(from: Int, until: Int): IndexedSeqView[(IdealInt, Term)]
- Definition Classes
- IndexedSeqOps → IterableOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .view.slice(from, until) instead of .view(from, until)