GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include <iomanip>
#include <iostream>
#include <sstream>
#include <vector>
#include <queue>
#include "Array-util.h"
#include "byte-swap.h"
#include "lo-utils.h"
#include "quit.h"
#include "oct-locbuf.h"
#include "defun.h"
#include "error.h"
#include "mxarray.h"
#include "ov-cell.h"
#include "oct-obj.h"
#include "unwind-prot.h"
#include "utils.h"
#include "ov-base-mat.h"
#include "ov-base-mat.cc"
#include "ov-re-mat.h"
#include "ov-scalar.h"
#include "pr-output.h"
#include "gripes.h"
#include "ls-oct-ascii.h"
#include "ls-oct-binary.h"
#include "ls-hdf5.h"
#include "ls-utils.h"
Go to the source code of this file.
Macros | |
#define | CELL_ELT_TAG "<cell-element>" |
#define | FORWARD_MAPPER(UMAP) |
Functions | |
DEFINE_OCTAVE_ALLOCATOR (octave_cell) | |
DEFUN (iscell, args,,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} iscell (@var{x})\n\ Return true if @var{x} is a cell array object.\n\ @seealso{ismatrix, isstruct, iscellstr, isa}\n\ @end deftypefn") | |
DEFUN (cell, args,,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} cell (@var{n})\n\ @deftypefnx {Built-in Function} {} cell (@var{m}, @var{n})\n\ @deftypefnx {Built-in Function} {} cell (@var{m}, @var{n}, @var{k}, @dots{})\n\ @deftypefnx {Built-in Function} {} cell ([@var{m} @var{n} @dots{}])\n\ Create a new cell array object.\n\ If invoked with a single scalar integer argument, return a square\n\ @nospell{NxN} cell array. If invoked with two or more scalar\n\ integer arguments, or a vector of integer values, return an array with\n\ the given dimensions.\n\ @end deftypefn") | |
DEFUN (iscellstr, args,,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} iscellstr (@var{cell})\n\ Return true if every element of the cell array @var{cell} is a\n\ character string.\n\ @seealso{ischar}\n\ @end deftypefn") | |
DEFUN (cellstr, args,,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} cellstr (@var{string})\n\ Create a new cell array object from the elements of the string\n\ array @var{string}.\n\ @end deftypefn") | |
DEFUN (struct2cell, args,,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} struct2cell (@var{S})\n\ Create a new cell array from the objects stored in the struct object.\n\ If @var{f} is the number of fields in the structure, the resulting\n\ cell array will have a dimension vector corresponding to\n\ @code{[@var{F} size(@var{S})]}. For example:\n\ \n\ @example\n\ @group\n\ s = struct (\"name\", @{\"Peter\", \"Hannah\", \"Robert\"@},\n\ \"age\", @{23, 16, 3@});\n\ c = struct2cell (s)\n\ @result{} c = @{2x1x3 Cell Array@}\n\ c(1,1,:)(:)\n\ @result{}\n\ @{\n\ [1,1] = Peter\n\ [2,1] = Hannah\n\ [3,1] = Robert\n\ @}\n\ c(2,1,:)(:)\n\ @result{}\n\ @{\n\ [1,1] = 23\n\ [2,1] = 16\n\ [3,1] = 3\n\ @}\n\ @end group\n\ @end example\n\ \n\ @seealso{cell2struct, fieldnames}\n\ @end deftypefn") | |
static void | gripe_failed_assignment (void) |
#define CELL_ELT_TAG "<cell-element>" |
Definition at line 759 of file ov-cell.cc.
Referenced by octave_cell::load_ascii(), octave_cell::load_binary(), octave_cell::save_ascii(), and octave_cell::save_binary().
#define FORWARD_MAPPER | ( | UMAP | ) |
Referenced by octave_cell::map().
DEFINE_OCTAVE_ALLOCATOR | ( | octave_cell | ) |
DEFUN | ( | iscell | , |
args | |||
) |
Definition at line 1268 of file ov-cell.cc.
References octave_value::is_cell(), and print_usage().
DEFUN | ( | cell | , |
args | |||
) |
Definition at line 1285 of file ov-cell.cc.
References check_dimensions(), dim_vector::chop_trailing_singletons(), error(), error_state, get_dimensions(), octave_value::length(), and dim_vector::resize().
DEFUN | ( | iscellstr | , |
args | |||
) |
Definition at line 1345 of file ov-cell.cc.
References octave_value::is_cellstr(), and print_usage().
DEFUN | ( | cellstr | , |
args | |||
) |
Definition at line 1368 of file ov-cell.cc.
References error(), error_state, Fiscellstr(), Array< T >::is_empty(), is_true(), and print_usage().
DEFUN | ( | struct2cell | , |
args | |||
) |
Definition at line 1401 of file ov-cell.cc.
References octave_map::contents(), octave_map::dims(), error(), error_state, dim_vector::length(), octave_value::length(), octave_map::nfields(), octave_map::numel(), print_usage(), and dim_vector::resize().
Definition at line 132 of file ov-cell.cc.
References error().
Referenced by octave_cell::subsasgn().