BiCGM: Biconjugate gradient method [BiCGM] (Метод бисопряженных...

Description Usage Arguments Value Examples

View source: R/BiCGM.R

Description

Non-stationary iterative numerical method for solving SLAEs of the Krylov type. It is a generalization of the conjugate gradient method. (Нестационарный итерационный численный метод решения СЛАУ крыловского типа. Является обобщением метода сопряжённых градиентов.)

Usage

1
BiCGM(A, f, u, eps = 0.001, iterations = 10000)

Arguments

A

- the original matrix of the operator equation - numeric matrix only (исходная матрица операторного уравнения - вещественная только)

f

- bias - numeric or complex vector (вектор свободных членов вещественный или комплексный)

u

- initial approximation of an unknown vector - numeric or complex vector (начальное приближение неизвестного вектора - вещественный или комплексный вектор)

eps

- accuracy of calculation of the desired vector - numeric (точность вычисления искомого вектора - вещественная)

iterations

- the upper limit on the number of iterations when the method diverges (ограничение сверху на число итераций при расхождении метода)

Value

u - unknown vector in some approximation (неизвестный вектор в некотором приближении)

Examples

1
2
3
4
5
A <- diag(rnorm(5, 2), nrow = 5, ncol = 5)
u <- rnorm(5, 12)
f <- rnorm(5, 17)
solve(A) %*% f - BiCGM(A, f, u, iterations = 10000)
all.equal(solve(A) %*% f, BiCGM(A, f, u, iterations = 10000))

qwerty29544/IMSSLAER documentation built on March 9, 2021, 3:29 a.m.