GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
ov-scalar.cc File Reference
#include <istream>
#include <ostream>
#include "oct-inttypes-fwd.h"
#include "data-conv.h"
#include "mach-info.h"
#include "lo-specfun.h"
#include "lo-mappers.h"
#include "defun.h"
#include "errwarn.h"
#include "mxarray.h"
#include "ovl.h"
#include "oct-hdf5.h"
#include "oct-stream.h"
#include "ov-scalar.h"
#include "ov-float.h"
#include "ov-base.h"
#include "ov-base-scalar.h"
#include "ov-base-scalar.cc"
#include "ov-re-mat.h"
#include "ov-typeinfo.h"
#include "pr-output.h"
#include "xdiv.h"
#include "xpow.h"
#include "ops.h"
#include "ls-oct-text.h"
#include "ls-hdf5.h"
Include dependency graph for ov-scalar.cc:

Go to the source code of this file.

Macros

#define SCALAR_MAPPER(UMAP, FCN)
 

Functions

static octave_base_valuedefault_numeric_demotion_function (const octave_base_value &a)
 

Macro Definition Documentation

◆ SCALAR_MAPPER

#define SCALAR_MAPPER (   UMAP,
  FCN 
)
Value:
case umap_ ## UMAP: \
return octave_value (FCN (scalar))
@ FCN
Definition: oct-parse.h:135
return octave_value(v1.char_array_value() . concat(v2.char_array_value(), ra_idx),((a1.is_sq_string()||a2.is_sq_string()) ? '\'' :'"'))
static bool scalar(const dim_vector &dims)
Definition: ov-struct.cc:679

Function Documentation

◆ default_numeric_demotion_function()

static octave_base_value* default_numeric_demotion_function ( const octave_base_value a)
static

Definition at line 71 of file ov-scalar.cc.

References octave_scalar::float_value().

Referenced by octave_scalar::numeric_demotion_function().