#include <list>
#include <string>
#include <vector>
#include "lo-mappers.h"
#include "defun.h"
#include "interpreter.h"
#include "oct-map.h"
#include "ov-colon.h"
#include "ov-fcn-handle.h"
#include "unwind-prot.h"
#include "variables.h"
Go to the source code of this file.
|
#define | BSXDEF(T) |
|
#define | BSXEND(T) |
|
#define | BSXINIT(T, CLS, EXTRACTOR) |
|
#define | BSXLOOP(T, CLS, EXTRACTOR) |
|
#define | REGISTER_OP_HANDLER(OP, BTYP, NDA, FUNOP) bsxfun_handler_table[OP][BTYP] = bsxfun_forward_op<NDA, FUNOP> |
|
#define | REGISTER_REL_HANDLER(REL, BTYP, NDA, FUNREL) bsxfun_handler_table[REL][BTYP] = bsxfun_forward_rel<NDA, FUNREL> |
|
#define | REGISTER_STD_HANDLERS(BTYP, NDA) |
|
|
enum | bsxfun_builtin_op {
bsxfun_builtin_plus = 0
, bsxfun_builtin_minus
, bsxfun_builtin_times
, bsxfun_builtin_divide
,
bsxfun_builtin_max
, bsxfun_builtin_min
, bsxfun_builtin_eq
, bsxfun_builtin_ne
,
bsxfun_builtin_lt
, bsxfun_builtin_le
, bsxfun_builtin_gt
, bsxfun_builtin_ge
,
bsxfun_builtin_and
, bsxfun_builtin_or
, bsxfun_builtin_power
, bsxfun_builtin_unknown
,
bsxfun_num_builtin_ops = bsxfun_builtin_unknown
} |
|
◆ BSXDEF
Value: T result_ ## T; \
bool have_ ## T = false;
◆ BSXEND
Value: (have_ ## T) \
retval(0) = result_ ## T;
◆ BSXINIT
#define BSXINIT |
( |
|
T, |
|
|
|
CLS, |
|
|
|
EXTRACTOR |
|
) |
| |
Value: (result_type == CLS) \
{ \
have_ ## T = true; \
result_ ## T = tmp(0). EXTRACTOR ## _array_value (); \
result_ ## T .resize (dvc); \
}
◆ BSXLOOP
#define BSXLOOP |
( |
|
T, |
|
|
|
CLS, |
|
|
|
EXTRACTOR |
|
) |
| |
Value: (have_ ## T) \
{ \
if (tmp(0).class_name () != CLS) \
{ \
have_ ## T = false; \
C = result_ ## T; \
} \
else \
result_ ## T .insert (tmp(0). EXTRACTOR ## _array_value (),
ra_idx); \
}
const octave_base_value const Array< octave_idx_type > & ra_idx
octave_value cat_op(type_info &ti, const octave_value &a, const octave_value &b, const Array< octave_idx_type > &ra_idx)
◆ REGISTER_OP_HANDLER
#define REGISTER_OP_HANDLER |
( |
|
OP, |
|
|
|
BTYP, |
|
|
|
NDA, |
|
|
|
FUNOP |
|
) |
| bsxfun_handler_table[OP][BTYP] = bsxfun_forward_op<NDA, FUNOP> |
◆ REGISTER_REL_HANDLER
#define REGISTER_REL_HANDLER |
( |
|
REL, |
|
|
|
BTYP, |
|
|
|
NDA, |
|
|
|
FUNREL |
|
) |
| bsxfun_handler_table[REL][BTYP] = bsxfun_forward_rel<NDA, FUNREL> |
◆ REGISTER_STD_HANDLERS
#define REGISTER_STD_HANDLERS |
( |
|
BTYP, |
|
|
|
NDA |
|
) |
| |
Value:
ComplexNDArray bsxfun_min(const ComplexNDArray &x, const ComplexNDArray &y)
ComplexNDArray bsxfun_add(const ComplexNDArray &x, const ComplexNDArray &y)
ComplexNDArray bsxfun_max(const ComplexNDArray &x, const ComplexNDArray &y)
ComplexNDArray bsxfun_sub(const ComplexNDArray &x, const ComplexNDArray &y)
ComplexNDArray bsxfun_div(const ComplexNDArray &x, const ComplexNDArray &y)
ComplexNDArray bsxfun_mul(const ComplexNDArray &x, const ComplexNDArray &y)
#define REGISTER_OP_HANDLER(OP, BTYP, NDA, FUNOP)
boolNDArray bsxfun_ge(const charNDArray &x, const charNDArray &y)
boolNDArray bsxfun_lt(const charNDArray &x, const charNDArray &y)
boolNDArray bsxfun_gt(const charNDArray &x, const charNDArray &y)
boolNDArray bsxfun_eq(const charNDArray &x, const charNDArray &y)
boolNDArray bsxfun_le(const charNDArray &x, const charNDArray &y)
boolNDArray bsxfun_ne(const charNDArray &x, const charNDArray &y)
◆ bsxfun_handler
◆ bsxfun_builtin_op
Enumerator |
---|
bsxfun_builtin_plus | |
bsxfun_builtin_minus | |
bsxfun_builtin_times | |
bsxfun_builtin_divide | |
bsxfun_builtin_max | |
bsxfun_builtin_min | |
bsxfun_builtin_eq | |
bsxfun_builtin_ne | |
bsxfun_builtin_lt | |
bsxfun_builtin_le | |
bsxfun_builtin_gt | |
bsxfun_builtin_ge | |
bsxfun_builtin_and | |
bsxfun_builtin_or | |
bsxfun_builtin_power | |
bsxfun_builtin_unknown | |
bsxfun_num_builtin_ops | |
Definition at line 45 of file bsxfun.cc.
◆ Fbsxfun()
Definition at line 317 of file bsxfun.cc.
References A, B, error(), symbol_table::find_function(), octave_value::function_value(), octave_value::is_builtin_function(), octave_value::is_function_handle(), octave_value::is_string(), octave_value::is_undefined(), print_usage(), and octave_value::string_value().
◆ bsxfun_builtin_names
const char* bsxfun_builtin_names[] |
Initial value:=
{
"plus",
"minus",
"times",
"rdivide",
"max",
"min",
"eq",
"ne",
"lt",
"le",
"gt",
"ge",
"and",
"or",
"power"
}
Definition at line 66 of file bsxfun.cc.
◆ bsxfun_handler_table