Mercurial > hg > octave-lyh
diff src/ov.h @ 7433:402168152bb9
[project @ 2008-01-31 18:59:09 by dbateman]
author | dbateman |
---|---|
date | Thu, 31 Jan 2008 18:59:11 +0000 |
parents | 745a8299c2b5 |
children | 2467639bd8c0 |
line wrap: on
line diff
--- a/src/ov.h +++ b/src/ov.h @@ -44,6 +44,8 @@ #include "oct-time.h" #include "str-vec.h" +#include "oct-sort.h" + class Cell; class streamoff_array; class Octave_map; @@ -183,6 +185,7 @@ octave_value (bool b); octave_value (const boolMatrix& bm, const MatrixType& t = MatrixType()); octave_value (const boolNDArray& bnda); + octave_value (const ArrayN<bool>& bnda); octave_value (char c, char type = '"'); octave_value (const char *s, char type = '"'); octave_value (const std::string& s, char type = '"'); @@ -200,6 +203,7 @@ octave_value (const Sparse<Complex>& m, const MatrixType& t = MatrixType ()); octave_value (const SparseBoolMatrix& bm, const MatrixType& t = MatrixType ()); + octave_value (const Sparse<bool>& m, const MatrixType& t = MatrixType ()); octave_value (const octave_int8& i); octave_value (const octave_int16& i); octave_value (const octave_int32& i); @@ -229,6 +233,7 @@ octave_value (const Octave_map& m); octave_value (const Octave_map& m, const std::string& id); octave_value (const streamoff_array& off); + octave_value (const ArrayN<std::streamoff>& inda); octave_value (const octave_value_list& m, bool is_cs_list = false); octave_value (octave_value::magic_colon); @@ -860,6 +865,12 @@ mxArray *as_mxArray (void) const { return rep->as_mxArray (); } + octave_value sort (octave_idx_type dim = 0, sortmode mode = UNDEFINED) const + { return rep->sort (dim, mode); } + octave_value sort (Array<octave_idx_type> &sidx, octave_idx_type dim = 0, + sortmode mode = UNDEFINED) const + { return rep->sort (sidx, dim, mode); } + protected: // The real representation.