You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/1_MainFunctions.jl
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -106,7 +106,7 @@ A function for finding the fixed point of another function
106
106
* `quiet_errors` - If true the function will return everything already calculated as soon as an error occurs. The callstack that lead to the error is not returned however. If false an error will be thrown with a callstack.
107
107
* `other_outputs` - This allows you to pass in side products (as in Other_Output_ in a FixedPointResults struct). It is only used if the FixedPointResults that is input has already found a fixedpoint.
108
108
### Returns
109
-
* A list containing the fixed_point, the Inputs and corresponding Outputs, and convergence values (which are computed under the "ConvergenceMetric").
109
+
* A `FixedPointResults` struct containing the fixed_point, the Inputs and corresponding Outputs, and convergence values (which are computed under the "ConvergenceMetric").
110
110
The list will also include a "Finish" statement describing why it has finished. This is often going to be due to either MaxIter or ConvergenceMetricThreshold being
111
111
reached. It may also terminate due to an error in generating a new input guess or using the function with that guess. If this occurs the function will terminate early
112
112
and the "Finish" statement will describe the issue. In this event there will also be additional objects returned in the list "NewInputVector" and possibly
@@ -253,18 +253,18 @@ end
253
253
ConditionNumberThreshold::R = AbstractFloat(1000), PrintReports::Bool = false, ReplaceInvalids::InvalidReplacement = :NoAction) where R<:Real where S<:Real where T<:Real
254
254
255
255
This function takes the previous inputs and outputs from the fixed_point function and determines what vector to try next in seeking a fixed point.
256
-
### Takes
257
-
* Inputs - This is an N x A matrix of previous inputs for which corresponding outputs are available. In this case N is the dimensionality of the fixed point vector that is being sought (Hence each column is a matrix that is input to the "Function") and A is the number of previous Inputs/Outputs that are being provided to the fixed point.
258
-
* Outputs - This is a matrix of Function values for the each column of the "Inputs" matrix.
259
-
* Algorithm - This is the fixed point Algorithm to be used. It can be "Anderson", "Simple", "Aitken", "Newton", "MPE", "RRE", "VEA", "SEA".
260
-
* MaxM - This is the number of saved iterates that are used in the Anderson algorithm. This has no role if another Algorithm is used.
261
-
* SimpleStartIndex - This is the index for what column in the input/output matrices did the algorithm start doing simple iterates without jumps. This is used for all Algorithms except the simple and Anderson Algorithms where it has no effect.
262
-
* ExtrapolationPeriod - This is the number of simple iterates to perform before extrapolating. This is used for the MPE, RRE, VEA and SEA Algorithms and has no effect if another Algorithm is chosen.
263
-
* Dampening - This is the dampening parameter. By default it is 1 which means no dampening takes place. It can also be less than 1 (indicating dampening) or more than 1 (indicating extrapolation).
264
-
* ConditionNumberThreshold - This is what threshold should be chosen to drop previous iterates if the matrix is ill conditioned. Only used in Anderson acceleration.
265
-
* PrintReports - This is a boolean describing whether to print ongoing ConvergenceMetric values for each iterate.
256
+
### Inputs
257
+
* `Inputs` - This is an N x A matrix of previous inputs for which corresponding outputs are available. In this case N is the dimensionality of the fixed point vector that is being sought (Hence each column is a matrix that is input to the "Function") and A is the number of previous Inputs/Outputs that are being provided to the fixed point.
258
+
* `Outputs` - This is a matrix of Function values for the each column of the `Inputs` matrix.
259
+
* `Algorithm` - This is the fixed point Algorithm to be used. It can be "Anderson", "Simple", "Aitken", "Newton", "MPE", "RRE", "VEA", "SEA".
260
+
* `MaxM` - This is the number of saved iterates that are used in the Anderson algorithm. This has no role if another Algorithm is used.
261
+
* `SimpleStartIndex` - This is the index for what column in the input/output matrices did the algorithm start doing simple iterates without jumps. This is used for all Algorithms except the simple and Anderson Algorithms where it has no effect.
262
+
* `ExtrapolationPeriod` - This is the number of simple iterates to perform before extrapolating. This is used for the MPE, RRE, VEA and SEA Algorithms and has no effect if another Algorithm is chosen.
263
+
* `Dampening` - This is the dampening parameter. By default it is 1 which means no dampening takes place. It can also be less than 1 (indicating dampening) or more than 1 (indicating extrapolation).
264
+
* `ConditionNumberThreshold` - This is what threshold should be chosen to drop previous iterates if the matrix is ill conditioned. Only used in Anderson acceleration.
265
+
* `PrintReports` - This is a boolean describing whether to print ongoing ConvergenceMetric values for each iterate.
266
266
### Returns
267
-
* A nicely formatted string version of the input number for printing to the console.
267
+
* A `Vector` of the next guess for the fixed point.
0 commit comments