Mercurial > octave-nkf
comparison src/ov-str-mat.h @ 5533:667ad2becb63
[project @ 2005-11-10 21:40:48 by jwe]
author | jwe |
---|---|
date | Thu, 10 Nov 2005 21:40:49 +0000 |
parents | c7e3cf2fce3e |
children | 6286c96121c2 |
comparison
equal
deleted
inserted
replaced
5532:8ad54ce6a831 | 5533:667ad2becb63 |
---|---|
91 void assign (const octave_value_list& idx, const charMatrix& rhs); | 91 void assign (const octave_value_list& idx, const charMatrix& rhs); |
92 | 92 |
93 octave_value reshape (const dim_vector& new_dims) const | 93 octave_value reshape (const dim_vector& new_dims) const |
94 { return octave_value (charNDArray (matrix.reshape (new_dims)), true); } | 94 { return octave_value (charNDArray (matrix.reshape (new_dims)), true); } |
95 | 95 |
96 octave_value permute (const Array<int>& vec, bool inv = false) const | |
97 { return octave_value (charNDArray (matrix.permute (vec, inv)), true); } | |
98 | |
99 octave_value resize (const dim_vector& dv) const | |
100 { | |
101 charNDArray retval (matrix); | |
102 retval.resize (dv); | |
103 return octave_value (retval, true); | |
104 } | |
105 | |
96 bool is_string (void) const { return true; } | 106 bool is_string (void) const { return true; } |
97 | 107 |
98 bool is_real_type (void) const { return false; } | 108 bool is_real_type (void) const { return false; } |
99 | 109 |
100 bool is_matrix_type (void) const { return false; } | 110 bool is_matrix_type (void) const { return false; } |
192 | 202 |
193 ~octave_char_matrix_sq_str (void) { } | 203 ~octave_char_matrix_sq_str (void) { } |
194 | 204 |
195 octave_value *clone (void) const { return new octave_char_matrix_sq_str (*this); } | 205 octave_value *clone (void) const { return new octave_char_matrix_sq_str (*this); } |
196 octave_value *empty_clone (void) const { return new octave_char_matrix_sq_str (); } | 206 octave_value *empty_clone (void) const { return new octave_char_matrix_sq_str (); } |
207 | |
208 octave_value reshape (const dim_vector& new_dims) const | |
209 { return octave_value (charNDArray (matrix.reshape (new_dims)), true, '\''); } | |
210 | |
211 octave_value permute (const Array<int>& vec, bool inv = false) const | |
212 { return octave_value (charNDArray (matrix.permute (vec, inv)), true, '\''); } | |
213 | |
214 octave_value resize (const dim_vector& dv) const | |
215 { | |
216 charNDArray retval (matrix); | |
217 retval.resize (dv); | |
218 return octave_value (retval, true, '\''); | |
219 } | |
197 | 220 |
198 bool is_sq_string (void) const { return true; } | 221 bool is_sq_string (void) const { return true; } |
199 | 222 |
200 octave_value do_index_op (const octave_value_list& idx, int resize_ok) | 223 octave_value do_index_op (const octave_value_list& idx, int resize_ok) |
201 { return do_index_op_internal (idx, resize_ok, '\''); } | 224 { return do_index_op_internal (idx, resize_ok, '\''); } |