Mercurial > octave
diff liboctave/numeric/svd.cc @ 33248:7f73e4805a1f
replace calls to assert with liboctave_panic functions liboctave
* lo-error.h (liboctave_panic_impossible, liboctave_panic_if,
liboctave_panic_unless): New macros.
Replace all calls to assert with panic_if, panic_impossible, or
panic_unless as appropriate. Include "lo-error.h" as needed. Don't
include <cassert>. Affected files: Array-base.cc, Array-util.cc,
Array.h, CSparse.cc, DiagArray2.cc, 1 DiagArray2.h, Sparse.cc,
Sparse.h, dim-vector.h, idx-vector.cc, idx-vector.h, CollocWt.cc,
Quad.cc, oct-rand.cc, qrp.cc, svd.cc, Sparse-perm-op-defs.h, and
oct-sort.cc.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 24 Mar 2024 18:12:34 -0400 |
parents | f53ac65ffba6 |
children |
line wrap: on
line diff
--- a/liboctave/numeric/svd.cc Mon Mar 25 00:43:53 2024 -0400 +++ b/liboctave/numeric/svd.cc Sun Mar 24 18:12:34 2024 -0400 @@ -27,8 +27,6 @@ # include "config.h" #endif -#include <cassert> - #include <algorithm> #include <unordered_map> @@ -774,7 +772,7 @@ work, lwork, info); else if (m_driver == svd::Driver::GESDD) { - assert (jobu == jobv); + liboctave_panic_unless (jobu == jobv); char jobz = jobu; std::vector<F77_INT> iwork (8 * std::min (m, n));