#include <cmath>
#include "lo-ieee.h"
#include "lo-mappers.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"
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 | |
static octave_value_list | do_cumminmax_body (const octave_value_list &args, int nargout, bool ismin) |
template<typename ArrayType > | |
static octave_value_list | do_cumminmax_red_op (const octave_value &arg, int nargout, int dim, bool ismin) |
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 | Fcummax (const octave_value_list &args, int nargout) |
OCTAVE_EXPORT octave_value_list | Fcummin (const octave_value_list &args, int nargout) |
OCTAVE_EXPORT octave_value_list | Fmax (const octave_value_list &args, int nargout) |
OCTAVE_EXPORT octave_value_list | Fmin (const octave_value_list &args, int nargout) |
#define MAKE_INT_BRANCH | ( | X | ) |
#define MAKE_INT_BRANCH | ( | X | ) |
#define MAKE_INT_BRANCH | ( | X | ) |
|
static |
Definition at line 917 of file max.cc.
References btyp_bool, btyp_complex, btyp_double, btyp_float, btyp_float_complex, octave_value::builtin_type(), err_wrong_type_arg(), error(), octave_value_list::length(), MAKE_INT_BRANCH, print_usage(), and retval.
|
static |
Definition at line 888 of file max.cc.
References octave_value(), Array< T >::resize(), and retval.
|
static |
octave_value do_minmax_bin_op< charNDArray > | ( | const octave_value & | argx, |
const octave_value & | argy, | ||
bool | ismin | ||
) |
Definition at line 207 of file max.cc.
References max(), min(), Array< T >::numel(), octave_value_extract< charNDArray >(), retval, and x.
Referenced by do_minmax_body().
|
static |
Definition at line 239 of file max.cc.
References btyp_bool, btyp_char, btyp_complex, btyp_double, btyp_float, btyp_float_complex, btyp_mixed_numeric(), octave_value::builtin_type(), do_minmax_bin_op< charNDArray >(), do_minmax_red_op< boolNDArray >(), do_minmax_red_op< charNDArray >(), err_wrong_type_arg(), error(), Range::inc(), octave_value::is_range(), octave_value::is_scalar_type(), octave_value::issparse(), octave_value_list::length(), MAKE_INT_BRANCH, Range::max(), Range::min(), Range::numel(), print_usage(), octave_value::range_value(), retval, octave_value::type_name(), and warning().
|
static |
Definition at line 49 of file max.cc.
References octave_value(), and retval.
octave_value_list do_minmax_red_op< boolNDArray > | ( | const octave_value & | arg, |
int | nargout, | ||
int | dim, | ||
bool | ismin | ||
) |
Definition at line 115 of file max.cc.
References boolNDArray::all(), boolNDArray::any(), octave_value::bool_array_value(), Array< T >::isempty(), octave_value::issparse(), and retval.
Referenced by do_minmax_body().
octave_value_list do_minmax_red_op< charNDArray > | ( | const octave_value & | arg, |
int | nargout, | ||
int | dim, | ||
bool | ismin | ||
) |
Definition at line 85 of file max.cc.
References charNDArray::max(), charNDArray::min(), octave_value(), octave_value_extract< charNDArray >(), and retval.
Referenced by do_minmax_body().
OCTAVE_EXPORT octave_value_list Fcummax | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 1076 of file max.cc.
References do_cumminmax_body().
OCTAVE_EXPORT octave_value_list Fcummin | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 1021 of file max.cc.
References do_cumminmax_body().
OCTAVE_EXPORT octave_value_list Fmax | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 726 of file max.cc.
References do_minmax_body().
OCTAVE_EXPORT octave_value_list Fmin | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 504 of file max.cc.
References do_minmax_body().