1
function [out1, out2, out3, out4, out5] = umfpack2(in1, in2, in3, in4, in5) %#ok
2
%UMFPACK2 computes x=A\b, x=A/b, or lu (A) for a sparse matrix A
3
% It is also a built-in function in MATLAB, used in x=A\b.
7
% UMFPACK: | MATLAB approximate equivalent:
8
% ---------------------------------------------------------------------
9
% x = umfpack2 (A, '\', b) ; | x = A \ b
11
% x = umfpack2 (b, '/', A) ; | x = b / A
13
% [L,U,P,Q] = umfpack2 (A) ; | [m,n] = size (A) ;
15
% | Q = I (:, colamd (A)) ;
16
% | [L,U,P] = lu (A*Q) ;
18
% [L,U,P,Q,R] = umfpack2 (A) ; | [m,n] = size (A) ;
20
% | Q = I (:, colamd (A)) ;
21
% | r = full (sum (abs (A), 2)) ;
22
% | r (find (r == 0)) = 1 ;
23
% | R = spdiags (r, 0, m, m) ;
24
% | [L,U,P] = lu ((R\A)*Q) ;
26
% [P,Q,F,C] = umfpack2 (A, 'symbolic')| [m,n] = size (A) ;
28
% | Q = I (:, colamd (A)) ;
29
% | [count,h,parent,post] = ...
30
% | symbfact (A*Q, 'col') ;
32
% A must be sparse. It can be complex, singular, and/or rectangular. A must be
33
% square for '/' or '\'. b must be a full real or complex vector. For
34
% [L,U,P,Q,R] = umfpack2 (A), the factorization is L*U = P*(R\A)*Q. If A has a
35
% mostly symmetric nonzero pattern, then replace "colamd" with "amd" in the
36
% MATLAB-equivalent column in the table above. Type umfpack_details for more
39
% See also: lu_normest, colamd, amd, umfpack.
40
% To use UMFPACK for an arbitrary b, see umfpack_solve.
42
% Copyright 1995-2007 by Timothy A. Davis.
45
error ('umfpack2 mexFunction not found') ;