Lib/octave: replace is_numeric_type() with isnumeric() for Octave >= 4.4

This commit is contained in:
Karl Wette 2018-05-10 20:33:21 +10:00
commit 6f0561eb57

View file

@ -405,7 +405,11 @@ SWIGRUNTIME void swig_acquire_ownership_obj(void *vptr, int own);
if (error_state) return dim_vector(1,1);
}
return d;
#if SWIG_OCTAVE_PREREQ(4,4,0)
} else if (out.is_matrix_type() || out.isnumeric() ) {
#else
} else if (out.is_matrix_type() || out.is_numeric_type() ) {
#endif
if (out.rows()==1 || out.columns()==1) {
Array<int> a = out.int_vector_value();
if (error_state) return dim_vector(1,1);