Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2024.1.0 - Русский


lusolve

sparse linear system solver

Syntax

x=lusolve(hand,b)
x=lusolve(A,b)

Arguments

b

full real matrix

A

real square sparse invertible matrix

hand

handle to a previously computed sparse lu factors (output of lufact)

x

full real matrix

Description

x=lusolve(hand,b) solves the sparse linear system A*x = b.

[hand,rk]=lufact(A) is the output of lufact.

x=lusolve(A,b) solves the sparse linear system A*x = b

Examples

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

See also

  • sparse — sparse matrix definition
  • lufact — sparse lu factorization
  • slash — (/) правое деление и обратная связь
  • backslash — (\) левое матричное деление: точное решение или решение по методу наименьших квадратов
Report an issue
<< luget Sparse Decompositions spchol >>

Copyright (c) 2022-2024 (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:
Mon Jun 17 17:55:06 CEST 2024