26 #if defined (HAVE_CONFIG_H)
81 const std::string si = s(i);
122 double d = rb.
elem (i);
125 (*current_liboctave_error_handler)
126 (
"invalid conversion from NaN to character");
134 tmp.
elem (i) =
static_cast<char> (ival);
150 return do_mx_minmax_op<char> (*
this, idx_arg, dim,
mx_inline_max);
162 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)
#define BSXFUN_STDREL_DEFS_MXLOOP(ARRAY)
charNDArray max(char d, const charNDArray &m)
charNDArray min(char d, const charNDArray &m)
N Dimensional Array with copy-on-write semantics.
Array< T > & insert(const Array< T > &a, const Array< octave_idx_type > &idx)
Insert an array into another at a specified position.
void resize1(octave_idx_type n, const char &rfv)
octave_idx_type numel(void) const
Number of elements in the array.
char & elem(octave_idx_type n)
octave_idx_type rows(void) const
Array< T > diag(octave_idx_type k=0) const
Get the kth super or subdiagonal.
const dim_vector & dims(void) const
Return a const-reference so that dims ()(i) works efficiently.
bool isempty(void) const
Size of the specified dimension.
charNDArray concat(const charNDArray &rb, const Array< octave_idx_type > &ra_idx)
charNDArray & insert(const charNDArray &a, octave_idx_type r, octave_idx_type c)
charNDArray max(int dim=-1) const
charNDArray min(int dim=-1) const
boolNDArray any(int dim=-1) const
static void increment_index(Array< octave_idx_type > &ra_idx, const dim_vector &dimensions, int start_dimension=0)
static octave_idx_type compute_index(Array< octave_idx_type > &ra_idx, const dim_vector &dimensions)
charNDArray diag(octave_idx_type k=0) const
boolNDArray all(int dim=-1) const
Vector representing the dimensions (size) of an Array.
F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE * d
void mx_inline_any(const T *v, bool *r, octave_idx_type l, octave_idx_type n, octave_idx_type u)
void mx_inline_max(const T *v, T *r, octave_idx_type n)
void mx_inline_all(const T *v, bool *r, octave_idx_type m, octave_idx_type n)
Array< R > do_ms_binary_op(const Array< X > &x, const Y &y, void(*op)(size_t, R *, const X *, Y))
void mx_inline_xmax(size_t n, T *r, const T *x, const T *y)
Array< R > do_sm_binary_op(const X &x, const Array< Y > &y, void(*op)(size_t, R *, X, const Y *))
Array< R > do_mm_binary_op(const Array< X > &x, const Array< Y > &y, void(*op)(size_t, R *, const X *, const Y *), void(*op1)(size_t, R *, X, const Y *), void(*op2)(size_t, R *, const X *, Y), const char *opname)
void mx_inline_min(const T *v, T *r, octave_idx_type n)
void mx_inline_xmin(size_t n, T *r, const T *x, const T *y)
#define NDND_BOOL_OPS(ND1, ND2)
#define NDS_BOOL_OPS(ND, S)
#define NDND_CMP_OPS(ND1, ND2)
#define SND_BOOL_OPS(S, ND)
#define NDS_CMP_OPS(ND, S)
#define SND_CMP_OPS(S, ND)
octave_idx_type nint_big(double x)
T::size_type numel(const T &str)
T::size_type strlen(const typename T::value_type *str)
const octave_base_value const Array< octave_idx_type > & ra_idx