Mercurial > octave-nkf
comparison liboctave/dim-vector.h @ 8721:e9cb742df9eb
imported patch sort3.diff
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Wed, 11 Feb 2009 15:25:53 +0100 |
parents | 7cbe01c21986 |
children | eb63fbe60fab |
comparison
equal
deleted
inserted
replaced
8720:dda421a1f1e6 | 8721:e9cb742df9eb |
---|---|
501 } | 501 } |
502 | 502 |
503 return retval; | 503 return retval; |
504 } | 504 } |
505 } | 505 } |
506 | |
507 bool is_vector (void) const | |
508 { | |
509 return (length () == 2 && (elem (0) == 1 || elem (1) == 1)); | |
510 } | |
511 | |
506 }; | 512 }; |
507 | 513 |
508 static inline bool | 514 static inline bool |
509 operator == (const dim_vector& a, const dim_vector& b) | 515 operator == (const dim_vector& a, const dim_vector& b) |
510 { | 516 { |