~logan/ubuntu/trusty/suitesparse/4.2.1-3ubuntu1

« back to all changes in this revision

Viewing changes to UMFPACK/MATLAB/luflop.m

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme
  • Date: 2007-05-29 09:36:29 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070529093629-zowquo0b7slkk6nc
Tags: 3.0.0-2
* suitesparse builds properly twice in a row
* Bug fix: "suitesparse - FTBFS: Broken build depens: libgfortran1-dev",
  thanks to Bastian Blank (Closes: #426349).
* Bug fix: "suitesparse_3.0.0-1: FTBFS: build-depends on
  libgfortran1-dev", thanks to Steve Langasek (Closes: #426354).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
function f = luflop (L, U)
2
 
%LUFLOP
 
1
function f = luflop (L, U)                                                  %#ok
 
2
%LUFLOP given L and U, computes # of flops required to compute them
3
3
%
 
4
% Example:
4
5
% f = luflop (L, U)
5
6
%
6
7
% Given an LU factorization, compute how many flops took to compute it.  This
16
17
% Note: the above expression has a subtle undercount when exact numerical
17
18
% cancelation occurs.  Try [L,U,P] = lu (sparse (ones (10))) and then
18
19
% luflop (L,U).
 
20
%
 
21
% See also LU
19
22
 
20
 
% UMFPACK Version 5.0, Copyright (c) 1995-2006 by Timothy A. Davis.
21
 
% All Rights Reserved.  Type umfpack_details for License.
 
23
% Copyright 1995-2007 by Timothy A. Davis.
22
24
 
23
25
help luflop
24
26
error ('luflop mexFunction not found!  Use umfpack_make to compile luflop.') ;