Defines | Functions

ov-re-mat.cc File Reference

#include <climits>
#include <iostream>
#include <vector>
#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 "gripes.h"
#include "oct-obj.h"
#include "oct-lvalue.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 "ov-type-conv.h"
#include "pr-output.h"
#include "variables.h"
#include "byte-swap.h"
#include "ls-oct-ascii.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.

Defines

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

Functions

static octave_base_valuedefault_numeric_demotion_function (const octave_base_value &a)
 DEFINE_OCTAVE_ALLOCATOR (octave_matrix)
 DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA (octave_matrix,"matrix","double")
 DEFUN (double, args,,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} double (@var{x})\n\ Convert @var{x} to double precision type.\n\ @seealso{single}\n\ @end deftypefn")
static octave_value do_rc_map (const NDArray &a, Complex(&fcn)(double))

Define Documentation

#define ARRAY_MAPPER (   UMAP,
  TYPE,
  FCN 
)
Value:
case umap_ ## UMAP: \
      return octave_value (matrix.map<TYPE> (FCN))
#define ARRAY_METHOD_MAPPER (   UMAP,
  FCN 
)
Value:
case umap_ ## UMAP: \
      return octave_value (matrix.FCN ())
#define RC_ARRAY_MAPPER (   UMAP,
  TYPE,
  FCN 
)
Value:
case umap_ ## UMAP: \
      return do_rc_map (matrix, FCN)
#define UCHAR_MAX   255

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

Referenced by octave_matrix::convert_to_str_internal().


Function Documentation

static octave_base_value* default_numeric_demotion_function ( const octave_base_value a  )  [static]

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

References CAST_CONV_ARG.

Referenced by octave_matrix::numeric_demotion_function().

DEFINE_OCTAVE_ALLOCATOR ( octave_matrix   ) 
DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA ( octave_matrix  ,
"matrix"  ,
"double"   
)
DEFUN ( double  ,
args   
)

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

References OCTAVE_TYPE_CONV_BODY3, octave_value(), and print_usage().

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

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

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

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines