Mercurial > hg > octave-nkf
diff src/ov-perm.h @ 10304:2ceae0b40515
fix builtin_type for permutation matrices, avoid segfaults with invalid values in get_dispatch_type
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Wed, 10 Feb 2010 22:12:36 +0100 |
parents | f80c566bc751 |
children | f3b65e1ae355 |
line wrap: on
line diff
--- a/src/ov-perm.h +++ b/src/ov-perm.h @@ -100,6 +100,8 @@ sortmode is_sorted_rows (sortmode mode = UNSORTED) const { return to_dense ().is_sorted_rows (mode); } + builtin_type_t builtin_type (void) const { return btyp_double; } + bool is_perm_matrix (void) const { return true; } bool is_matrix_type (void) const { return true; }