Click or drag to resize

CPGULUBackSub Method

Solve a linear system using LU decomposition and back-substitution.

Namespace:  Geosoft.Desktop.GXNet
Assembly:  geosoft.desktop.gxnet (in geosoft.desktop.gxnet.dll) Version: 2024.2.0.25
Syntax
public static void LUBackSub(
	CPG pg_a,
	CVV vv_i,
	CVV vv_b,
	CVV vv_sol
)

public static void LUBackSub(
	CPG pg_a,
	CVV vv_i,
	CVV vv_b,
	CVV vv_sol
)

Parameters

pg_a
Type: GeoEngine.Core.GXNetCPG
LU decomposition of A
vv_i
Type: GeoEngine.Core.GXNetCVV
Permutation vector (type INT)
vv_b
Type: GeoEngine.Core.GXNetCVV
Right hand side vector B (input)
vv_sol
Type: GeoEngine.Core.GXNetCVV
Solution vector (output)
Remarks
Solves the system Ax = b for a given b, using the LU decomposition of the matrix a The LU decomposition and the permutation vector are obtained from LUBackSub_PGU. Pagers and VVs must be type <define>GS_DOUBLE</define> except for the permutation vector, which should be INT
See Also