home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l460 / 2.ddi / ELMAT.DI$ / FLOPS.M < prev    next >
Encoding:
Text File  |  1993-03-07  |  826 b   |  18 lines

  1. %FLOPS    Count of floating point operations.
  2. %     FLOPS returns the cumulative number of floating point 
  3. %     operations. FLOPS(0) resets the count to zero.
  4. %     It is not feasible to count absolutely all floating point
  5. %     operations, but most of the important ones are counted.
  6. %     Additions and subtractions are one flop if real and two if
  7. %     complex. Multiplications and divisions count one flop each
  8. %     if the result is real and six flops if it is not.
  9. %     Elementary functions count one if real and more if complex.
  10. %     Some examples. If A and B are real N-by-N matrices, then
  11. %             A + B   counts N^2 flops,
  12. %             A * B   counts 2*N^3 flops,
  13. %             A ^ 100 counts 99*2*N^3 flops,
  14. %             LU(A)   counts roughly (2/3)*N^3 flops.
  15.  
  16. %    Copyright (c) 1984-93 by The MathWorks, Inc.
  17. %    Built-in function.
  18.