GNU Octave  3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Macros | Functions
ov-flt-re-mat.cc File Reference
#include <iostream>
#include <limits>
#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 "mxarray.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-float.h"
#include "ov-flt-complex.h"
#include "ov-re-mat.h"
#include "ov-flt-re-mat.h"
#include "ov-flt-cx-mat.h"
#include "ov-re-sparse.h"
#include "ov-flt-re-diag.h"
#include "ov-flt-cx-diag.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-flt-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

 DEFINE_OCTAVE_ALLOCATOR (octave_float_matrix)
 DEFUN (single, args,,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} single (@var{x})\n\ Convert @var{x} to single precision type.\n\ @seealso{double}\n\ @end deftypefn")
static octave_value do_rc_map (const FloatNDArray &a, FloatComplex(&fcn)(float))

Macro Definition 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)

Referenced by octave_float_matrix::map(), and octave_matrix::map().

Function Documentation

DEFINE_OCTAVE_ALLOCATOR ( octave_float_matrix  )
DEFUN ( single  ,
args   
)

Definition at line 819 of file ov-flt-re-mat.cc.

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

static octave_value do_rc_map ( const FloatNDArray a,
FloatComplex(&)(float fcn 
)
static

Definition at line 709 of file ov-flt-re-mat.cc.

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