1function [stats x N NT] = spqr_failure (f, stats, get_details, start_tic)
2%SPQR_FAILURE clean-up from failure
3% Not user-callable.
4
5% Copyright 2012, Leslie Foster and Timothy A Davis
6
7stats.flag = f ;
8x = [ ] ;
9N = [ ] ;
10NT = [ ] ;
11if get_details == 1
12    % order the fields of stats in a convenient order (the fields when
13    % get_details is 0 or 2 are already in a good order)
14    stats.time = -1 ;
15    stats = spqr_rank_order_fields (stats) ;
16    stats.time = toc (start_tic) ;
17end
18