#include <algorithm>#include "dim-vector.h"#include "mx-inlines.cc"#include "oct-error.h"#include "oct-locbuf.h"Go to the source code of this file.
Macros | |
| #define | BSXFUN1_OP_DEF(OP, ARRAY) |
| #define | BSXFUN1_OP_DEF_MXLOOP(OP, ARRAY, LOOP) |
| #define | BSXFUN2_OP_DEF(OP, ARRAY) |
| #define | BSXFUN2_OP_DEF_MXLOOP(OP, ARRAY, LOOP) |
| #define | BSXFUN_OP2_DEF(OP, ARRAY, ARRAY1, ARRAY2) ARRAY bsxfun_ ## OP (const ARRAY1& x, const ARRAY2& y) |
| #define | BSXFUN_OP2_DEF_MXLOOP(OP, ARRAY, ARRAY1, ARRAY2, LOOP) |
| #define | BSXFUN_OP_DEF(OP, ARRAY) ARRAY bsxfun_ ## OP (const ARRAY& x, const ARRAY& y) |
| #define | BSXFUN_OP_DEF_MXLOOP(OP, ARRAY, LOOP) |
| #define | BSXFUN_POW_MIXED_MXLOOP(INT_TYPE) |
| #define | BSXFUN_REL_DEF(OP, ARRAY) boolNDArray bsxfun_ ## OP (const ARRAY& x, const ARRAY& y) |
| #define | BSXFUN_REL_DEF_MXLOOP(OP, ARRAY, LOOP) |
| #define | BSXFUN_STDOP_DEFS_MXLOOP(ARRAY) |
| #define | BSXFUN_STDREL_DEFS_MXLOOP(ARRAY) |
| #define | octave_bsxfun_defs_h 1 |
Functions | |
| template<typename R , typename X , typename Y > | |
| Array< R > | do_bsxfun1_op (const Array< X > &x, const Array< Y > &y, const bool nanflag, void(*op_vv)(std::size_t, R *, const X *, const Y *, const bool), void(*op_sv)(std::size_t, R *, X, const Y *, const bool), void(*op_vs)(std::size_t, R *, const X *, Y, const bool)) |
| template<typename R , typename X , typename Y > | |
| Array< R > | do_bsxfun2_op (const Array< X > &x, const Array< Y > &y, const bool nanflag, const bool realabs, void(*op_vv)(std::size_t, R *, const X *, const Y *, const bool, const bool), void(*op_sv)(std::size_t, R *, X, const Y *, const bool, const bool), void(*op_vs)(std::size_t, R *, const X *, Y, const bool, const bool)) |
| template<typename R , typename X , typename Y > | |
| Array< R > | do_bsxfun_op (const Array< X > &x, const Array< Y > &y, void(*op_vv)(std::size_t, R *, const X *, const Y *), void(*op_sv)(std::size_t, R *, X, const Y *), void(*op_vs)(std::size_t, R *, const X *, Y)) |
| template<typename R , typename X > | |
| void | do_inplace_bsxfun_op (Array< R > &r, const Array< X > &x, void(*op_vv)(std::size_t, R *, const X *), void(*op_vs)(std::size_t, R *, X)) |
| #define BSXFUN1_OP_DEF | ( | OP, | |
| ARRAY | |||
| ) |
Definition at line 424 of file bsxfun-defs.cc.
| #define BSXFUN1_OP_DEF_MXLOOP | ( | OP, | |
| ARRAY, | |||
| LOOP | |||
| ) |
Definition at line 443 of file bsxfun-defs.cc.
| #define BSXFUN2_OP_DEF | ( | OP, | |
| ARRAY | |||
| ) |
Definition at line 428 of file bsxfun-defs.cc.
| #define BSXFUN2_OP_DEF_MXLOOP | ( | OP, | |
| ARRAY, | |||
| LOOP | |||
| ) |
Definition at line 448 of file bsxfun-defs.cc.
| #define BSXFUN_OP2_DEF | ( | OP, | |
| ARRAY, | |||
| ARRAY1, | |||
| ARRAY2 | |||
| ) | ARRAY bsxfun_ ## OP (const ARRAY1& x, const ARRAY2& y) |
Definition at line 432 of file bsxfun-defs.cc.
| #define BSXFUN_OP2_DEF_MXLOOP | ( | OP, | |
| ARRAY, | |||
| ARRAY1, | |||
| ARRAY2, | |||
| LOOP | |||
| ) |
Definition at line 453 of file bsxfun-defs.cc.
| #define BSXFUN_OP_DEF | ( | OP, | |
| ARRAY | |||
| ) | ARRAY bsxfun_ ## OP (const ARRAY& x, const ARRAY& y) |
Definition at line 421 of file bsxfun-defs.cc.
| #define BSXFUN_OP_DEF_MXLOOP | ( | OP, | |
| ARRAY, | |||
| LOOP | |||
| ) |
Definition at line 438 of file bsxfun-defs.cc.
| #define BSXFUN_POW_MIXED_MXLOOP | ( | INT_TYPE | ) |
Definition at line 484 of file bsxfun-defs.cc.
| #define BSXFUN_REL_DEF | ( | OP, | |
| ARRAY | |||
| ) | boolNDArray bsxfun_ ## OP (const ARRAY& x, const ARRAY& y) |
Definition at line 435 of file bsxfun-defs.cc.
| #define BSXFUN_REL_DEF_MXLOOP | ( | OP, | |
| ARRAY, | |||
| LOOP | |||
| ) |
Definition at line 458 of file bsxfun-defs.cc.
| #define BSXFUN_STDOP_DEFS_MXLOOP | ( | ARRAY | ) |
Definition at line 463 of file bsxfun-defs.cc.
| #define BSXFUN_STDREL_DEFS_MXLOOP | ( | ARRAY | ) |
Definition at line 475 of file bsxfun-defs.cc.
| #define octave_bsxfun_defs_h 1 |
Definition at line 27 of file bsxfun-defs.cc.
| Array< R > do_bsxfun1_op | ( | const Array< X > & | x, |
| const Array< Y > & | y, | ||
| const bool | nanflag, | ||
| void(*)(std::size_t, R *, const X *, const Y *, const bool) | op_vv, | ||
| void(*)(std::size_t, R *, X, const Y *, const bool) | op_sv, | ||
| void(*)(std::size_t, R *, const X *, Y, const bool) | op_vs | ||
| ) |
Definition at line 216 of file bsxfun-defs.cc.
References dim_vector::compute_index(), dim_vector::cum_compute_index(), dim_vector::cumulative(), current_liboctave_error_handler, Array< T, Alloc >::data(), Array< T, Alloc >::dims(), dim_vector::increment_index(), Array< T, Alloc >::isempty(), Array< T, Alloc >::ndims(), Array< T, Alloc >::numel(), dim_vector::numel(), OCTAVE_LOCAL_BUFFER_INIT, dim_vector::redim(), dim_vector::resize(), Array< T, Alloc >::rwdata(), dim_vector::str(), and x.
Referenced by do_mm_binary_op().
| Array< R > do_bsxfun2_op | ( | const Array< X > & | x, |
| const Array< Y > & | y, | ||
| const bool | nanflag, | ||
| const bool | realabs, | ||
| void(*)(std::size_t, R *, const X *, const Y *, const bool, const bool) | op_vv, | ||
| void(*)(std::size_t, R *, X, const Y *, const bool, const bool) | op_sv, | ||
| void(*)(std::size_t, R *, const X *, Y, const bool, const bool) | op_vs | ||
| ) |
Definition at line 318 of file bsxfun-defs.cc.
References dim_vector::compute_index(), dim_vector::cum_compute_index(), dim_vector::cumulative(), current_liboctave_error_handler, Array< T, Alloc >::data(), Array< T, Alloc >::dims(), dim_vector::increment_index(), Array< T, Alloc >::isempty(), Array< T, Alloc >::ndims(), Array< T, Alloc >::numel(), dim_vector::numel(), OCTAVE_LOCAL_BUFFER_INIT, dim_vector::redim(), dim_vector::resize(), Array< T, Alloc >::rwdata(), dim_vector::str(), and x.
Referenced by do_mm_binary_op().
| Array< R > do_bsxfun_op | ( | const Array< X > & | x, |
| const Array< Y > & | y, | ||
| void(*)(std::size_t, R *, const X *, const Y *) | op_vv, | ||
| void(*)(std::size_t, R *, X, const Y *) | op_sv, | ||
| void(*)(std::size_t, R *, const X *, Y) | op_vs | ||
| ) |
Definition at line 41 of file bsxfun-defs.cc.
References dim_vector::compute_index(), dim_vector::cum_compute_index(), dim_vector::cumulative(), current_liboctave_error_handler, Array< T, Alloc >::data(), Array< T, Alloc >::dims(), dim_vector::increment_index(), Array< T, Alloc >::isempty(), Array< T, Alloc >::ndims(), Array< T, Alloc >::numel(), dim_vector::numel(), OCTAVE_LOCAL_BUFFER_INIT, dim_vector::redim(), dim_vector::resize(), Array< T, Alloc >::rwdata(), dim_vector::str(), and x.
Referenced by binmap(), and do_mm_binary_op().
| void do_inplace_bsxfun_op | ( | Array< R > & | r, |
| const Array< X > & | x, | ||
| void(*)(std::size_t, R *, const X *) | op_vv, | ||
| void(*)(std::size_t, R *, X) | op_vs | ||
| ) |
Definition at line 142 of file bsxfun-defs.cc.
References dim_vector::compute_index(), dim_vector::cum_compute_index(), dim_vector::cumulative(), Array< T, Alloc >::dims(), dim_vector::increment_index(), Array< T, Alloc >::isempty(), Array< T, Alloc >::ndims(), Array< T, Alloc >::numel(), dim_vector::numel(), OCTAVE_LOCAL_BUFFER_INIT, dim_vector::redim(), Array< T, Alloc >::rwdata(), and x.
Referenced by do_mm_inplace_op().