Mercurial > octave-nkf
comparison liboctave/fDiagMatrix.cc @ 9812:f80c566bc751
improve unary mapper system
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Thu, 12 Nov 2009 15:47:58 +0100 |
parents | 7c6d5d8c8d37 |
children | 4c0cdbe0acca |
comparison
equal
deleted
inserted
replaced
9811:c657c056240d | 9812:f80c566bc751 |
---|---|
374 } | 374 } |
375 | 375 |
376 float | 376 float |
377 FloatDiagMatrix::rcond (void) const | 377 FloatDiagMatrix::rcond (void) const |
378 { | 378 { |
379 FloatColumnVector av = diag (0).map (fabsf); | 379 FloatColumnVector av = diag (0).map<float> (fabsf); |
380 float amx = av.max (), amn = av.min (); | 380 float amx = av.max (), amn = av.min (); |
381 return amx == 0 ? 0.0f : amn / amx; | 381 return amx == 0 ? 0.0f : amn / amx; |
382 } | 382 } |
383 | 383 |
384 std::ostream& | 384 std::ostream& |