GNU Octave
4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include <string>
#include <vector>
#include <list>
#include "lo-mappers.h"
#include "oct-map.h"
#include "defun.h"
#include "parse.h"
#include "variables.h"
#include "ov-colon.h"
#include "unwind-prot.h"
#include "ov-fcn-handle.h"
Go to the source code of this file.
Macros | |
#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) |
Typedefs | |
typedef octave_value(* | bsxfun_handler )(const octave_value &, const octave_value &) |
Enumerations | |
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 } |
Variables | |
OCTAVE_EXPORT octave_value_list it applies a binary function | ar {f} element-by-element to two array arguments ar{A} and ar{B} |
const char * | bsxfun_builtin_names [] |
bsxfun_handler | bsxfun_handler_table [bsxfun_num_builtin_ops][btyp_num_types] |
OCTAVE_EXPORT octave_value_list it applies a binary function and expands as necessary singleton dimensions in either input argument | function |
#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> |
Referenced by maybe_fill_table().
#define REGISTER_REL_HANDLER | ( | REL, | |
BTYP, | |||
NDA, | |||
FUNREL | |||
) | bsxfun_handler_table[REL][BTYP] = bsxfun_forward_rel<NDA, FUNREL> |
Referenced by maybe_fill_table().
#define REGISTER_STD_HANDLERS | ( | BTYP, | |
NDA | |||
) |
Referenced by maybe_fill_table().
typedef octave_value(* bsxfun_handler)(const octave_value &, const octave_value &) |
enum bsxfun_builtin_op |
|
static |
Definition at line 84 of file bsxfun.cc.
References bsxfun_builtin_names, bsxfun_builtin_unknown, and bsxfun_num_builtin_ops.
Referenced by maybe_optimized_builtin().
|
static |
Definition at line 100 of file bsxfun.cc.
References octave_value(), x, and y.
|
static |
Definition at line 109 of file bsxfun.cc.
References octave_value(), x, and y.
|
static |
Definition at line 120 of file bsxfun.cc.
References bsxfun_pow(), octave_value(), x, and y.
OCTAVE_EXPORT octave_value_list Fbsxfun | ( | const octave_value_list & | args, |
int | |||
) |
Referenced by install_bsxfun_fcns().
|
static |
Definition at line 130 of file bsxfun.cc.
References bsxfun_and(), bsxfun_builtin_and, bsxfun_builtin_eq, bsxfun_builtin_ge, bsxfun_builtin_gt, bsxfun_builtin_le, bsxfun_builtin_lt, bsxfun_builtin_ne, bsxfun_builtin_or, bsxfun_builtin_power, bsxfun_eq(), bsxfun_ge(), bsxfun_gt(), bsxfun_handler_table, bsxfun_le(), bsxfun_lt(), bsxfun_ne(), bsxfun_or(), bsxfun_pow(), btyp_bool, btyp_char, btyp_complex, btyp_double, btyp_float, btyp_float_complex, btyp_int16, btyp_int32, btyp_int64, btyp_int8, btyp_uint16, btyp_uint32, btyp_uint64, btyp_uint8, REGISTER_OP_HANDLER, REGISTER_REL_HANDLER, and REGISTER_STD_HANDLERS.
Referenced by maybe_optimized_builtin().
|
static |
Definition at line 196 of file bsxfun.cc.
References bsxfun_builtin_lookup(), bsxfun_builtin_unknown, bsxfun_handler_table, btyp_complex, btyp_double, btyp_float, btyp_float_complex, btyp_unknown, octave_value::builtin_type(), maybe_fill_table(), and retval.
|
static |
Definition at line 231 of file bsxfun.cc.
References A, k, dim_vector::ndims(), octave_value(), and octave_value::single_subsref().
|
static |
Definition at line 307 of file bsxfun.cc.
References dv, and dim_vector::ndims().
const char* bsxfun_builtin_names[] |
Definition at line 64 of file bsxfun.cc.
Referenced by bsxfun_builtin_lookup().
bsxfun_handler bsxfun_handler_table[bsxfun_num_builtin_ops][btyp_num_types] |
Definition at line 96 of file bsxfun.cc.
Referenced by maybe_fill_table(), and maybe_optimized_builtin().