79 const std::string si = s(i);
115 if (rb.
numel () == 0)
120 double d = rb.
elem (i);
124 (*current_liboctave_error_handler)
125 (
"invalid conversion from NaN to character");
136 tmp.elem (i) =
static_cast<char>(ival);
153 return do_mx_minmax_op<char> (*
this, idx_arg, dim,
mx_inline_max);
165 return do_mx_minmax_op<char> (*
this, idx_arg, dim,
mx_inline_min);
octave_idx_type compute_index(octave_idx_type n, const dim_vector &dims)
charNDArray max(int dim=-1) const
#define NDS_BOOL_OPS(ND, S)
#define NDS_CMP_OPS(ND, S)
charNDArray diag(octave_idx_type k=0) const
const octave_base_value const Array< octave_idx_type > & ra_idx
#define SND_CMP_OPS(S, ND)
octave_idx_type numel(void) const
Number of elements in the array.
Array< T > diag(octave_idx_type k=0) const
Get the kth super or subdiagonal.
charNDArray concat(const charNDArray &rb, const Array< octave_idx_type > &ra_idx)
static void increment_index(Array< octave_idx_type > &ra_idx, const dim_vector &dimensions, int start_dimension=0)
char & elem(octave_idx_type n)
void mx_inline_max(const T *v, T *r, octave_idx_type n)
bool mx_inline_any(const T *v, octave_idx_type n)
octave_idx_type rows(void) const
F77_RET_T const double const double double * d
Array< R > do_mm_binary_op(const Array< X > &x, const Array< Y > &y, void(*op)(size_t, R *, const X *, const Y *) throw(), void(*op1)(size_t, R *, X, const Y *) throw(), void(*op2)(size_t, R *, const X *, Y) throw(), const char *opname)
Array< T > & insert(const Array< T > &a, const Array< octave_idx_type > &idx)
Insert an array into another at a specified position.
void mx_inline_xmin(size_t n, T *r, const T *x, const T *y)
const dim_vector & dims(void) const
Return a const-reference so that dims ()(i) works efficiently.
#define NDND_CMP_OPS(ND1, ND2)
#define NDND_BOOL_OPS(ND1, ND2)
void resize1(octave_idx_type n, const char &rfv)
#define SND_BOOL_OPS(S, ND)
boolNDArray all(int dim=-1) const
Array< R > do_sm_binary_op(const X &x, const Array< Y > &y, void(*op)(size_t, R *, X, const Y *) throw())
#define BSXFUN_STDREL_DEFS_MXLOOP(ARRAY)
charNDArray & insert(const charNDArray &a, octave_idx_type r, octave_idx_type c)
Handles the reference counting for all the derived classes.
charNDArray max(char d, const charNDArray &m)
charNDArray min(int dim=-1) const
boolNDArray any(int dim=-1) const
Array< R > do_ms_binary_op(const Array< X > &x, const Y &y, void(*op)(size_t, R *, const X *, Y) throw())
bool mx_inline_all(const T *v, octave_idx_type n)
octave_idx_type NINTbig(double x)
static octave_idx_type compute_index(Array< octave_idx_type > &ra_idx, const dim_vector &dimensions)
charNDArray min(char d, const charNDArray &m)
void mx_inline_xmax(size_t n, T *r, const T *x, const T *y)
void mx_inline_min(const T *v, T *r, octave_idx_type n)