Functions |
| DEFINE_OCTAVE_ALLOCATOR2 (octave_value, 1024) |
octave_value | do_binary_op (octave_value::binary_op op, const octave_value &v1, const octave_value &v2) |
octave_value | do_binary_op (octave_value::compound_binary_op op, const octave_value &v1, const octave_value &v2) |
octave_value | do_cat_op (const octave_value &v1, const octave_value &v2, const Array< octave_idx_type > &ra_idx) |
octave_value | do_unary_op (octave_value::unary_op op, const octave_value &v) |
void | install_types (void) |
| DEFUN (sizeof, args,,"-*- texinfo -*-\n\
@deftypefn {Built-in Function} {} sizeof (@var{val})\n\
Return the size of @var{val} in bytes.\n\
@seealso{whos}\n\
@end deftypefn") |
| DEFUN (subsref, args, nargout,"-*- texinfo -*-\n\
@deftypefn {Built-in Function} {} subsref (@var{val}, @var{idx})\n\
Perform the subscripted element selection operation according to\n\
the subscript specified by @var{idx}.\n\
\n\
The subscript @var{idx} is expected to be a structure array with\n\
fields @samp{type} and @samp{subs}. Valid values for @samp{type}\n\
are @samp{\"()\"}, @samp{\"@{@}\"}, and @samp{\".\"}.\n\
The @samp{subs} field may be either @samp{\":\"} or a cell array\n\
of index values.\n\
\n\
The following example shows how to extract the two first columns of\n\
a matrix\n\
\n\
@example\n\
@group\n\
val = magic(3)\n\
@result{} val = [ 8 1 6\n\
3 5 7\n\
4 9 2 ]\n\
idx.type = \"()\";\n\
idx.subs = @{\":\", 1:2@};\n\
subsref(val, idx)\n\
@result{} [ 8 1 \n\
3 5 \n\
4 9 ]\n\
@end group\n\
@end example\n\
\n\
@noindent\n\
Note that this is the same as writing @code{val(:,1:2)}.\n\
@seealso{subsasgn, substruct}\n\
@end deftypefn") |
| DEFUN (subsasgn, args,,"-*- texinfo -*-\n\
@deftypefn {Built-in Function} {} subsasgn (@var{val}, @var{idx}, @var{rhs})\n\
Perform the subscripted assignment operation according to\n\
the subscript specified by @var{idx}.\n\
\n\
The subscript @var{idx} is expected to be a structure array with\n\
fields @samp{type} and @samp{subs}. Valid values for @samp{type}\n\
are @samp{\"()\"}, @samp{\"@{@}\"}, and @samp{\".\"}.\n\
The @samp{subs} field may be either @samp{\":\"} or a cell array\n\
of index values.\n\
\n\
The following example shows how to set the two first columns of a\n\
3-by-3 matrix to zero.\n\
\n\
@example\n\
@group\n\
val = magic(3);\n\
idx.type = \"()\";\n\
idx.subs = @{\":\", 1:2@};\n\
subsasgn (val, idx, 0)\n\
@result{} [ 0 0 6\n\
0 0 7\n\
0 0 2 ]\n\
@end group\n\
@end example\n\
\n\
Note that this is the same as writing @code{val(:,1:2) = 0}.\n\
@seealso{subsref, substruct}\n\
@end deftypefn") |