Scilab 6.1.0
Change language to:
English - Français - Português - Русский

Please note that the recommended version of Scilab is 2023.1.0. This page might be outdated.
See the recommended documentation of this function

Scilabヘルプ >> Sparses Matrix > Sparse Decompositions > lusolve

# lusolve

### 呼び出し手順

```x=lusolve(hand,b)

x=lusolve(A,b)```

b

A

hand

x

### 説明

`x=lusolve(hand,b)` は疎な線形システム `A*x = b`を解きます.

`[hand,rk]=lufact(A)` は lufact の出力です.

`x=lusolve(A,b)`は,疎な線形システム `A*x = b`を解きます.

### 例

```non_zeros=[1,2,3,4];rows_cols=[1,1;2,2;3,3;4,4];
sp=sparse(rows_cols,non_zeros);
[h,rk]=lufact(sp);x=lusolve(h,[1;1;1;1]);ludel(h)
rk,sp*x
non_zeros=[1,2,3,4];rows_cols=[1,1;2,2;3,3;4,4];
sp=sparse(rows_cols,non_zeros);
x=lusolve(sp,-ones(4,1));
sp*x```

### 参照

• sparse — 疎行列を定義
• lufact — 疎行列LU分解
• slash — (/) 右除算およびフィードバック
• backslash — (\) 左行列除算.
 Report an issue << luget Sparse Decompositions spchol >>

 Copyright (c) 2022-2023 (Dassault Systèmes)Copyright (c) 2017-2022 (ESI Group)Copyright (c) 2011-2017 (Scilab Enterprises)Copyright (c) 1989-2012 (INRIA)Copyright (c) 1989-2007 (ENPC)with contributors Last updated:Tue Feb 25 08:53:22 CET 2020