kusano 7d535a
function [L,U,prow,pcol] = mexsuperlu(A,psparse);
kusano 7d535a
% MEXSUPERLU : Supernodal LU factorization
kusano 7d535a
%
kusano 7d535a
%  MEXSUPERLU is the mex-file version of the supernodal factorization.
kusano 7d535a
%  The user will normally call SUPERLU, which calls MEXSUPERLU.
kusano 7d535a
%  See SUPERLU for a description of parameters.
kusano 7d535a
kusano 7d535a
% Above is the text for HELP MEXSUPERLU; the following will be executed 
kusano 7d535a
% only if the mex-file appropriate for the machine can't be found.
kusano 7d535a
kusano 7d535a
disp('Warning:  Executable mexsuperlu.mex not found for this architecture.');
kusano 7d535a
disp('The supernodal LU package seems not to be installed for Matlab.');
kusano 7d535a
n = max(size(A));
kusano 7d535a
L = sparse(n,n);
kusano 7d535a
U = sparse(n,n);
kusano 7d535a
prow = 1:n;
kusano 7d535a
pcol = 1:n;