#include "ov-null-mat.h"
#include "ops.h"
#include "defun.h"
Functions | |
DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA (octave_null_matrix,"null_matrix","double") | |
DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA (octave_null_str,"null_string","char") | |
DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA (octave_null_sq_str,"null_sq_string","char") | |
DEFUN (isnull, args,,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} isnull (@var{x})\n\ Return 1 if @var{x} is a special null matrix, string or single quoted string.\n\ Indexed assignment with such a value as right-hand side should delete array elements.\n\ This function should be used when overloading indexed assignment for user-defined \n\ classes instead of @code{isempty}, to distinguish the cases:\n\ @table @asis\n\ @item @code{A(I) = []}\n\ This should delete elements if @code{I} is nonempty.\n\ @item @code{X = []; A(I) = X}\n\ This should give an error if @code{I} is nonempty.\n\ @end table\n\ @end deftypefn") |
DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA | ( | octave_null_sq_str | , | |
"null_sq_string" | , | |||
"char" | ||||
) |
DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA | ( | octave_null_str | , | |
"null_string" | , | |||
"char" | ||||
) |
DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA | ( | octave_null_matrix | , | |
"null_matrix" | , | |||
"double" | ||||
) |
DEFUN | ( | isnull | , | |
args | ||||
) |