23 #if defined (HAVE_CONFIG_H) 42 error (
"transpose not defined for N-D objects");
70 error (
"invalid concatenation of structure with matrix");
86 error (
"invalid concatenation of structure with matrix");
create a structure array and initialize its values The dimensions of each cell array of values must match Singleton cells and non cell values are repeated so that they fill the entire array If the cells are create an empty structure array with the specified field names If the argument is an return the underlying struct Observe that the syntax is optimized for struct trong struct("foo", 1) esult
static void transpose(octave_idx_type N, const octave_idx_type *ridx, const octave_idx_type *cidx, octave_idx_type *ridx2, octave_idx_type *cidx2)
ComplexNDArray concat(NDArray &ra, ComplexNDArray &rb, const Array< octave_idx_type > &ra_idx)
void error(const char *fmt,...)
NDArray array_value(bool=false) const
const octave_base_value & a2
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
virtual octave_map map_value(void) const
#define INSTALL_UNOP_TI(ti, op, t, f)
void install_struct_ops(octave::type_info &ti)
virtual int ndims(void) const
#define INSTALL_CATOP_TI(ti, t1, t2, f)
octave_value op_transpose(const octave_value &a)
static octave_value oct_catop_matrix_struct(octave_base_value &a1, const octave_base_value &a2, const Array< octave_idx_type > &)
bool all_zero(void) const
octave_map map_value(void) const
return octave_value(v1.char_array_value() . concat(v2.char_array_value(), ra_idx),((a1.is_sq_string()||a2.is_sq_string()) ? '\'' :'"'))
N Dimensional Array with copy-on-write semantics.
const octave_char_matrix & v2
NDArray array_value(bool=false) const
octave_map transpose(void) const
static octave_value oct_catop_struct_matrix(octave_base_value &a1, const octave_base_value &a2, const Array< octave_idx_type > &)
octave_scalar_map scalar_map_value(void) const
octave_value op_hermitian(const octave_value &a)
Vector representing the dimensions (size) of an Array.
#define DEFNDCATOP_FN(name, t1, t2, e1, e2, f)