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 | Variables
data.cc File Reference
#include <sys/types.h>
#include <sys/times.h>
#include <cfloat>
#include <ctime>
#include <string>
#include "lo-ieee.h"
#include "lo-math.h"
#include "oct-base64.h"
#include "oct-time.h"
#include "str-vec.h"
#include "quit.h"
#include "mx-base.h"
#include "oct-binmap.h"
#include "Cell.h"
#include "defun.h"
#include "error.h"
#include "gripes.h"
#include "oct-map.h"
#include "oct-obj.h"
#include "ov.h"
#include "ov-class.h"
#include "ov-float.h"
#include "ov-complex.h"
#include "ov-flt-complex.h"
#include "ov-cx-mat.h"
#include "ov-flt-cx-mat.h"
#include "ov-cx-sparse.h"
#include "parse.h"
#include "pt-mat.h"
#include "utils.h"
#include "variables.h"
#include "pager.h"
#include "xnorm.h"
Include dependency graph for data.cc:

Go to the source code of this file.

Macros

#define ANY_ALL(FCN)
#define BTYP_BRANCH(X, EX)
#define DATA_REDUCTION(FCN)
#define INSTANTIATE_EYE(T)   template octave_value identity_matrix<T> (int, int)
#define MAKE_INT_BRANCH(X)
#define MAKE_INT_BRANCH(X)
#define MAKE_INT_BRANCH(X)
#define MAKE_INT_BRANCH(X)
#define MAKE_INT_BRANCH(X)
#define MAKE_INT_BRANCH(X)
#define MAKE_INT_BRANCH(INTX)
#define MAKE_INT_BRANCH(X)
#define NATIVE_REDUCTION(FCN, BOOL_FCN)
#define NATIVE_REDUCTION_1(FCN, TYPE, DIM)

Functions

static bool all_scalar_1x1 (const octave_value_list &args)
static octave_value attempt_type_conversion (const octave_value &ov, std::string dtype)
static octave_value binary_assoc_op_defun_body (octave_value::binary_op op, octave_value::assign_op aop, const octave_value_list &args)
static octave_value binary_op_defun_body (octave_value::binary_op op, const octave_value_list &args)
template<class NDT >
static NDT do_accumarray_minmax (const idx_vector &idx, const NDT &vals, octave_idx_type n, bool ismin, const typename NDT::element_type &zero_val)
static octave_value_list do_accumarray_minmax_fun (const octave_value_list &args, bool ismin)
template<class NDT >
static NDT do_accumarray_sum (const idx_vector &idx, const NDT &vals, octave_idx_type n=-1)
template<class NDT >
static NDT do_accumdim_sum (const idx_vector &idx, const NDT &vals, int dim=-1, octave_idx_type n=-1)
static octave_value do_cat (const octave_value_list &xargs, int dim, std::string fname)
octave_value do_class_concat (const octave_value_list &ovl, std::string cattype, int dim)
static octave_value do_diff (const octave_value &array, octave_idx_type order, int dim=-1)
static octave_value do_hypot (const octave_value &x, const octave_value &y)
template<class MT >
static octave_value do_linspace (const octave_value &base, const octave_value &limit, octave_idx_type n)
template<class NDT >
static NDT do_merge (const Array< bool > &mask, const NDT &tval, const NDT &fval)
static octave_value do_permute (const octave_value_list &args, bool inv)
template<class T >
static Array< T > do_repelems (const Array< T > &src, const Array< octave_idx_type > &rep)
template<class TYPE >
static TYPE do_single_type_concat (const octave_value_list &args, int dim)
static octave_map do_single_type_concat_map (const octave_value_list &args, int dim)
template<class SparseT >
static SparseT do_sparse_diff (const SparseT &array, octave_idx_type order, int dim)
OCTAVE_EXPORT octave_value_list F__accumarray_max__ (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list F__accumarray_min__ (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list F__accumarray_sum__ (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list F__accumdim_sum__ (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list F__sort_rows_idx__ (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fall (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fand (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fany (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fatan2 (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fbase64_decode (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fbase64_encode (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fcat (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fcolumns (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fcomplex (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fcputime (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fctranspose (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fcumprod (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fcumsum (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fdiag (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fdiff (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fe (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Feps (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Feq (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Feye (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Ffalse (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Ffull (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fge (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fgt (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fhorzcat (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fhypot (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list FI (const octave_value_list &args, int)
static octave_value fill_matrix (const octave_value_list &args, int val, const char *fcn)
static octave_value fill_matrix (const octave_value_list &args, double val, float fval, const char *fcn)
static octave_value fill_matrix (const octave_value_list &args, double val, const char *fcn)
static octave_value fill_matrix (const octave_value_list &args, const Complex &val, const char *fcn)
OCTAVE_EXPORT octave_value_list FInf (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fipermute (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fiscomplex (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fisempty (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fisfloat (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fisinteger (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fislogical (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fismatrix (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fisnumeric (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fisreal (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fissorted (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fldivide (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fle (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Flength (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Flinspace (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Flog2 (const octave_value_list &args, int nargout)
OCTAVE_EXPORT octave_value_list Flt (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fmerge (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fminus (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fmldivide (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fmod (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fmpower (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fmrdivide (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fmtimes (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list FNA (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list FNaN (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fndims (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fne (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fnnz (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fnorm (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fnot (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fnth_element (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fnumel (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fnzmax (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fones (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list For (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fpermute (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fpi (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fplus (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fpower (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fprod (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Frdivide (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Frealmax (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Frealmin (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Frem (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Frepelems (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Freshape (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fresize (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Frows (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fsize (const octave_value_list &args, int nargout)
OCTAVE_EXPORT octave_value_list Fsize_equal (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fsort (const octave_value_list &args, int nargout)
OCTAVE_EXPORT octave_value_list Fsqueeze (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fsum (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fsumsq (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Ftic (const octave_value_list &args, int nargout)
OCTAVE_EXPORT octave_value_list Ftimes (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Ftoc (const octave_value_list &args, int nargout)
OCTAVE_EXPORT octave_value_list Ftranspose (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Ftrue (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fuminus (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fuplus (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fvec (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fvertcat (const octave_value_list &args, int)
OCTAVE_EXPORT octave_value_list Fzeros (const octave_value_list &args, int)
static sortmode get_sort_mode_option (const octave_value &arg, const char *argn)
template<class MT >
octave_value identity_matrix (int nr, int nc)
static octave_value identity_matrix (int nr, int nc, oct_data_conv::data_type dt)
template octave_value identity_matrix< boolNDArray > (int, int)
template octave_value identity_matrix< FloatNDArray > (int, int)
template octave_value identity_matrix< int16NDArray > (int, int)
template octave_value identity_matrix< int32NDArray > (int, int)
template octave_value identity_matrix< int64NDArray > (int, int)
template octave_value identity_matrix< int8NDArray > (int, int)
template octave_value identity_matrix< NDArray > (int, int)
template octave_value identity_matrix< uint16NDArray > (int, int)
template octave_value identity_matrix< uint32NDArray > (int, int)
template octave_value identity_matrix< uint64NDArray > (int, int)
template octave_value identity_matrix< uint8NDArray > (int, int)
template<typename T , typename ET >
void map_2_xlog2 (const Array< T > &x, Array< T > &f, Array< ET > &e)
template<class TYPE , class T >
static void single_type_concat (Array< T > &result, const octave_value_list &args, int dim)
template<class TYPE , class T >
static void single_type_concat (Sparse< T > &result, const octave_value_list &args, int dim)
template<class MAP >
static void single_type_concat_map (octave_map &result, const octave_value_list &args, int dim)
static octave_value unary_op_defun_body (octave_value::unary_op op, const octave_value_list &args)

Variables

static double tic_toc_timestamp = -1.0

Macro Definition Documentation

#define ANY_ALL (   FCN)
Value:
octave_value retval; \
\
int nargin = args.length (); \
if (nargin == 1 || nargin == 2) \
{ \
int dim = (nargin == 1 ? -1 : args(1).int_value (true) - 1); \
{ \
if (dim >= -1) \
retval = args(0).FCN (dim); \
error (#FCN ": invalid dimension argument = %d", dim + 1); \
} \
error (#FCN ": expecting dimension argument to be an integer"); \
} \
\
return retval

Definition at line 85 of file data.cc.

Referenced by Fall(), and Fany().

#define BTYP_BRANCH (   X,
  EX 
)
Value:
case btyp_ ## X: \
retval = do_repelems (x.EX ## _value (), r); \
break
#define DATA_REDUCTION (   FCN)

Definition at line 979 of file data.cc.

Referenced by Fprod(), and Fsumsq().

#define INSTANTIATE_EYE (   T)    template octave_value identity_matrix<T> (int, int)

Definition at line 4491 of file data.cc.

#define MAKE_INT_BRANCH (   X)
Value:
case btyp_ ## X: \
{ \
X##NDArray a0 = args(0).X##_array_value (); \
X##NDArray a1 = args(1).X##_array_value (); \
retval = binmap<octave_##X,octave_##X,octave_##X> (a0, a1, rem, "rem"); \
} \
break

Definition at line 6919 of file data.cc.

Referenced by do_accumarray_minmax_fun(), do_cumminmax_body(), do_minmax_body(), Fbase64_encode(), Fcumsum(), Fmerge(), Fnth_element(), Frem(), and Fsum().

#define MAKE_INT_BRANCH (   X)
Value:
case btyp_ ## X: \
{ \
X##NDArray a0 = args(0).X##_array_value (); \
X##NDArray a1 = args(1).X##_array_value (); \
retval = binmap<octave_##X,octave_##X,octave_##X> (a0, a1, mod, "mod"); \
} \
break

Definition at line 6919 of file data.cc.

#define MAKE_INT_BRANCH (   X)
Value:
case btyp_ ## X: \
if (isnative) \
retval = arg.X ## _array_value ().cumsum (dim); \
else \
retval = arg.array_value ().cumsum (dim); \
break

Definition at line 6919 of file data.cc.

#define MAKE_INT_BRANCH (   X)
Value:
case btyp_ ## X: \
if (isnative) \
retval = arg.X ## _array_value ().sum (dim); \
else \
retval = arg.X ## _array_value ().dsum (dim); \
break

Definition at line 6919 of file data.cc.

#define MAKE_INT_BRANCH (   X)
Value:
case btyp_ ## X: \
retval = argx.X ## _array_value ().nth_element (n, dim); \
break

Definition at line 6919 of file data.cc.

#define MAKE_INT_BRANCH (   X)
Value:
case btyp_ ## X: \
retval = do_accumarray_minmax (idx, vals.X ## _array_value (), \
n, ismin, \
zero.X ## _scalar_value ()); \
break

Definition at line 6919 of file data.cc.

#define MAKE_INT_BRANCH (   INTX)
Value:
else if (tval.is_ ## INTX ## _type () && fval.is_ ## INTX ## _type ()) \
{ \
retval = do_merge (mask, \
tval.INTX ## _array_value (), \
fval.INTX ## _array_value ()); \
}

Definition at line 6919 of file data.cc.

#define MAKE_INT_BRANCH (   X)
Value:
if (args(0).is_ ## X ## _type ()) \
{ \
const X##NDArray in = args(0). X## _array_value (); \
size_t inlen = \
in.numel () * sizeof (X## _t) / sizeof (char); \
const char* inc = \
reinterpret_cast<const char*> (in.data ()); \
char* out; \
if (! error_state \
&& octave_base64_encode (inc, inlen, &out)) \
{ \
retval(0) = octave_value (out); \
::free (out); \
} \
}

Definition at line 6919 of file data.cc.

#define NATIVE_REDUCTION (   FCN,
  BOOL_FCN 
)

Definition at line 811 of file data.cc.

#define NATIVE_REDUCTION_1 (   FCN,
  TYPE,
  DIM 
)
Value:
(arg.is_ ## TYPE ## _type ()) \
{ \
TYPE ## NDArray tmp = arg. TYPE ##_array_value (); \
{ \
retval = tmp.FCN (DIM); \
} \
}

Definition at line 800 of file data.cc.

Function Documentation

static bool all_scalar_1x1 ( const octave_value_list args)
static

Definition at line 1429 of file data.cc.

References octave_value_list::length().

Referenced by do_single_type_concat_map(), and single_type_concat().

static octave_value attempt_type_conversion ( const octave_value ov,
std::string  dtype 
)
static
static octave_value binary_assoc_op_defun_body ( octave_value::binary_op  op,
octave_value::assign_op  aop,
const octave_value_list args 
)
static

Definition at line 5505 of file data.cc.

References octave_value::assign(), do_binary_op(), octave_value_list::length(), and print_usage().

Referenced by Fand(), Fmtimes(), For(), Fplus(), and Ftimes().

static octave_value binary_op_defun_body ( octave_value::binary_op  op,
const octave_value_list args 
)
static
template<class NDT >
static NDT do_accumarray_minmax ( const idx_vector idx,
const NDT &  vals,
octave_idx_type  n,
bool  ismin,
const typename NDT::element_type &  zero_val 
)
static

Definition at line 6669 of file data.cc.

References error(), idx_vector::extent(), idx_vector::length(), and void().

Referenced by do_accumarray_minmax_fun().

static octave_value_list do_accumarray_minmax_fun ( const octave_value_list args,
bool  ismin 
)
static
template<class NDT >
static NDT do_accumarray_sum ( const idx_vector idx,
const NDT &  vals,
octave_idx_type  n = -1 
)
static

Definition at line 6593 of file data.cc.

References error(), idx_vector::extent(), and idx_vector::length().

Referenced by F__accumarray_sum__().

template<class NDT >
static NDT do_accumdim_sum ( const idx_vector idx,
const NDT &  vals,
int  dim = -1,
octave_idx_type  n = -1 
)
static
static octave_value do_cat ( const octave_value_list xargs,
int  dim,
std::string  fname 
)
static
octave_value do_class_concat ( const octave_value_list ovl,
std::string  cattype,
int  dim 
)
static octave_value do_diff ( const octave_value array,
octave_idx_type  order,
int  dim = -1 
)
static
static octave_value do_hypot ( const octave_value x,
const octave_value y 
)
static
template<class MT >
static octave_value do_linspace ( const octave_value base,
const octave_value limit,
octave_idx_type  n 
)
static

Definition at line 4689 of file data.cc.

References octave_value::is_scalar_type(), and linspace().

template<class NDT >
static NDT do_merge ( const Array< bool > &  mask,
const NDT &  tval,
const NDT &  fval 
)
static

Definition at line 6865 of file data.cc.

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

Referenced by Fmerge().

static octave_value do_permute ( const octave_value_list args,
bool  inv 
)
static

Definition at line 2325 of file data.cc.

References error_state, octave_value_list::length(), Array< T >::length(), and print_usage().

Referenced by Fipermute(), and Fpermute().

template<class T >
static Array<T> do_repelems ( const Array< T > &  src,
const Array< octave_idx_type > &  rep 
)
static
template<class TYPE >
static TYPE do_single_type_concat ( const octave_value_list args,
int  dim 
)
static

Definition at line 1506 of file data.cc.

static octave_map do_single_type_concat_map ( const octave_value_list args,
int  dim 
)
static

Definition at line 1536 of file data.cc.

References all_scalar_1x1().

Referenced by do_cat(), and do_class_concat().

template<class SparseT >
static SparseT do_sparse_diff ( const SparseT &  array,
octave_idx_type  order,
int  dim 
)
static

Definition at line 7031 of file data.cc.

Referenced by do_diff().

OCTAVE_EXPORT octave_value_list F__accumarray_max__ ( const octave_value_list args,
int   
)

Definition at line 6777 of file data.cc.

References do_accumarray_minmax_fun().

OCTAVE_EXPORT octave_value_list F__accumarray_min__ ( const octave_value_list args,
int   
)

Definition at line 6768 of file data.cc.

References do_accumarray_minmax_fun().

OCTAVE_EXPORT octave_value_list F__accumarray_sum__ ( const octave_value_list args,
int   
)
OCTAVE_EXPORT octave_value_list F__accumdim_sum__ ( const octave_value_list args,
int   
)
OCTAVE_EXPORT octave_value_list F__sort_rows_idx__ ( const octave_value_list args,
int   
)
OCTAVE_EXPORT octave_value_list Fall ( const octave_value_list args,
int   
)

Definition at line 131 of file data.cc.

References ANY_ALL.

OCTAVE_EXPORT octave_value_list Fand ( const octave_value_list args,
int   
)
OCTAVE_EXPORT octave_value_list Fany ( const octave_value_list args,
int   
)

Definition at line 185 of file data.cc.

References ANY_ALL.

OCTAVE_EXPORT octave_value_list Fatan2 ( const octave_value_list args,
int   
)
OCTAVE_EXPORT octave_value_list Fbase64_decode ( const octave_value_list args,
int   
)
OCTAVE_EXPORT octave_value_list Fbase64_encode ( const octave_value_list args,
int   
)
OCTAVE_EXPORT octave_value_list Fcat ( const octave_value_list args,
int   
)

Definition at line 2157 of file data.cc.

References do_cat(), error(), error_state, octave_value::int_value(), and print_usage().

OCTAVE_EXPORT octave_value_list Fcolumns ( const octave_value_list args,
int   
)

Definition at line 2661 of file data.cc.

References octave_value::columns(), and print_usage().

OCTAVE_EXPORT octave_value_list Fcomplex ( const octave_value_list args,
int   
)
OCTAVE_EXPORT octave_value_list Fcputime ( const octave_value_list args,
int   
)

Definition at line 5930 of file data.cc.

References octave_value_list::length(), RUSAGE_SELF, and warning().

OCTAVE_EXPORT octave_value_list Fctranspose ( const octave_value_list args,
int   
)

Definition at line 5465 of file data.cc.

References octave_value::op_hermitian, and unary_op_defun_body().

OCTAVE_EXPORT octave_value_list Fcumprod ( const octave_value_list args,
int   
)

Definition at line 1067 of file data.cc.

OCTAVE_EXPORT octave_value_list Fcumsum ( const octave_value_list args,
int   
)
OCTAVE_EXPORT octave_value_list Fdiag ( const octave_value_list args,
int   
)
OCTAVE_EXPORT octave_value_list Fdiff ( const octave_value_list args,
int   
)

Definition at line 7183 of file data.cc.

References do_diff(), error(), error_state, octave_value_list::length(), and print_usage().

OCTAVE_EXPORT octave_value_list Fe ( const octave_value_list args,
int   
)

Definition at line 4110 of file data.cc.

References fill_matrix().

OCTAVE_EXPORT octave_value_list Feps ( const octave_value_list args,
int   
)
OCTAVE_EXPORT octave_value_list Feq ( const octave_value_list args,
int   
)

Definition at line 5643 of file data.cc.

References binary_op_defun_body(), and octave_value::op_eq.

OCTAVE_EXPORT octave_value_list Feye ( const octave_value_list args,
int   
)
OCTAVE_EXPORT octave_value_list Ffalse ( const octave_value_list args,
int   
)

Definition at line 4438 of file data.cc.

References fill_matrix().

OCTAVE_EXPORT octave_value_list Ffull ( const octave_value_list args,
int   
)

Definition at line 5155 of file data.cc.

References octave_value_list::length(), and print_usage().

OCTAVE_EXPORT octave_value_list Fge ( const octave_value_list args,
int   
)

Definition at line 5653 of file data.cc.

References binary_op_defun_body(), and octave_value::op_ge.

OCTAVE_EXPORT octave_value_list Fgt ( const octave_value_list args,
int   
)

Definition at line 5663 of file data.cc.

References binary_op_defun_body(), and octave_value::op_gt.

OCTAVE_EXPORT octave_value_list Fhorzcat ( const octave_value_list args,
int   
)

Definition at line 1892 of file data.cc.

References do_cat().

OCTAVE_EXPORT octave_value_list Fhypot ( const octave_value_list args,
int   
)

Definition at line 370 of file data.cc.

References do_hypot(), error_state, octave_value::length(), and print_usage().

OCTAVE_EXPORT octave_value_list FI ( const octave_value_list args,
int   
)

Definition at line 4386 of file data.cc.

References fill_matrix().

static octave_value fill_matrix ( const octave_value_list args,
int  val,
const char fcn 
)
static
static octave_value fill_matrix ( const octave_value_list args,
double  val,
float  fval,
const char fcn 
)
static
static octave_value fill_matrix ( const octave_value_list args,
double  val,
const char fcn 
)
static
static octave_value fill_matrix ( const octave_value_list args,
const Complex val,
const char fcn 
)
static
OCTAVE_EXPORT octave_value_list FInf ( const octave_value_list args,
int   
)

Definition at line 4002 of file data.cc.

References fill_matrix(), lo_ieee_float_inf_value(), and lo_ieee_inf_value().

OCTAVE_EXPORT octave_value_list Fipermute ( const octave_value_list args,
int   
)

Definition at line 2376 of file data.cc.

References do_permute().

OCTAVE_EXPORT octave_value_list Fiscomplex ( const octave_value_list args,
int   
)

Definition at line 2995 of file data.cc.

References octave_value::is_complex_type(), and print_usage().

OCTAVE_EXPORT octave_value_list Fisempty ( const octave_value_list args,
int   
)

Definition at line 3357 of file data.cc.

References octave_value::is_empty(), and print_usage().

OCTAVE_EXPORT octave_value_list Fisfloat ( const octave_value_list args,
int   
)

Definition at line 3013 of file data.cc.

References octave_value::is_float_type(), and print_usage().

OCTAVE_EXPORT octave_value_list Fisinteger ( const octave_value_list args,
int   
)

Definition at line 2978 of file data.cc.

References octave_value::is_integer_type(), and print_usage().

OCTAVE_EXPORT octave_value_list Fislogical ( const octave_value_list args,
int   
)

Definition at line 2943 of file data.cc.

References octave_value::is_bool_type(), and print_usage().

OCTAVE_EXPORT octave_value_list Fismatrix ( const octave_value_list args,
int   
)
OCTAVE_EXPORT octave_value_list Fisnumeric ( const octave_value_list args,
int   
)

Definition at line 3381 of file data.cc.

References octave_value::is_numeric_type(), and print_usage().

OCTAVE_EXPORT octave_value_list Fisreal ( const octave_value_list args,
int   
)

Definition at line 3339 of file data.cc.

References octave_value::is_real_type(), and print_usage().

OCTAVE_EXPORT octave_value_list Fissorted ( const octave_value_list args,
int   
)
OCTAVE_EXPORT octave_value_list Fldivide ( const octave_value_list args,
int   
)

Definition at line 5733 of file data.cc.

References binary_op_defun_body(), and octave_value::op_el_ldiv.

OCTAVE_EXPORT octave_value_list Fle ( const octave_value_list args,
int   
)

Definition at line 5632 of file data.cc.

References binary_op_defun_body(), and octave_value::op_le.

OCTAVE_EXPORT octave_value_list Flength ( const octave_value_list args,
int   
)

Definition at line 2391 of file data.cc.

References octave_value::length(), and print_usage().

OCTAVE_EXPORT octave_value_list Flinspace ( const octave_value_list args,
int   
)
OCTAVE_EXPORT octave_value_list Flog2 ( const octave_value_list args,
int  nargout 
)

Definition at line 438 of file data.cc.

References f, gripe_wrong_type_arg(), map_2_xlog2(), print_usage(), and x.

OCTAVE_EXPORT octave_value_list Flt ( const octave_value_list args,
int   
)

Definition at line 5622 of file data.cc.

References binary_op_defun_body(), and octave_value::op_lt.

OCTAVE_EXPORT octave_value_list Fmerge ( const octave_value_list args,
int   
)
OCTAVE_EXPORT octave_value_list Fminus ( const octave_value_list args,
int   
)

Definition at line 5558 of file data.cc.

References binary_op_defun_body(), and octave_value::op_sub.

OCTAVE_EXPORT octave_value_list Fmldivide ( const octave_value_list args,
int   
)

Definition at line 5612 of file data.cc.

References binary_op_defun_body(), and octave_value::op_ldiv.

OCTAVE_EXPORT octave_value_list Fmod ( const octave_value_list args,
int   
)

Definition at line 664 of file data.cc.

OCTAVE_EXPORT octave_value_list Fmpower ( const octave_value_list args,
int   
)

Definition at line 5601 of file data.cc.

References binary_op_defun_body(), and octave_value::op_pow.

OCTAVE_EXPORT octave_value_list Fmrdivide ( const octave_value_list args,
int   
)

Definition at line 5590 of file data.cc.

References binary_op_defun_body(), and octave_value::op_div.

OCTAVE_EXPORT octave_value_list Fmtimes ( const octave_value_list args,
int   
)
OCTAVE_EXPORT octave_value_list FNA ( const octave_value_list args,
int   
)

Definition at line 4416 of file data.cc.

References fill_matrix(), lo_ieee_float_na_value(), and lo_ieee_na_value().

OCTAVE_EXPORT octave_value_list FNaN ( const octave_value_list args,
int   
)

Definition at line 4061 of file data.cc.

References fill_matrix(), lo_ieee_float_nan_value(), and lo_ieee_nan_value().

OCTAVE_EXPORT octave_value_list Fndims ( const octave_value_list args,
int   
)

Definition at line 2417 of file data.cc.

References octave_value::ndims(), and print_usage().

OCTAVE_EXPORT octave_value_list Fne ( const octave_value_list args,
int   
)

Definition at line 5674 of file data.cc.

References binary_op_defun_body(), and octave_value::op_ne.

OCTAVE_EXPORT octave_value_list Fnnz ( const octave_value_list args,
int   
)

Definition at line 2606 of file data.cc.

References octave_value::nnz(), and print_usage().

OCTAVE_EXPORT octave_value_list Fnorm ( const octave_value_list args,
int   
)
OCTAVE_EXPORT octave_value_list Fnot ( const octave_value_list args,
int   
)

Definition at line 5403 of file data.cc.

References octave_value::op_not, and unary_op_defun_body().

OCTAVE_EXPORT octave_value_list Fnth_element ( const octave_value_list args,
int   
)
OCTAVE_EXPORT octave_value_list Fnumel ( const octave_value_list args,
int   
)

Definition at line 2457 of file data.cc.

References dims_to_numel(), octave_value::numel(), and print_usage().

OCTAVE_EXPORT octave_value_list Fnzmax ( const octave_value_list args,
int   
)

Definition at line 2627 of file data.cc.

References octave_value::nzmax(), and print_usage().

OCTAVE_EXPORT octave_value_list Fones ( const octave_value_list args,
int   
)

Definition at line 3906 of file data.cc.

References fill_matrix().

OCTAVE_EXPORT octave_value_list For ( const octave_value_list args,
int   
)
OCTAVE_EXPORT octave_value_list Fpermute ( const octave_value_list args,
int   
)

Definition at line 2359 of file data.cc.

References do_permute().

OCTAVE_EXPORT octave_value_list Fpi ( const octave_value_list args,
int   
)

Definition at line 4275 of file data.cc.

References atan(), and fill_matrix().

OCTAVE_EXPORT octave_value_list Fplus ( const octave_value_list args,
int   
)
OCTAVE_EXPORT octave_value_list Fpower ( const octave_value_list args,
int   
)

Definition at line 5722 of file data.cc.

References binary_op_defun_body(), and octave_value::op_el_pow.

OCTAVE_EXPORT octave_value_list Fprod ( const octave_value_list args,
int   
)

Definition at line 1379 of file data.cc.

References DATA_REDUCTION.

OCTAVE_EXPORT octave_value_list Frdivide ( const octave_value_list args,
int   
)

Definition at line 5706 of file data.cc.

References binary_op_defun_body(), and octave_value::op_el_div.

OCTAVE_EXPORT octave_value_list Frealmax ( const octave_value_list args,
int   
)

Definition at line 4314 of file data.cc.

References fill_matrix(), and max().

OCTAVE_EXPORT octave_value_list Frealmin ( const octave_value_list args,
int   
)

Definition at line 4348 of file data.cc.

References fill_matrix(), and min().

OCTAVE_EXPORT octave_value_list Frem ( const octave_value_list args,
int   
)
OCTAVE_EXPORT octave_value_list Frepelems ( const octave_value_list args,
int   
)
OCTAVE_EXPORT octave_value_list Freshape ( const octave_value_list args,
int   
)
OCTAVE_EXPORT octave_value_list Fresize ( const octave_value_list args,
int   
)
OCTAVE_EXPORT octave_value_list Frows ( const octave_value_list args,
int   
)

Definition at line 2644 of file data.cc.

References print_usage(), and octave_value::rows().

OCTAVE_EXPORT octave_value_list Fsize ( const octave_value_list args,
int  nargout 
)
OCTAVE_EXPORT octave_value_list Fsize_equal ( const octave_value_list args,
int   
)

Definition at line 2574 of file data.cc.

References octave_value::length().

OCTAVE_EXPORT octave_value_list Fsort ( const octave_value_list args,
int  nargout 
)
OCTAVE_EXPORT octave_value_list Fsqueeze ( const octave_value_list args,
int   
)

Definition at line 5137 of file data.cc.

References octave_value_list::length(), and print_usage().

OCTAVE_EXPORT octave_value_list Fsum ( const octave_value_list args,
int   
)
OCTAVE_EXPORT octave_value_list Fsumsq ( const octave_value_list args,
int   
)

Definition at line 2914 of file data.cc.

References DATA_REDUCTION.

OCTAVE_EXPORT octave_value_list Ftic ( const octave_value_list args,
int  nargout 
)

Definition at line 5824 of file data.cc.

References octave_time::double_value(), octave_value_list::length(), and warning().

OCTAVE_EXPORT octave_value_list Ftimes ( const octave_value_list args,
int   
)
OCTAVE_EXPORT octave_value_list Ftoc ( const octave_value_list args,
int  nargout 
)
OCTAVE_EXPORT octave_value_list Ftranspose ( const octave_value_list args,
int   
)

Definition at line 5434 of file data.cc.

References octave_value::op_transpose, and unary_op_defun_body().

OCTAVE_EXPORT octave_value_list Ftrue ( const octave_value_list args,
int   
)

Definition at line 4454 of file data.cc.

References fill_matrix().

OCTAVE_EXPORT octave_value_list Fuminus ( const octave_value_list args,
int   
)

Definition at line 5423 of file data.cc.

References octave_value::op_uminus, and unary_op_defun_body().

OCTAVE_EXPORT octave_value_list Fuplus ( const octave_value_list args,
int   
)

Definition at line 5413 of file data.cc.

References octave_value::op_uplus, and unary_op_defun_body().

OCTAVE_EXPORT octave_value_list Fvec ( const octave_value_list args,
int   
)
OCTAVE_EXPORT octave_value_list Fvertcat ( const octave_value_list args,
int   
)

Definition at line 2102 of file data.cc.

References do_cat().

OCTAVE_EXPORT octave_value_list Fzeros ( const octave_value_list args,
int   
)

Definition at line 3948 of file data.cc.

References fill_matrix().

static sortmode get_sort_mode_option ( const octave_value arg,
const char argn 
)
static

Definition at line 6372 of file data.cc.

References ASCENDING, DESCENDING, error(), error_state, octave_value::string_value(), and UNSORTED.

Referenced by Fissorted().

template<class MT >
octave_value identity_matrix ( int  nr,
int  nc 
)

Definition at line 4461 of file data.cc.

References min().

Referenced by Feye().

static octave_value identity_matrix ( int  nr,
int  nc,
oct_data_conv::data_type  dt 
)
static
template octave_value identity_matrix< boolNDArray > ( int  ,
int   
)

Referenced by identity_matrix().

template octave_value identity_matrix< FloatNDArray > ( int  ,
int   
)
template octave_value identity_matrix< int16NDArray > ( int  ,
int   
)

Referenced by identity_matrix().

template octave_value identity_matrix< int32NDArray > ( int  ,
int   
)

Referenced by identity_matrix().

template octave_value identity_matrix< int64NDArray > ( int  ,
int   
)

Referenced by identity_matrix().

template octave_value identity_matrix< int8NDArray > ( int  ,
int   
)

Referenced by identity_matrix().

template octave_value identity_matrix< NDArray > ( int  ,
int   
)
template octave_value identity_matrix< uint16NDArray > ( int  ,
int   
)

Referenced by identity_matrix().

template octave_value identity_matrix< uint32NDArray > ( int  ,
int   
)

Referenced by identity_matrix().

template octave_value identity_matrix< uint64NDArray > ( int  ,
int   
)

Referenced by identity_matrix().

template octave_value identity_matrix< uint8NDArray > ( int  ,
int   
)

Referenced by identity_matrix().

template<typename T , typename ET >
void map_2_xlog2 ( const Array< T > &  x,
Array< T > &  f,
Array< ET > &  e 
)

Definition at line 404 of file data.cc.

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

Referenced by Flog2().

template<class TYPE , class T >
static void single_type_concat ( Array< T > &  result,
const octave_value_list args,
int  dim 
)
static
template<class TYPE , class T >
static void single_type_concat ( Sparse< T > &  result,
const octave_value_list args,
int  dim 
)
static
template<class MAP >
static void single_type_concat_map ( octave_map result,
const octave_value_list args,
int  dim 
)
static
static octave_value unary_op_defun_body ( octave_value::unary_op  op,
const octave_value_list args 
)
static

Definition at line 5385 of file data.cc.

References do_unary_op(), octave_value_list::length(), and print_usage().

Referenced by Fctranspose(), Fnot(), Ftranspose(), Fuminus(), and Fuplus().

Variable Documentation

double tic_toc_timestamp = -1.0
static

Definition at line 5780 of file data.cc.

Referenced by Ftoc().