#include "oct-time.h"
#include "errwarn.h"
#include "load-path.h"
#include "ovl.h"
#include "ov.h"
#include "ov-class.h"
#include "ov-typeinfo.h"
#include "ops.h"
#include "symtab.h"
#include "parse.h"
Go to the source code of this file.
|
void | install_class_ops (void) |
|
static octave_value | oct_binop_and (const octave_value &a1, const octave_value &a2) |
|
static octave_value | oct_binop_eq (const octave_value &a1, const octave_value &a2) |
|
static octave_value | oct_binop_ge (const octave_value &a1, const octave_value &a2) |
|
static octave_value | oct_binop_gt (const octave_value &a1, const octave_value &a2) |
|
static octave_value | oct_binop_ldivide (const octave_value &a1, const octave_value &a2) |
|
static octave_value | oct_binop_le (const octave_value &a1, const octave_value &a2) |
|
static octave_value | oct_binop_lt (const octave_value &a1, const octave_value &a2) |
|
static octave_value | oct_binop_minus (const octave_value &a1, const octave_value &a2) |
|
static octave_value | oct_binop_mldivide (const octave_value &a1, const octave_value &a2) |
|
static octave_value | oct_binop_mpower (const octave_value &a1, const octave_value &a2) |
|
static octave_value | oct_binop_mrdivide (const octave_value &a1, const octave_value &a2) |
|
static octave_value | oct_binop_mtimes (const octave_value &a1, const octave_value &a2) |
|
static octave_value | oct_binop_ne (const octave_value &a1, const octave_value &a2) |
|
static octave_value | oct_binop_or (const octave_value &a1, const octave_value &a2) |
|
static octave_value | oct_binop_plus (const octave_value &a1, const octave_value &a2) |
|
static octave_value | oct_binop_power (const octave_value &a1, const octave_value &a2) |
|
static octave_value | oct_binop_rdivide (const octave_value &a1, const octave_value &a2) |
|
static octave_value | oct_binop_times (const octave_value &a1, const octave_value &a2) |
|
static octave_value | oct_unop_ctranspose (const octave_value &a) |
|
static octave_value | oct_unop_not (const octave_value &a) |
|
static octave_value | oct_unop_transpose (const octave_value &a) |
|
static octave_value | oct_unop_uminus (const octave_value &a) |
|
static octave_value | oct_unop_uplus (const octave_value &a) |
|
#define DEF_CLASS_BINOP |
( |
|
name | ) |
|
Value:static octave_value \
if (meth.is_undefined ()) \
error (
"%s method not defined for %s class", #
name, \
dispatch_type.c_str ()); \
\
octave_value_list
args;
\
\
octave_value_list
tmp =
feval (meth.function_value (),
args, 1);
\
\
}
static octave_value find_method(const std::string &name, const std::string &dispatch_type)
void error(const char *fmt,...)
const octave_base_value & a2
if(nargin< 2) print_usage()
virtual std::string class_name(void) const
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string
return octave_value(v1.char_array_value().concat(v2.char_array_value(), ra_idx),((a1.is_sq_string()||a2.is_sq_string())? '\'': '"'))
Definition at line 75 of file op-class.cc.
#define DEF_CLASS_UNOP |
( |
|
name | ) |
|
Value:static octave_value \
if (meth.is_undefined ()) \
error (
"%s method not defined for %s class", #
name, \
class_name.c_str ()); \
\
octave_value_list
args;
\
\
octave_value_list
tmp =
feval (meth.function_value (),
args, 1);
\
\
}
static octave_value find_method(const std::string &name, const std::string &dispatch_type)
void error(const char *fmt,...)
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
if(nargin< 2) print_usage()
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string
return octave_value(v1.char_array_value().concat(v2.char_array_value(), ra_idx),((a1.is_sq_string()||a2.is_sq_string())? '\'': '"'))
Definition at line 41 of file op-class.cc.
#define INSTALL_CLASS_BINOP |
( |
|
op, |
|
|
|
f |
|
) |
| |
Value:
(octave_value::op, oct_binop_ ##
f)
F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T F77_REAL F77_REAL &F77_RET_T F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE const F77_DBLE * f
static bool register_binary_class_op(octave_value::binary_op, binary_class_op_fcn)
Definition at line 126 of file op-class.cc.
Referenced by install_class_ops().
#define INSTALL_CLASS_UNOP |
( |
|
op, |
|
|
|
f |
|
) |
| |
Value:
(octave_value::op, oct_unop_ ##
f)
F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T F77_REAL F77_REAL &F77_RET_T F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE const F77_DBLE * f
static bool register_unary_class_op(octave_value::unary_op, unary_class_op_fcn)
Definition at line 122 of file op-class.cc.
Referenced by install_class_ops().
void install_class_ops |
( |
void |
| ) |
|
Definition at line 131 of file op-class.cc.
References and, INSTALL_CLASS_BINOP, INSTALL_CLASS_UNOP, op_add(), op_div(), op_el_and(), op_el_div(), op_el_ldiv(), op_el_mul(), op_el_or(), op_el_pow(), op_eq(), op_ge(), op_gt(), op_hermitian(), op_ldiv(), op_le(), op_lt(), op_mul(), op_ne(), op_not(), op_pow(), op_sub(), op_transpose(), op_uminus(), op_uplus(), or(), times, and transpose().
Referenced by install_ops().