#include <cmath>
#include <cstddef>
#include <cstdint>
#include <ctime>
#include <algorithm>
#include <limits>
#include <string>
#include "lo-ieee.h"
#include "mx-base.h"
#include "oct-base64.h"
#include "oct-binmap.h"
#include "oct-time.h"
#include "quit.h"
#include "Cell.h"
#include "data.h"
#include "defun.h"
#include "error.h"
#include "errwarn.h"
#include "interpreter-private.h"
#include "oct-map.h"
#include "ov-class.h"
#include "ov-complex.h"
#include "ov-cx-mat.h"
#include "ov-cx-sparse.h"
#include "ov-float.h"
#include "ov-flt-complex.h"
#include "ov-flt-cx-mat.h"
#include "ov.h"
#include "ovl.h"
#include "pager.h"
#include "parse.h"
#include "pt-mat.h"
#include "utils.h"
#include "variables.h"
#include "xnorm.h"
Go to the source code of this file.
Macros | |
#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(INTX) |
#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(X) |
#define | MAKE_INT_BRANCH(X) |
Variables | |
static double | tic_toc_timestamp = -1.0 |
#define BTYP_BRANCH | ( | X, | |
EX | |||
) |
#define INSTANTIATE_EYE | ( | T | ) | template octave_value identity_matrix<T> (int, int) |
#define MAKE_INT_BRANCH | ( | INTX | ) |
#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 | ( | X | ) |
#define MAKE_INT_BRANCH | ( | X | ) |
|
static |
Definition at line 1511 of file data.cc.
References octave_value_list::length(), and numel().
Referenced by do_single_type_concat_map(), and single_type_concat().
|
static |
Definition at line 1628 of file data.cc.
References octave::__get_symbol_table__(), octave_value::class_name(), octave_value_list::empty(), error(), octave::feval(), octave::symbol_table::find_method(), octave_value::is_defined(), ovl(), and retval.
Referenced by do_class_concat().
|
static |
Definition at line 6044 of file data.cc.
References Array< T >::assign(), do_binary_op(), octave_value_list::length(), print_usage(), and retval.
Referenced by Fand(), Fmtimes(), For(), Fplus(), and Ftimes().
|
static |
Definition at line 6034 of file data.cc.
References do_binary_op(), octave_value_list::length(), and print_usage().
Referenced by Feq(), Fge(), Fgt(), Fldivide(), Fle(), Flt(), Fminus(), Fmldivide(), Fmpower(), Fmrdivide(), Fne(), Fpower(), and Frdivide().
|
static |
Definition at line 7234 of file data.cc.
References error(), idx_vector::extent(), idx_vector::length(), n, and retval.
Referenced by do_accumarray_minmax_fun().
|
static |
Definition at line 7262 of file data.cc.
References octave_value::array_value(), octave_value::bool_value(), btyp_bool, btyp_complex, btyp_double, btyp_float, btyp_float_complex, octave_value::builtin_type(), octave_value::complex_array_value(), octave_value::complex_value(), do_accumarray_minmax(), octave_value::double_value(), err_wrong_type_arg(), error(), octave_value::float_array_value(), octave_value::float_complex_array_value(), octave_value::float_complex_value(), octave_value::float_value(), octave_value_list::length(), MAKE_INT_BRANCH, n, print_usage(), and retval.
Referenced by F__accumarray_max__(), and F__accumarray_min__().
|
static |
Definition at line 7150 of file data.cc.
References error(), idx_vector::extent(), idx_vector::length(), n, and retval.
Referenced by F__accumarray_sum__().
|
static |
Definition at line 7363 of file data.cc.
References error(), idx_vector::extent(), dim_vector::first_non_singleton(), idx_vector::length(), n, dim_vector::ndims(), dim_vector::resize(), and retval.
Referenced by F__accumdim_sum__().
|
static |
Definition at line 1764 of file data.cc.
References dim_vector::concat(), do_cat_op(), do_class_concat(), do_single_type_concat_map(), error(), octave::get_concat_class(), dim_vector::hvcat(), octave_value_list::length(), octave::maybe_warn_string_concat(), dim_vector::ndims(), octave_value(), print_usage(), ra_idx, octave_value::resize(), octave_value_list::resize(), retval, and warn_implicit_conversion().
Referenced by Fcat(), Fhorzcat(), and Fvertcat().
octave_value do_class_concat | ( | const octave_value_list & | ovl, |
std::string | cattype, | ||
int | dim | ||
) |
Definition at line 1696 of file data.cc.
References octave::__get_symbol_table__(), attempt_type_conversion(), octave_value::class_name(), do_single_type_concat_map(), octave_value_list::empty(), error(), octave::feval(), octave::symbol_table::find_method(), octave::get_dispatch_type(), octave_value::is_defined(), octave_value::isempty(), octave_value::isobject(), len, octave_value_list::length(), m, octave_value(), ovl(), octave_value_list::resize(), and retval.
Referenced by octave::tm_const::class_concat(), and do_cat().
|
static |
Definition at line 7658 of file data.cc.
References octave_value::array_value(), octave_value::complex_array_value(), ComplexNDArray::diff(), NDArray::diff(), FloatComplexNDArray::diff(), FloatNDArray::diff(), intNDArray< T >::diff(), octave_value::dims(), do_sparse_diff(), dim_vector::first_non_singleton(), octave_value::float_array_value(), octave_value::float_complex_array_value(), octave_value::int16_array_value(), octave_value::int32_array_value(), octave_value::int64_array_value(), octave_value::int8_array_value(), octave_value::is_int16_type(), octave_value::is_int32_type(), octave_value::is_int64_type(), octave_value::is_int8_type(), octave_value::is_single_type(), octave_value::is_uint16_type(), octave_value::is_uint32_type(), octave_value::is_uint64_type(), octave_value::is_uint8_type(), octave_value::iscomplex(), octave_value::isinteger(), octave_value::issparse(), dim_vector::ndims(), panic_impossible, octave_value::resize(), retval, octave_value::sparse_complex_matrix_value(), octave_value::sparse_matrix_value(), octave_value::uint16_array_value(), octave_value::uint32_array_value(), octave_value::uint64_array_value(), and octave_value::uint8_array_value().
Referenced by Fdiff().
|
static |
Definition at line 316 of file data.cc.
References octave_value::abs(), octave_value::array_value(), err_wrong_type_arg(), octave_value::float_array_value(), octave_value::float_value(), octave_value::is_scalar_type(), octave_value::is_single_type(), octave_value::iscomplex(), octave_value::isnumeric(), octave_value::issparse(), retval, octave_value::scalar_value(), octave_value::sparse_matrix_value(), and x.
Referenced by Fhypot().
|
static |
Definition at line 5148 of file data.cc.
References octave_value::is_scalar_type(), linspace(), n, and retval.
|
static |
Definition at line 7452 of file data.cc.
References Array< T >::data(), Array< T >::dims(), error(), Array< T >::fortran_vec(), n, Array< T >::numel(), and retval.
Referenced by Fmerge().
|
static |
Definition at line 2451 of file data.cc.
References octave_value_list::length(), octave::jit_convention::length, n, Array< T >::numel(), octave_value(), and print_usage().
Referenced by Fipermute(), and Fpermute().
|
static |
Definition at line 7824 of file data.cc.
References Array< T >::checkelem(), Array< T >::clear(), Array< T >::columns(), error(), Array< T >::fortran_vec(), n, Array< T >::ndims(), retval, and Array< T >::rows().
|
static |
|
static |
Definition at line 1615 of file data.cc.
References all_scalar_1x1().
Referenced by do_cat(), and do_class_concat().
|
static |
Definition at line 7623 of file data.cc.
References Array< T >::columns(), Array< T >::index(), retval, and Array< T >::rows().
Referenced by do_diff().
T eps | ( | const T & | x | ) |
Definition at line 4578 of file data.cc.
References octave::math::frexp(), octave::math::isinf(), octave::math::isnan(), min(), NaN, pow(), and x.
Referenced by do_sqrtm(), F__betainc__(), F__expint__(), F__gammainc__(), Feps(), and Ftsearch().
OCTAVE_EXPORT octave_value_list F__accumarray_max__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 7356 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 7347 of file data.cc.
References do_accumarray_minmax_fun().
OCTAVE_EXPORT octave_value_list F__accumarray_sum__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 7175 of file data.cc.
References octave_value::array_value(), octave_value::complex_array_value(), do_accumarray_sum(), err_wrong_type_arg(), error(), octave_value::float_array_value(), octave_value::float_complex_array_value(), octave_value::is_range(), octave_value::is_single_type(), octave_value::iscomplex(), octave_value::islogical(), octave_value::isnumeric(), n, print_usage(), r, octave_value::range_value(), and retval.
OCTAVE_EXPORT octave_value_list F__accumdim_sum__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 7396 of file data.cc.
References octave_value::array_value(), octave_value::complex_array_value(), do_accumdim_sum(), err_wrong_type_arg(), error(), octave_value::float_array_value(), octave_value::float_complex_array_value(), octave_value::is_single_type(), octave_value::iscomplex(), octave_value::islogical(), octave_value::isnumeric(), n, print_usage(), and retval.
OCTAVE_EXPORT octave_value_list F__sort_rows_idx__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6852 of file data.cc.
References ASCENDING, DESCENDING, error(), octave_value::issparse(), octave_value::ndims(), octave_value(), print_usage(), and octave_value::sort_rows_idx().
OCTAVE_EXPORT octave_value_list Fall | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 90 of file data.cc.
References error(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fand | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6309 of file data.cc.
References binary_assoc_op_defun_body(), octave_value::op_el_and, and octave_value::op_el_and_eq.
OCTAVE_EXPORT octave_value_list Fany | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 155 of file data.cc.
References error(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fatan2 | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 206 of file data.cc.
References err_wrong_type_arg(), error(), print_usage(), and retval.
OCTAVE_EXPORT octave_value_list Fbase64_decode | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 8053 of file data.cc.
References dim_vector::alloc(), octave::base64_decode(), Array< T >::numel(), ovl(), print_usage(), Array< T >::reshape(), and retval.
OCTAVE_EXPORT octave_value_list Fbase64_encode | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 7945 of file data.cc.
References octave::base64_encode(), Array< T >::data(), error(), free(), octave::math::isinteger(), MAKE_INT_BRANCH, Array< T >::numel(), octave_value(), panic_impossible, print_usage(), and retval.
OCTAVE_EXPORT octave_value_list Fcat | ( | const octave_value_list & | args, |
int | |||
) |
OCTAVE_EXPORT octave_value_list Fcolon | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6347 of file data.cc.
References do_colon_op(), and print_usage().
OCTAVE_EXPORT octave_value_list Fcolumns | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 2878 of file data.cc.
References ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fcomplex | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3317 of file data.cc.
References octave_value::array_value(), Sparse< T >::cidx(), Sparse< T >::cols(), Sparse< T >::data(), Array< T >::dims(), Sparse< T >::dims(), octave_value::double_value(), error(), octave_value::float_array_value(), octave_value::float_value(), octave_value::is_single_type(), octave_value::iscomplex(), octave_value::issparse(), Sparse< T >::nnz(), octave_value::numel(), Array< T >::numel(), octave_value(), print_usage(), retval, Sparse< T >::ridx(), Sparse< T >::rows(), octave_value::sparse_matrix_value(), octave_value::xcomplex_array_value(), octave_value::xcomplex_value(), Array< T >::xelem(), octave_value::xfloat_complex_array_value(), octave_value::xfloat_complex_value(), and octave_value::xsparse_complex_matrix_value().
OCTAVE_EXPORT octave_value_list Fcputime | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6513 of file data.cc.
References ovl(), print_usage(), octave::sys::cpu_time::system(), and octave::sys::cpu_time::user().
OCTAVE_EXPORT octave_value_list Fctranspose | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6008 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 998 of file data.cc.
References DATA_REDUCTION.
OCTAVE_EXPORT octave_value_list Fcumsum | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1046 of file data.cc.
References octave_value::array_value(), btyp_bool, btyp_complex, btyp_double, btyp_float, btyp_float_complex, octave_value::builtin_type(), octave_value::complex_array_value(), ComplexNDArray::cumsum(), SparseComplexMatrix::cumsum(), NDArray::cumsum(), SparseMatrix::cumsum(), FloatComplexNDArray::cumsum(), FloatNDArray::cumsum(), err_wrong_type_arg(), error(), octave_value::float_array_value(), octave_value::float_complex_array_value(), octave_value::issparse(), MAKE_INT_BRANCH, print_usage(), retval, octave_value::sparse_complex_matrix_value(), and octave_value::sparse_matrix_value().
OCTAVE_EXPORT octave_value_list Fdiag | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1204 of file data.cc.
References octave_value::columns(), octave_value::diag(), Array< T >::diag(), error(), m, n, octave_value::ndims(), print_usage(), retval, and octave_value::rows().
OCTAVE_EXPORT octave_value_list Fdiff | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 7775 of file data.cc.
References do_diff(), error(), and print_usage().
OCTAVE_EXPORT octave_value_list Fe | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 4565 of file data.cc.
References fill_matrix().
OCTAVE_EXPORT octave_value_list Feps | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 4634 of file data.cc.
References octave_value::array_value(), eps(), error(), fill_matrix(), octave_value::float_array_value(), octave_value::is_double_type(), octave_value::is_single_type(), and retval.
OCTAVE_EXPORT octave_value_list Feq | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6193 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 | |||
) |
Definition at line 5088 of file data.cc.
References oct_data_conv::dt_double, octave::get_dimensions(), identity_matrix(), print_usage(), retval, and oct_data_conv::string_to_data_type().
OCTAVE_EXPORT octave_value_list Ffalse | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 4906 of file data.cc.
References fill_matrix().
OCTAVE_EXPORT octave_value_list Ffull | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5677 of file data.cc.
References ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fge | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6203 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 6213 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 | |||
) |
OCTAVE_EXPORT octave_value_list Fhypot | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 384 of file data.cc.
References do_hypot(), print_usage(), and retval.
OCTAVE_EXPORT octave_value_list FI | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 4848 of file data.cc.
References fill_matrix().
|
static |
Definition at line 4243 of file data.cc.
References octave::check_dimensions(), dim_vector::chop_trailing_singletons(), octave::get_dimensions(), octave_value_list::length(), dim_vector::resize(), and retval.
|
static |
Definition at line 4178 of file data.cc.
References octave::check_dimensions(), dim_vector::chop_trailing_singletons(), oct_data_conv::dt_double, oct_data_conv::dt_single, error(), octave::get_dimensions(), octave_value_list::length(), dim_vector::resize(), retval, and oct_data_conv::string_to_data_type().
|
static |
Definition at line 4112 of file data.cc.
References octave::check_dimensions(), dim_vector::chop_trailing_singletons(), oct_data_conv::dt_double, oct_data_conv::dt_single, error(), octave::get_dimensions(), octave::math::isfinite(), octave_value_list::length(), dim_vector::ndims(), dim_vector::resize(), retval, and oct_data_conv::string_to_data_type().
|
static |
Definition at line 4045 of file data.cc.
References octave::check_dimensions(), dim_vector::chop_trailing_singletons(), oct_data_conv::dt_double, oct_data_conv::dt_single, error(), octave::get_dimensions(), octave::math::isfinite(), octave_value_list::length(), dim_vector::ndims(), dim_vector::resize(), retval, and oct_data_conv::string_to_data_type().
|
static |
Definition at line 3938 of file data.cc.
References octave::check_dimensions(), dim_vector::chop_trailing_singletons(), oct_data_conv::dt_double, oct_data_conv::dt_int16, oct_data_conv::dt_int32, oct_data_conv::dt_int64, oct_data_conv::dt_int8, oct_data_conv::dt_logical, oct_data_conv::dt_single, oct_data_conv::dt_uint16, oct_data_conv::dt_uint32, oct_data_conv::dt_uint64, oct_data_conv::dt_uint8, error(), octave::get_dimensions(), octave_value_list::length(), dim_vector::ndims(), dim_vector::resize(), retval, and oct_data_conv::string_to_data_type().
Referenced by Fe(), Feps(), Ffalse(), FI(), FInf(), FNA(), FNaN(), Fones(), Fpi(), Frealmax(), Frealmin(), Ftrue(), and Fzeros().
OCTAVE_EXPORT octave_value_list FInf | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 4445 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 2514 of file data.cc.
References do_permute().
OCTAVE_EXPORT octave_value_list Fiscolumn | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3806 of file data.cc.
References Array< T >::numel(), octave_value(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fiscomplex | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3252 of file data.cc.
References ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fisempty | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3624 of file data.cc.
References ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fisfloat | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3284 of file data.cc.
References ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fisinteger | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3197 of file data.cc.
References octave::math::isinteger(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fislogical | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3165 of file data.cc.
References ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fismatrix | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3856 of file data.cc.
References Array< T >::numel(), octave_value(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fisnumeric | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3645 of file data.cc.
References ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fisreal | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3610 of file data.cc.
References ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fisrow | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3757 of file data.cc.
References Array< T >::numel(), octave_value(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fisscalar | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3677 of file data.cc.
References Array< T >::numel(), octave_value(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fissorted | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6926 of file data.cc.
References ASCENDING, octave_value::dims(), error(), get_sort_mode_option(), octave_value::is_sorted_rows(), octave_value::isempty(), Array< T >::issorted(), octave_value::issparse(), dim_vector::isvector(), octave_value::ndims(), print_usage(), retval, and UNSORTED.
OCTAVE_EXPORT octave_value_list Fissquare | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3904 of file data.cc.
References Array< T >::numel(), octave_value(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fisvector | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3717 of file data.cc.
References Array< T >::numel(), octave_value(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fldivide | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6289 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 6181 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 2529 of file data.cc.
References octave::jit_convention::length, ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Flinspace | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5211 of file data.cc.
References octave_value::dims(), error(), octave_value::idx_type_value(), octave_value::is_scalar_type(), octave_value::is_single_type(), octave_value::iscomplex(), octave_value::isempty(), octave_value::isnumeric(), dim_vector::ndims(), print_usage(), and retval.
OCTAVE_EXPORT octave_value_list Flog2 | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 481 of file data.cc.
References err_wrong_type_arg(), f, octave::math::log2(), map_2_xlog2(), ovl(), print_usage(), retval, and x.
OCTAVE_EXPORT octave_value_list Flt | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6171 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 | |||
) |
Definition at line 7541 of file data.cc.
References octave_value::array_value(), octave_value::bool_array_value(), octave_value::cell_value(), octave_value::char_array_value(), octave_value::class_name(), octave_value::complex_array_value(), do_merge(), error(), octave_value::float_array_value(), octave_value::float_complex_array_value(), octave_value::is_double_type(), octave_value::is_scalar_type(), octave_value::is_single_type(), octave_value::is_sq_string(), octave_value::is_string(), octave_value::is_true(), octave_value::iscell(), octave_value::iscomplex(), MAKE_INT_BRANCH, octave_value(), print_usage(), and retval.
OCTAVE_EXPORT octave_value_list Fminus | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6104 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 6161 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 773 of file data.cc.
References btyp_double, btyp_float, err_wrong_type_arg(), error(), octave::math::isinteger(), MAKE_INT_BRANCH, octave::math::mod(), panic_impossible, print_usage(), and retval.
OCTAVE_EXPORT octave_value_list Fmpower | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6149 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 6137 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 | |||
) |
Definition at line 6124 of file data.cc.
References binary_assoc_op_defun_body(), octave_value::op_mul, and octave_value::op_mul_eq.
OCTAVE_EXPORT octave_value_list FNA | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 4882 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 4510 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 2553 of file data.cc.
References Array< T >::numel(), octave_value(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fne | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6225 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 2784 of file data.cc.
References ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fnorm | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5746 of file data.cc.
References err_wrong_type_arg(), error(), Inf, octave_value::is_scalar_type(), octave_value::is_string(), octave_value::isempty(), octave_value::ndims(), octave_value(), print_usage(), retval, octave_value::string_value(), transform(), xcolnorms(), xfrobnorm(), xnorm(), and xrownorms().
OCTAVE_EXPORT octave_value_list Fnot | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5944 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 | |||
) |
Definition at line 7061 of file data.cc.
References octave_value::array_value(), btyp_complex, btyp_double, btyp_float, btyp_float_complex, octave_value::builtin_type(), octave_value::cellstr_value(), octave_value::complex_array_value(), octave_value::dims(), err_wrong_type_arg(), error(), dim_vector::first_non_singleton(), octave_value::float_array_value(), octave_value::float_complex_array_value(), octave_value::iscellstr(), MAKE_INT_BRANCH, n, Array< T >::nth_element(), print_usage(), and retval.
OCTAVE_EXPORT octave_value_list Fnumel | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 2618 of file data.cc.
References octave::dims_to_numel(), Array< T >::numel(), print_usage(), and retval.
OCTAVE_EXPORT octave_value_list Fnzmax | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 2820 of file data.cc.
References ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fones | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 4311 of file data.cc.
References fill_matrix().
OCTAVE_EXPORT octave_value_list For | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6330 of file data.cc.
References binary_assoc_op_defun_body(), octave_value::op_el_or, and octave_value::op_el_or_eq.
OCTAVE_EXPORT octave_value_list Fpermute | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 2495 of file data.cc.
References do_permute().
OCTAVE_EXPORT octave_value_list Fpi | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 4723 of file data.cc.
References octave::math::atan(), and fill_matrix().
OCTAVE_EXPORT octave_value_list Fplus | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6082 of file data.cc.
References binary_assoc_op_defun_body(), octave_value::op_add, and octave_value::op_add_eq.
OCTAVE_EXPORT octave_value_list Fpower | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6276 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 1334 of file data.cc.
References boolNDArray::all(), SparseBoolMatrix::all(), octave_value::array_value(), octave_value::bool_array_value(), btyp_bool, btyp_char, btyp_complex, btyp_double, btyp_float, btyp_float_complex, octave_value::builtin_type(), octave_value::complex_array_value(), FloatComplexNDArray::dprod(), FloatNDArray::dprod(), err_wrong_type_arg(), error(), octave_value::float_array_value(), octave_value::float_complex_array_value(), octave_value::issparse(), MAKE_INT_BRANCH, print_usage(), ComplexNDArray::prod(), SparseComplexMatrix::prod(), NDArray::prod(), SparseMatrix::prod(), FloatComplexNDArray::prod(), FloatNDArray::prod(), retval, octave_value::sparse_bool_matrix_value(), octave_value::sparse_complex_matrix_value(), and octave_value::sparse_matrix_value().
OCTAVE_EXPORT octave_value_list Frdivide | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6258 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 4767 of file data.cc.
References fill_matrix(), and max().
OCTAVE_EXPORT octave_value_list Frealmin | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 4806 of file data.cc.
References fill_matrix(), and min().
OCTAVE_EXPORT octave_value_list Frem | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 591 of file data.cc.
References btyp_double, btyp_float, err_wrong_type_arg(), error(), octave::math::isinteger(), MAKE_INT_BRANCH, panic_impossible, print_usage(), octave::math::rem(), and retval.
OCTAVE_EXPORT octave_value_list Frepelems | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 7878 of file data.cc.
References BTYP_BRANCH, Array< T >::dims(), err_wrong_type_arg(), error(), Array< T >::ndims(), Array< T >::numel(), print_usage(), r, retval, Array< T >::rows(), and x.
OCTAVE_EXPORT octave_value_list Freshape | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5489 of file data.cc.
References dim_vector::alloc(), error(), dim_vector::numel(), Array< T >::numel(), print_usage(), Array< T >::reshape(), and retval.
OCTAVE_EXPORT octave_value_list Fresize | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5412 of file data.cc.
References m, Array< T >::numel(), print_usage(), Array< T >::resize(), dim_vector::resize(), and retval.
OCTAVE_EXPORT octave_value_list Frows | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 2834 of file data.cc.
References ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fsize | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 2698 of file data.cc.
References error(), m, dim_vector::ndims(), print_usage(), dim_vector::redim(), Array< T >::resize(), and retval.
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 | ||
) |
Definition at line 6594 of file data.cc.
References ASCENDING, DESCENDING, octave_value::dims(), error(), dim_vector::first_non_singleton(), ovl(), print_usage(), retval, and octave_value::sort().
OCTAVE_EXPORT octave_value_list Fsqueeze | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5663 of file data.cc.
References ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fsum | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 2926 of file data.cc.
References boolNDArray::any(), SparseBoolMatrix::any(), octave_value::array_value(), octave_value::bool_array_value(), btyp_bool, btyp_char, btyp_complex, btyp_double, btyp_float, btyp_float_complex, octave_value::builtin_type(), octave_value::complex_array_value(), FloatComplexNDArray::dsum(), FloatNDArray::dsum(), err_wrong_type_arg(), error(), octave_value::float_array_value(), octave_value::float_complex_array_value(), octave_value::issparse(), MAKE_INT_BRANCH, print_usage(), retval, octave_value::sparse_bool_matrix_value(), octave_value::sparse_complex_matrix_value(), octave_value::sparse_matrix_value(), SparseBoolMatrix::sum(), ComplexNDArray::sum(), SparseComplexMatrix::sum(), NDArray::sum(), SparseMatrix::sum(), FloatComplexNDArray::sum(), FloatNDArray::sum(), warning(), ComplexNDArray::xsum(), and NDArray::xsum().
Referenced by Fdot().
OCTAVE_EXPORT octave_value_list Fsumsq | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3136 of file data.cc.
References DATA_REDUCTION.
OCTAVE_EXPORT octave_value_list Ftic | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 6410 of file data.cc.
References octave::sys::time::double_value(), retval, tic_toc_timestamp, and warning().
OCTAVE_EXPORT octave_value_list Ftimes | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6245 of file data.cc.
References binary_assoc_op_defun_body(), octave_value::op_el_mul, and octave_value::op_el_mul_eq.
OCTAVE_EXPORT octave_value_list Ftoc | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 6449 of file data.cc.
References octave::sys::time::double_value(), error(), octave_stdout, print_usage(), retval, tic_toc_timestamp, and octave_int< T >::value().
OCTAVE_EXPORT octave_value_list Ftranspose | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5976 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 4924 of file data.cc.
References fill_matrix().
OCTAVE_EXPORT octave_value_list Fuminus | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5964 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 5954 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 | |||
) |
Definition at line 5604 of file data.cc.
References dim_vector::alloc(), error(), octave_value::magic_colon_t, Array< T >::numel(), print_usage(), Array< T >::reshape(), retval, and octave_value::single_subsref().
OCTAVE_EXPORT octave_value_list Fvertcat | ( | const octave_value_list & | args, |
int | |||
) |
OCTAVE_EXPORT octave_value_list Fzeros | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 4379 of file data.cc.
References fill_matrix().
|
static |
Definition at line 6889 of file data.cc.
References ASCENDING, DESCENDING, error(), UNSORTED, and octave_value::xstring_value().
Referenced by Fissorted().
octave_value identity_matrix | ( | int | nr, |
int | nc | ||
) |
|
static |
Definition at line 4977 of file data.cc.
References oct_data_conv::dt_double, oct_data_conv::dt_int16, oct_data_conv::dt_int32, oct_data_conv::dt_int64, oct_data_conv::dt_int8, oct_data_conv::dt_logical, oct_data_conv::dt_single, oct_data_conv::dt_uint16, oct_data_conv::dt_uint32, oct_data_conv::dt_uint64, oct_data_conv::dt_uint8, error(), identity_matrix< boolNDArray >(), identity_matrix< int16NDArray >(), identity_matrix< int32NDArray >(), identity_matrix< int64NDArray >(), identity_matrix< int8NDArray >(), identity_matrix< uint16NDArray >(), identity_matrix< uint32NDArray >(), identity_matrix< uint64NDArray >(), identity_matrix< uint8NDArray >(), and retval.
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().
void map_2_xlog2 | ( | const Array< T > & | x, |
Array< T > & | f, | ||
Array< ET > & | e | ||
) |
Definition at line 447 of file data.cc.
References f, octave::math::log2(), x, and Array< T >::xelem().
Referenced by Flog2().
|
static |
Definition at line 1523 of file data.cc.
References all_scalar_1x1(), Array< T >::cat(), Array< T >::clear(), octave_value_list::length(), OCTAVE_LOCAL_BUFFER, and dim_vector::resize().
|
static |
Definition at line 1566 of file data.cc.
References Sparse< T >::cat(), octave_value_list::length(), and OCTAVE_LOCAL_BUFFER.
|
static |
Definition at line 1597 of file data.cc.
References octave_map::cat(), octave_value_list::length(), and OCTAVE_LOCAL_BUFFER.
|
static |
Definition at line 5928 of file data.cc.
References do_unary_op(), octave_value_list::length(), and print_usage().
Referenced by Fctranspose(), Fnot(), Ftranspose(), Fuminus(), and Fuplus().