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
- `loginterval::Int` can be set to `>= 1` to specify how frequently to print convergence information. Default: `10`.
665
669
- `normalizeerror::Bool` determines whether to scale the error by the maximum absolute value of `f` found during sampling. If set to `false`, the algorithm continues until the *absolute* error is below `tolerance`. If set to `true`, the algorithm uses the absolute error divided by the maximum sample instead. This is helpful if the magnitude of the function is not known in advance. Default: `true`.
666
670
- `ncheckhistory::Int` is the number of history points to use for convergence checks. Default: `3`.
667
-
- `maxnglobalpivot::Int` can be set to `>= 0`. Default: `5`.
668
-
- `nsearchglobalpivot::Int` can be set to `>= 0`. Default: `5`.
669
-
- `tolmarginglobalsearch` can be set to `>= 1.0`. Seach global pivots where the interpolation error is larger than the tolerance by `tolmarginglobalsearch`. Default: `10.0`.
671
+
- `globalpivotfinder::Union{AbstractGlobalPivotFinder, Nothing}` is a global pivot finder to use for searching global pivots. Default: `nothing`. If `nothing`, a default global pivot finder is used.
672
+
- `maxnglobalpivot::Int` can be set to `>= 0`. Default: `5`. The maximum number of global pivots to add in each iteration.
673
+
- `nsearchglobalpivot::Int` can be set to `>= 0`. Default: `5`. This parameter is used for the default global pivot finder. Deprecated.
674
+
- `tolmarginglobalsearch` can be set to `>= 1.0`. Seach global pivots where the interpolation error is larger than the tolerance by `tolmarginglobalsearch`. Default: `10.0`. This parameter is used for the default global pivot finder. Deprecated.
670
675
- `strictlynested::Bool` determines whether to preserve partial nesting in the TCI algorithm. Default: `false`.
671
676
- `checkbatchevaluatable::Bool` Check if the function `f` is batch evaluatable. Default: `false`.
Cross interpolate a function ``f(\mathbf{u})`` using the TCI2 algorithm. Here, the domain of ``f`` is ``\mathbf{u} \in [1, \ldots, d_1] \times [1, \ldots, d_2] \times \ldots \times [1, \ldots, d_{\mathscr{L}}]`` and ``d_1 \ldots d_{\mathscr{L}}`` are the local dimensions.
@@ -912,27 +910,13 @@ Arguments:
912
910
- `f` is the function to be interpolated. `f` should have a single parameter, which is a vector of the same length as `localdims`. The return type should be `ValueType`.
913
911
- `localdims::Union{Vector{Int},NTuple{N,Int}}` is a `Vector` (or `Tuple`) that contains the local dimension of each index of `f`.
914
912
- `initialpivots::Vector{MultiIndex}` is a vector of pivots to be used for initialization. Default: `[1, 1, ...]`.
915
-
- `tolerance::Float64` is a float specifying the target tolerance for the interpolation. Default: `1e-8`.
916
-
- `pivottolerance::Float64` is a float that specifies the tolerance for adding new pivots, i.e. the truncation of tensor train bonds. It should be <= tolerance, otherwise convergence may be impossible. Default: `tolerance`.
917
-
- `maxbonddim::Int` specifies the maximum bond dimension for the TCI. Default: `typemax(Int)`, i.e. effectively unlimited.
918
-
- `maxiter::Int` is the maximum number of iterations (i.e. optimization sweeps) before aborting the TCI construction. Default: `200`.
919
-
- `sweepstrategy::Symbol` specifies whether to sweep forward (:forward), backward (:backward), or back and forth (:backandforth) during optimization. Default: `:backandforth`.
920
-
- `pivotsearch::Symbol` determins how pivots are searched (`:full` or `:rook`). Default: `:full`.
921
-
- `verbosity::Int` can be set to `>= 1` to get convergence information on standard output during optimization. Default: `0`.
922
-
- `loginterval::Int` can be set to `>= 1` to specify how frequently to print convergence information. Default: `10`.
923
-
- `normalizeerror::Bool` determines whether to scale the error by the maximum absolute value of `f` found during sampling. If set to `false`, the algorithm continues until the *absolute* error is below `tolerance`. If set to `true`, the algorithm uses the absolute error divided by the maximum sample instead. This is helpful if the magnitude of the function is not known in advance. Default: `true`.
924
-
- `ncheckhistory::Int` is the number of history points to use for convergence checks. Default: `3`.
925
-
- `maxnglobalpivot::Int` can be set to `>= 0`. Default: `5`.
926
-
- `nsearchglobalpivot::Int` can be set to `>= 0`. Default: `5`.
927
-
- `tolmarginglobalsearch` can be set to `>= 1.0`. Seach global pivots where the interpolation error is larger than the tolerance by `tolmarginglobalsearch`. Default: `10.0`.
928
-
- `strictlynested::Bool=false` determines whether to preserve partial nesting in the TCI algorithm. Default: `true`.
929
-
- `checkbatchevaluatable::Bool` Check if the function `f` is batch evaluatable. Default: `false`.
913
+
914
+
Refer to [`optimize!`](@ref) for other keyword arguments such as `tolerance`, `maxbonddim`, `maxiter`.
930
915
931
916
Notes:
932
917
- Set `tolerance` to be > 0 or `maxbonddim` to some reasonable value. Otherwise, convergence is not reachable.
933
918
- By default, no caching takes place. Use the [`CachedFunction`](@ref) wrapper if your function is expensive to evaluate.
934
919
935
-
936
920
See also: [`optimize!`](@ref), [`optfirstpivot`](@ref), [`CachedFunction`](@ref), [`crossinterpolate1`](@ref)
937
921
"""
938
922
functioncrossinterpolate2(
@@ -947,7 +931,6 @@ function crossinterpolate2(
947
931
return tci, ranks, errors
948
932
end
949
933
950
-
951
934
"""
952
935
Search global pivots where the interpolation error exceeds `abstol`.
0 commit comments