pub fn linsolve(
operator: &TensorTrain,
rhs: &TensorTrain,
init: TensorTrain,
options: &LinsolveOptions,
) -> Result<TensorTrain>Expand description
Solve (a₀ + a₁ * A) * x = b for x.
§Arguments
operator- The operatorA(MPO as TensorTrain)rhs- The right-hand sideb(MPS as TensorTrain)init- Initial guess forx(MPS as TensorTrain, consumed)options- Solver options
§Returns
The solution x as a TensorTrain.
§Errors
Returns an error if:
- Any tensor train is empty
nhalfsweepsis not a multiple of 2- The solver fails internally