Mercurial > hg > octave-lyh
comparison liboctave/boolMatrix.h @ 5275:23b37da9fd5b
[project @ 2005-04-08 16:07:35 by jwe]
author | jwe |
---|---|
date | Fri, 08 Apr 2005 16:07:37 +0000 |
parents | e35b034d3523 |
children | 4c8a2e4e0717 |
comparison
equal
deleted
inserted
replaced
5274:eae7b40388e9 | 5275:23b37da9fd5b |
---|---|
32 boolMatrix : public Array2<bool> | 32 boolMatrix : public Array2<bool> |
33 { | 33 { |
34 public: | 34 public: |
35 | 35 |
36 boolMatrix (void) : Array2<bool> () { } | 36 boolMatrix (void) : Array2<bool> () { } |
37 boolMatrix (int r, int c) : Array2<bool> (r, c) { } | 37 boolMatrix (octave_idx_type r, octave_idx_type c) : Array2<bool> (r, c) { } |
38 boolMatrix (int r, int c, bool val) : Array2<bool> (r, c, val) { } | 38 boolMatrix (octave_idx_type r, octave_idx_type c, bool val) : Array2<bool> (r, c, val) { } |
39 boolMatrix (const Array2<bool>& a) : Array2<bool> (a) { } | 39 boolMatrix (const Array2<bool>& a) : Array2<bool> (a) { } |
40 boolMatrix (const boolMatrix& a) : Array2<bool> (a) { } | 40 boolMatrix (const boolMatrix& a) : Array2<bool> (a) { } |
41 | 41 |
42 boolMatrix& operator = (const boolMatrix& a) | 42 boolMatrix& operator = (const boolMatrix& a) |
43 { | 43 { |
50 | 50 |
51 boolMatrix transpose (void) const { return Array2<bool>::transpose (); } | 51 boolMatrix transpose (void) const { return Array2<bool>::transpose (); } |
52 | 52 |
53 // destructive insert/delete/reorder operations | 53 // destructive insert/delete/reorder operations |
54 | 54 |
55 boolMatrix& insert (const boolMatrix& a, int r, int c); | 55 boolMatrix& insert (const boolMatrix& a, octave_idx_type r, octave_idx_type c); |
56 | 56 |
57 // unary operations | 57 // unary operations |
58 | 58 |
59 boolMatrix operator ! (void) const; | 59 boolMatrix operator ! (void) const; |
60 | 60 |
72 | 72 |
73 static bool resize_fill_value (void) { return false; } | 73 static bool resize_fill_value (void) { return false; } |
74 | 74 |
75 private: | 75 private: |
76 | 76 |
77 boolMatrix (bool *b, int r, int c) : Array2<bool> (b, r, c) { } | 77 boolMatrix (bool *b, octave_idx_type r, octave_idx_type c) : Array2<bool> (b, r, c) { } |
78 }; | 78 }; |
79 | 79 |
80 MM_CMP_OP_DECLS (boolMatrix, boolMatrix) | 80 MM_CMP_OP_DECLS (boolMatrix, boolMatrix) |
81 | 81 |
82 #endif | 82 #endif |