78
82
elseif (m1 == 1 & ~issparse (b)) %#ok
80
84
% the UMFPACK '\' requires b to be a dense column vector
81
x = umfpack2 (b, '/', A, Control) ;
85
[x info] = umfpack2 (b, '/', A, Control) ;
85
90
% factorize with UMFPACK and do the forward/back solves in MATLAB
86
91
% this mimics the behavior of x = b/A, except for the row scaling
87
[L, U, P, Q, R] = umfpack2 (A.', Control) ;
92
[L, U, P, Q, R, info] = umfpack2 (A.', Control) ;
88
93
x = (Q * (U \ (L \ (P * (R \ (b.')))))).' ;
91
97
% [L, U, P, Q, r] = umfpack2 (A, Control) ;