GNU Octave  4.2.1
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
max.cc File Reference
#include "lo-ieee.h"
#include "lo-mappers.h"
#include "lo-math.h"
#include "dNDArray.h"
#include "CNDArray.h"
#include "quit.h"
#include "defun.h"
#include "error.h"
#include "errwarn.h"
#include "ovl.h"
#include "ov-cx-mat.h"
#include "ov-re-sparse.h"
#include "ov-cx-sparse.h"
Include dependency graph for max.cc:

Go to the source code of this file.

Macros

#define MAKE_INT_BRANCH(X)
 
#define MAKE_INT_BRANCH(X)
 
#define MAKE_INT_BRANCH(X)
 

Functions

template<typename ArrayType >
static octave_value do_minmax_bin_op (const octave_value &argx, const octave_value &argy, bool ismin)
 
template<>
octave_value do_minmax_bin_op< charNDArray > (const octave_value &argx, const octave_value &argy, bool ismin)
 
static octave_value_list do_minmax_body (const octave_value_list &args, int nargout, bool ismin)
 
template<typename ArrayType >
static octave_value_list do_minmax_red_op (const octave_value &arg, int nargout, int dim, bool ismin)
 
template<>
octave_value_list do_minmax_red_op< boolNDArray > (const octave_value &arg, int nargout, int dim, bool ismin)
 
template<>
octave_value_list do_minmax_red_op< charNDArray > (const octave_value &arg, int nargout, int dim, bool ismin)
 
OCTAVE_EXPORT octave_value_list Fmin (const octave_value_list &args, int nargout) ar
 

Macro Definition Documentation

#define MAKE_INT_BRANCH (   X)
Value:
case btyp_ ## X: \
retval = do_minmax_red_op<X ## NDArray> (arg, nargout, dim, ismin); \
break;
octave_value arg
Definition: pr-output.cc:3440
OCTAVE_EXPORT octave_value_list return the number of command line arguments passed to Octave If called with the optional argument the function xample nargout(@histc)
Definition: ov-usr-fcn.cc:935
octave_value retval
Definition: data.cc:6294

Referenced by do_minmax_body().

#define MAKE_INT_BRANCH (   X)
Value:
case btyp_ ## X: \
retval = do_minmax_bin_op<X ## NDArray> (argx, argy, ismin); \
break;
octave_value retval
Definition: data.cc:6294
#define MAKE_INT_BRANCH (   X)
Value:
case btyp_ ## X: \
retval = do_cumminmax_red_op<X ## NDArray> (arg, nargout, dim, ismin); \
break;
octave_value arg
Definition: pr-output.cc:3440
OCTAVE_EXPORT octave_value_list return the number of command line arguments passed to Octave If called with the optional argument the function xample nargout(@histc)
Definition: ov-usr-fcn.cc:935
octave_value retval
Definition: data.cc:6294

Function Documentation

template<typename ArrayType >
static octave_value do_minmax_bin_op ( const octave_value argx,
const octave_value argy,
bool  ismin 
)
static

Definition at line 154 of file max.cc.

References octave_value::is_scalar_type(), max(), min(), retval, x, and y.

template<>
octave_value do_minmax_bin_op< charNDArray > ( const octave_value argx,
const octave_value argy,
bool  ismin 
)

Definition at line 205 of file max.cc.

References max(), min(), Array< T >::numel(), octave_value_extract< charNDArray >(), retval, x, and y.

Referenced by do_minmax_body().

static octave_value_list do_minmax_body ( const octave_value_list args,
int  nargout,
bool  ismin 
)
static
template<typename ArrayType >
static octave_value_list do_minmax_red_op ( const octave_value arg,
int  nargout,
int  dim,
bool  ismin 
)
static

Definition at line 46 of file max.cc.

References arg, array(), octave_value(), and retval.

template<>
octave_value_list do_minmax_red_op< boolNDArray > ( const octave_value arg,
int  nargout,
int  dim,
bool  ismin 
)
template<>
octave_value_list do_minmax_red_op< charNDArray > ( const octave_value arg,
int  nargout,
int  dim,
bool  ismin 
)
OCTAVE_EXPORT octave_value_list Fmin ( const octave_value_list args,
int  nargout 
)

Definition at line 500 of file max.cc.

References do_minmax_body(), and nargout().

Referenced by install_max_fcns().