64 if (r < 0 || r >=
rows () || c < 0 || c + s_len - 1 >
cols ())
66 (*current_liboctave_error_handler) (
"range error for insert");
91 if (r == 0 && (nr == 0 || nc == 0))
96 (*current_liboctave_error_handler) (
"range error for row_as_string");
100 retval.resize (nc,
'\0');
103 retval[i] =
elem (r, i);
114 retval.resize (nc+1);
124 if (r1 > r2) { std::swap (r1, r2); }
125 if (c1 > c2) { std::swap (c1, c2); }
134 result.
elem (i, j) =
elem (r1+i, c1+j);
bool operator==(const charMatrix &a) const
#define MM_BOOL_OPS(M1, M2)
#define SM_BOOL_OPS(S, M)
char & elem(octave_idx_type n)
std::string row_as_string(octave_idx_type, bool strip_ws=false) const
octave_idx_type rows(void) const
Array< T > & insert(const Array< T > &a, const Array< octave_idx_type > &idx)
Insert an array into another at a specified position.
charMatrix & insert(const char *s, octave_idx_type r, octave_idx_type c)
static MArray< double > const octave_idx_type const octave_idx_type octave_idx_type octave_idx_type r2
bool operator!=(const charMatrix &a) const
const char * data(void) const
octave_idx_type length(void) const
Number of elements in the array.
charMatrix extract(octave_idx_type r1, octave_idx_type c1, octave_idx_type r2, octave_idx_type c2) const
#define MS_BOOL_OPS(M, S)
#define MM_CMP_OPS(M1, M2)
static MArray< double > const octave_idx_type const octave_idx_type octave_idx_type octave_idx_type octave_idx_type c1
static MArray< double > const octave_idx_type const octave_idx_type octave_idx_type r1
bool mx_inline_equal(size_t n, const T1 *x, const T2 *y)
octave_idx_type cols(void) const