24 #if defined (HAVE_CONFIG_H) 44 if (
rows () !=
a.rows () ||
cols () !=
a.cols ())
63 if (r < 0 || r >=
rows () || c < 0 || c + s_len - 1 >
cols ())
64 (*current_liboctave_error_handler) (
"range error for insert");
87 if (r == 0 && (nr == 0 || nc == 0))
91 (*current_liboctave_error_handler) (
"range error for row_as_string");
octave_idx_type rows(void) const
#define MM_BOOL_OPS(M1, M2)
const char * data(void) const
bool operator==(const charMatrix &a) const
#define SM_BOOL_OPS(S, M)
char & elem(octave_idx_type n)
nd example oindent opens the file binary numeric values will be read assuming they are stored in IEEE format with the least significant bit and then converted to the native representation Opening a file that is already open simply opens it again and returns a separate file id It is not an error to open a file several though writing to the same file through several different file ids may produce unexpected results The possible values of text mode reading and writing automatically converts linefeeds to the appropriate line end character for the you may append a you must also open the file in binary mode The parameter conversions are currently only supported for and permissions will be set to and then everything is written in a single operation This is very efficient and improves performance c
octave_idx_type cols(void) const
Array< T > & insert(const Array< T > &a, const Array< octave_idx_type > &idx)
Insert an array into another at a specified position.
octave_value resize(const dim_vector &dv, bool fill=false) const
calling an anonymous function involves an overhead quite comparable to the overhead of an m file function Passing a handle to a built in function is because the interpreter is not involved in the internal loop For a
charMatrix & insert(const char *s, octave_idx_type r, octave_idx_type c)
T::size_type strlen(const typename T::value_type *str)
With real return the complex result
bool operator!=(const charMatrix &a) const
std::string row_as_string(octave_idx_type, bool strip_ws=false) const
#define MS_BOOL_OPS(M, S)
#define MM_CMP_OPS(M1, M2)
octave_idx_type numel(void) const
Number of elements in the array.
bool mx_inline_equal(size_t n, const T1 *x, const T2 *y)
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string
charMatrix extract(octave_idx_type r1, octave_idx_type c1, octave_idx_type r2, octave_idx_type c2) const