Description Usage Arguments Details Value
Preconditioned conjugate gradient method for solving system of linear equations Ax = b, where A is symmetric and positive definite.
1 | pcgsolve(b, M, alph, L, dx, tol = 1e-06, maxIter = 1000L)
|
b |
vector, with same dimension as number of rows of A. |
M |
matrix, preconditioner matrix defined interal to |
alph |
numeric, regularization parameter used in |
L |
matrix, linearized diffusion matrix internal to |
dx |
numeric, grid spacing used in |
tol |
numeric, threshold for convergence, default is |
maxIter |
numeric, maximum iteration, default is |
Code is a slightly modified version of pcgsolve
A vector representing solution x.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.