Packages

class IndexEquationSolver extends ExpressionEquationIndexifier

Seek an approximately stable distribution for equations given in terms of indices, hence solving the equations (approximately). Here stable distribution is under the iteration to solve equations viewing them as fixed points. A few quantitites related to the solutions, or the equations themselves, are also computed.

Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. IndexEquationSolver
  2. ExpressionEquationIndexifier
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new IndexEquationSolver(initMap: Map[Expression, Double], equationVec: Vector[Equation], params: (Coeff[_]) => Option[Double], maxRatio: Double, resolution: Double, exponent: Double, decay: Double, maxTime: Option[Long], previousMap: Option[Map[Expression, Double]])

    initMap

    initial values of some expressions

    params

    values of coefficients in the equations

    maxRatio

    bound on ratio of stabilization

    resolution

    additive scale for stabilization and some auxiliary quantities

    exponent

    the next step is stabilized using geometric means, weighted by the exponent

    decay

    decay of the exponent, to allow steps to be damped progressively more

    maxTime

    time in milliseconds for timing out stabilizations

    previousMap

    an optional previous map to initialize

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from IndexEquationSolver toany2stringadd[IndexEquationSolver] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (IndexEquationSolver, B)
    Implicit
    This member is added by an implicit conversion from IndexEquationSolver toArrowAssoc[IndexEquationSolver] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def bigRatio(v: Vector[Double], w: Vector[Double], bound: Double = maxRatio): Vector[((Double, Double), Int)]
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  9. lazy val constantEquations: Set[Int]
  10. def ensuring(cond: (IndexEquationSolver) => Boolean, msg: => Any): IndexEquationSolver
    Implicit
    This member is added by an implicit conversion from IndexEquationSolver toEnsuring[IndexEquationSolver] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: (IndexEquationSolver) => Boolean): IndexEquationSolver
    Implicit
    This member is added by an implicit conversion from IndexEquationSolver toEnsuring[IndexEquationSolver] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean, msg: => Any): IndexEquationSolver
    Implicit
    This member is added by an implicit conversion from IndexEquationSolver toEnsuring[IndexEquationSolver] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean): IndexEquationSolver
    Implicit
    This member is added by an implicit conversion from IndexEquationSolver toEnsuring[IndexEquationSolver] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equalSupport(v: Vector[Double], w: Vector[Double]): Boolean
  16. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  17. def equationGradients(v: ParSeq[Double]): ParVector[ParVector[Double]]
  18. val equationVec: Vector[Equation]
  19. lazy val finalMap: Map[Expression, Double]

    values of expressions in an approximately stable solution to the equation

    values of expressions in an approximately stable solution to the equation

    returns

    map of approximate solution values

  20. lazy val finalVec: ParVector[Double]

    vector of values (at indices) in an approximately stable solution to the equation

    vector of values (at indices) in an approximately stable solution to the equation

    returns

    vector of approximate solution values

  21. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from IndexEquationSolver toStringFormat[IndexEquationSolver] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  22. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  23. def getProd(exp: Expression): ProductIndexExpression
  24. def gradient(index: Int, decay: Double = 1.0, depth: Int): Vector[(Int, Double)]
  25. def gradientNextStep(predecessor: Vector[(Int, Double)]): Vector[(Int, Double)]
  26. def gradientStep(index: Int): Vector[(Int, Double)]
  27. val gradientTerms: Vector[ArrayBuffer[Vector[(Int, Double)]]]
  28. def gradientUptoMemo(j: Int, depth: Int): Vector[Vector[(Int, Double)]]
  29. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  30. lazy val indexMap: Map[Expression, Int]
  31. lazy val initPar: ParMap[Expression, Double]
  32. lazy val initTermIndices: Vector[Int]
  33. lazy val initTypIndices: Vector[Int]
  34. lazy val initVector: ParVector[Double]
  35. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  36. def mapToIndexMap[V](m: Map[Expression, V]): Map[Int, V]
  37. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  38. def nextTraceSet(current: Set[Set[Int]], relativeTo: Set[Int]): Set[Set[Int]]
  39. def nextTraceVector(current: Vector[Vector[Int]]): Vector[Vector[Int]]
  40. def nextVec(v: ParVector[Double], exponent: Double): ParVector[Double]
  41. def normalizedBounded(v: Vector[Double], w: Vector[Double], report: Boolean = false): Boolean
  42. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  43. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  44. val numVars: Int
  45. def orthonormalGradients(v: ParSeq[Double], cutoff: Double = 0.0): ParVector[ParVector[Double]]
  46. def proofData(typ: Typ[Term]): Vector[(Int, Equation)]
  47. lazy val randomVarIndices: ParVector[Vector[Int]]
  48. def ratioBounded(v: Vector[Double], w: Vector[Double], bound: Double = maxRatio): Boolean
  49. final def recTraceSet(current: Set[Set[Int]], depth: Int, relativeTo: Set[Int], accum: Set[Set[Int]]): Set[Set[Int]]
    Definition Classes
    ExpressionEquationIndexifier
    Annotations
    @tailrec()
  50. def restrict(v: Vector[Double], indices: Vector[Int]): Vector[Double]
  51. lazy val rhsExprs: Vector[SumIndexExpression]
  52. lazy val rhsExprsPar: ParVector[SumIndexExpression]
  53. def rhsInvolves(js: Set[Int]): Set[Int]
  54. def simpleNextVec(v: ParVector[Double]): ParVector[Double]
  55. def simplify(exp: Expression): SumIndexExpression
  56. lazy val size: Int
  57. final def stableSupportVec(initVec: ParVector[Double], maxTime: Option[Long], steps: Long): ParVector[Double]
    Annotations
    @tailrec()
  58. final def stableVec(initVec: ParVector[Double], exponent: Double = 0.5, decay: Double, maxTime: Option[Long], steps: Long): ParVector[Double]
    Annotations
    @tailrec()
  59. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  60. lazy val termIndexVec: Vector[(Term, Int)]
  61. lazy val termIndices: Vector[Int]
  62. lazy val thmPfIndices: Map[Int, Vector[Int]]
  63. def toString(): String
    Definition Classes
    AnyRef → Any
  64. lazy val totalProbEquations: ParVector[ParVector[Double]]
  65. def traceIndices(j: Int, depth: Int): Vector[Int]
  66. def traceSet(elem: Expression, depth: Int, relativeTo: Set[Int]): Set[Set[Int]]
  67. def track(exp: Expression): Option[(Int, Double, SumIndexExpression, Double, Vector[Double])]
  68. def trackOutput(exp: Expression): String
  69. lazy val typIndexVec: Vector[(Typ[Term], Int)]
  70. lazy val typIndices: Vector[Int]
  71. lazy val varVec: Vector[Expression]
  72. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  73. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  74. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated
  2. def [B](y: B): (IndexEquationSolver, B)
    Implicit
    This member is added by an implicit conversion from IndexEquationSolver toArrowAssoc[IndexEquationSolver] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromIndexEquationSolver to any2stringadd[IndexEquationSolver]

Inherited by implicit conversion StringFormat fromIndexEquationSolver to StringFormat[IndexEquationSolver]

Inherited by implicit conversion Ensuring fromIndexEquationSolver to Ensuring[IndexEquationSolver]

Inherited by implicit conversion ArrowAssoc fromIndexEquationSolver to ArrowAssoc[IndexEquationSolver]

Ungrouped