Naphtali Sandholm MethodSolve Block Tridiagonal Method
Solves a block-tridiagonal linear system J*dx = rhs using the Thomas algorithm for block matrices.
O(nBlocks * blockSize^3) instead of O(n^3) for dense solve.
Definition
Namespace: DWSIM.UnitOperations.UnitOperations.Auxiliary.SepOps.SolvingMethods
Assembly: DWSIM.UnitOperations (in DWSIM.UnitOperations.dll) Version: 10.0.0.0
Assembly: DWSIM.UnitOperations (in DWSIM.UnitOperations.dll) Version: 10.0.0.0
C#
private static double[] SolveBlockTridiagonal(
double[,] J,
double[] rhs,
int blockSize,
int nBlocks
)VB
Private Shared Function SolveBlockTridiagonal (
J As Double(,),
rhs As Double(),
blockSize As Integer,
nBlocks As Integer
) As Double()