GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
ov-re-mat.cc File Reference
#include <istream>
#include <limits>
#include <ostream>
#include <vector>
#include "dNDArray.h"
#include "fNDArray.h"
#include "int8NDArray.h"
#include "int16NDArray.h"
#include "int32NDArray.h"
#include "int64NDArray.h"
#include "uint8NDArray.h"
#include "uint16NDArray.h"
#include "uint32NDArray.h"
#include "uint64NDArray.h"
#include "data-conv.h"
#include "lo-ieee.h"
#include "lo-utils.h"
#include "lo-specfun.h"
#include "lo-mappers.h"
#include "mach-info.h"
#include "mx-base.h"
#include "quit.h"
#include "oct-locbuf.h"
#include "defun.h"
#include "errwarn.h"
#include "mxarray.h"
#include "ovl.h"
#include "oct-lvalue.h"
#include "oct-hdf5.h"
#include "oct-stream.h"
#include "ops.h"
#include "ov-base.h"
#include "ov-base-mat.h"
#include "ov-base-mat.cc"
#include "ov-scalar.h"
#include "ov-re-mat.h"
#include "ov-flt-re-mat.h"
#include "ov-complex.h"
#include "ov-cx-mat.h"
#include "ov-re-sparse.h"
#include "ov-re-diag.h"
#include "ov-cx-diag.h"
#include "ov-lazy-idx.h"
#include "ov-perm.h"
#include "pr-flt-fmt.h"
#include "pr-output.h"
#include "variables.h"
#include "byte-swap.h"
#include "ls-oct-text.h"
#include "ls-utils.h"
#include "ls-hdf5.h"
Include dependency graph for ov-re-mat.cc:

Go to the source code of this file.

Macros

#define ARRAY_MAPPER(UMAP, TYPE, FCN)
 
#define ARRAY_METHOD_MAPPER(UMAP, FCN)
 
#define RC_ARRAY_MAPPER(UMAP, TYPE, FCN)
 

Functions

static octave_base_valuedefault_numeric_demotion_function (const octave_base_value &a)
 
static octave_value do_rc_map (const NDArray &a, Complex(&fcn)(double))
 

Macro Definition Documentation

◆ ARRAY_MAPPER

#define ARRAY_MAPPER (   UMAP,
  TYPE,
  FCN 
)
Value:
case umap_ ## UMAP: \
return octave_value (matrix.map<TYPE> (FCN))
@ FCN
Definition: oct-parse.h:138
return octave_value(v1.char_array_value() . concat(v2.char_array_value(), ra_idx),((a1.is_sq_string()||a2.is_sq_string()) ? '\'' :'"'))

◆ ARRAY_METHOD_MAPPER

#define ARRAY_METHOD_MAPPER (   UMAP,
  FCN 
)
Value:
case umap_ ## UMAP: \
return octave_value (matrix.FCN ())

◆ RC_ARRAY_MAPPER

#define RC_ARRAY_MAPPER (   UMAP,
  TYPE,
  FCN 
)
Value:
case umap_ ## UMAP: \
return do_rc_map (matrix, FCN)
static octave_value do_rc_map(const NDArray &a, Complex(&fcn)(double))
Definition: ov-re-mat.cc:867

Function Documentation

◆ default_numeric_demotion_function()

static octave_base_value* default_numeric_demotion_function ( const octave_base_value a)
static

Definition at line 92 of file ov-re-mat.cc.

References octave_matrix::float_array_value().

Referenced by octave_matrix::numeric_demotion_function().

◆ do_rc_map()

static octave_value do_rc_map ( const NDArray a,
Complex(&)(double)  fcn 
)
static

Definition at line 867 of file ov-re-mat.cc.

References Array< T >::dims(), n, Array< T >::numel(), and Array< T >::xelem().