# gf_linsolve¶

```X = gf_linsolve('gmres', spmat M, vec b[, int restart][, precond P][,'noisy'][,'res', r][,'maxiter', n])
X = gf_linsolve('cg', spmat M, vec b [, precond P][,'noisy'][,'res', r][,'maxiter', n])
X = gf_linsolve('bicgstab', spmat M, vec b [, precond P][,'noisy'][,'res', r][,'maxiter', n])
{U, cond} = gf_linsolve('lu', spmat M, vec b)
{U, cond} = gf_linsolve('superlu', spmat M, vec b)
{U, cond} = gf_linsolve('mumps', spmat M, vec b)
```

コマンドリスト

`X = gf_linsolve('gmres', spmat M, vec b[, int restart][, precond P][,'noisy'][,'res', r][,'maxiter', n])`

GMRES法で M.X = b を解く．

`X = gf_linsolve('cg', spmat M, vec b [, precond P][,'noisy'][,'res', r][,'maxiter', n])`

オプションで前処理 P を使用します．

`X = gf_linsolve('bicgstab', spmat M, vec b [, precond P][,'noisy'][,'res', r][,'maxiter', n])`

オプションで前処理 P を使用します．

`{U, cond} = gf_linsolve('lu', spmat M, vec b)`

gf_linsolve('superlu',...) のエイリアス

`{U, cond} = gf_linsolve('superlu', spmat M, vec b)`

M.U = b を解くには，SuperLUソルバ(疎LU分解)を適用します．

`{U, cond} = gf_linsolve('mumps', spmat M, vec b)`

MUMPSソルバーを使用して， M.U = b を解きます．