#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 1527 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 1644 of file data.cc.
References octave::__get_symbol_table__(), octave_value::class_name(), octave_value_list::empty(), error(), feval(), symbol_table::find_method(), octave_value::is_defined(), and ovl().
Referenced by do_class_concat().
|
static |
Definition at line 6340 of file data.cc.
References octave_value::assign(), binary_op(), octave_value_list::length(), and print_usage().
Referenced by Fand(), Fmtimes(), For(), Fplus(), and Ftimes().
|
static |
Definition at line 6330 of file data.cc.
References 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 7537 of file data.cc.
References error(), octave::idx_vector::extent(), and octave::idx_vector::length().
Referenced by do_accumarray_minmax_fun().
|
static |
Definition at line 7565 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, and print_usage().
Referenced by F__accumarray_max__(), and F__accumarray_min__().
|
static |
Definition at line 7453 of file data.cc.
References error(), octave::idx_vector::extent(), and octave::idx_vector::length().
Referenced by F__accumarray_sum__().
|
static |
Definition at line 7666 of file data.cc.
References error(), octave::idx_vector::extent(), dim_vector::first_non_singleton(), octave::idx_vector::length(), dim_vector::ndims(), and dim_vector::resize().
Referenced by F__accumdim_sum__().
|
static |
Definition at line 1780 of file data.cc.
References cat_op(), dim_vector::concat(), do_class_concat(), do_single_type_concat_map(), error(), octave::get_concat_class(), dim_vector::hvcat(), octave_value_list::length(), Matrix, octave::maybe_warn_string_concat(), dim_vector::ndims(), octave_value(), print_usage(), ra_idx, octave_value::resize(), octave_value_list::resize(), and warn_implicit_conversion().
Referenced by Fcat(), Fhorzcat(), and Fvertcat().
octave_value do_class_concat | ( | const octave_value_list & | ovl, |
const std::string & | cattype, | ||
int | dim | ||
) |
Definition at line 1711 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(), feval(), symbol_table::find_method(), get_dispatch_type(), octave_value::is_defined(), octave_value::isempty(), octave_value::isobject(), len, octave_value_list::length(), octave_value(), ovl(), and octave_value_list::resize().
Referenced by octave::tm_const::class_concat(), and do_cat().
|
static |
Definition at line 7961 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_diff(), 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(), 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().
|
static |
Definition at line 318 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(), octave_value::scalar_value(), octave_value::sparse_matrix_value(), and x.
Referenced by Fhypot().
|
static |
Definition at line 5444 of file data.cc.
References octave_value::is_scalar_type(), and linspace().
|
static |
Definition at line 7755 of file data.cc.
References Array< T, Alloc >::data(), Array< T, Alloc >::dims(), and error().
Referenced by Fmerge().
|
static |
Definition at line 2467 of file data.cc.
References octave_value_list::length(), Array< T, Alloc >::numel(), octave_value(), and print_usage().
Referenced by Fipermute(), and Fpermute().
|
static |
Definition at line 8127 of file data.cc.
References Array< T, Alloc >::checkelem(), Array< T, Alloc >::clear(), Array< T, Alloc >::columns(), error(), Array< T, Alloc >::fortran_vec(), Array< T, Alloc >::ndims(), and Array< T, Alloc >::rows().
|
static |
|
static |
Definition at line 1631 of file data.cc.
References all_scalar_1x1().
Referenced by do_cat(), and do_class_concat().
|
static |
T eps | ( | const T & | x | ) |
Definition at line 4842 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 7659 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 7650 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 7478 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(), print_usage(), and octave_value::range_value().
OCTAVE_EXPORT octave_value_list F__accumdim_sum__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 7699 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(), and print_usage().
OCTAVE_EXPORT octave_value_list F__base64_decode_bytes__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 8412 of file data.cc.
References dim_vector::alloc(), octave::base64_decode_bytes(), Array< T, Alloc >::numel(), ovl(), print_usage(), and MArray< T >::reshape().
OCTAVE_EXPORT octave_value_list F__sort_rows_idx__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 7155 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_NAMESPACE_BEGIN OCTAVE_EXPORT octave_value_list Fall | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 92 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 6611 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 157 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 208 of file data.cc.
References err_wrong_type_arg(), error(), and print_usage().
OCTAVE_EXPORT octave_value_list Fbase64_decode | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 8356 of file data.cc.
References dim_vector::alloc(), octave::base64_decode(), Array< T, Alloc >::numel(), ovl(), print_usage(), and Array< T, Alloc >::reshape().
OCTAVE_EXPORT octave_value_list Fbase64_encode | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 8248 of file data.cc.
References octave::base64_encode(), Array< T, Alloc >::data(), error(), free(), octave::math::isinteger(), MAKE_INT_BRANCH, Array< T, Alloc >::numel(), octave_value(), panic_impossible, and print_usage().
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 6649 of file data.cc.
References colon_op(), and print_usage().
OCTAVE_EXPORT octave_value_list Fcolumns | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 2991 of file data.cc.
References ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fcomplex | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3430 of file data.cc.
References octave_value::array_value(), Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), Sparse< T, Alloc >::data(), Array< T, Alloc >::dims(), Sparse< T, Alloc >::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, Alloc >::nnz(), octave_value::numel(), Array< T, Alloc >::numel(), octave_value(), print_usage(), Sparse< T, Alloc >::ridx(), Sparse< T, Alloc >::rows(), octave_value::sparse_matrix_value(), SparseComplexMatrix, octave_value::xcomplex_array_value(), octave_value::xcomplex_value(), Array< T, Alloc >::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 6816 of file data.cc.
References ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fctranspose | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6304 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 1014 of file data.cc.
References DATA_REDUCTION.
OCTAVE_EXPORT octave_value_list Fcumsum | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1062 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(), 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 1220 of file data.cc.
References octave_value::columns(), octave_value::diag(), error(), octave_value::ndims(), print_usage(), and octave_value::rows().
OCTAVE_EXPORT octave_value_list Fdiff | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 8078 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 4829 of file data.cc.
References fill_matrix().
OCTAVE_EXPORT octave_value_list Feps | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 4898 of file data.cc.
References octave_value::array_value(), eps(), error(), fill_matrix(), octave_value::float_array_value(), octave_value::is_double_type(), and octave_value::is_single_type().
OCTAVE_EXPORT octave_value_list Feq | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6495 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 5384 of file data.cc.
References oct_data_conv::dt_double, get_dimensions(), identity_matrix(), print_usage(), and oct_data_conv::string_to_data_type().
OCTAVE_EXPORT octave_value_list Ffalse | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5178 of file data.cc.
References fill_matrix().
OCTAVE_EXPORT octave_value_list Ffull | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5973 of file data.cc.
References ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fge | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6505 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 6515 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 386 of file data.cc.
References do_hypot(), and print_usage().
OCTAVE_EXPORT octave_value_list FI | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5112 of file data.cc.
References fill_matrix().
|
static |
Definition at line 4426 of file data.cc.
References boolNDArray, check_dimensions(), dim_vector::chop_trailing_singletons(), oct_data_conv::dt_logical, error(), get_dimensions(), octave_value_list::length(), dim_vector::ndims(), dim_vector::resize(), SparseBoolMatrix, and oct_data_conv::string_to_data_type().
|
static |
Definition at line 4361 of file data.cc.
References check_dimensions(), dim_vector::chop_trailing_singletons(), ComplexNDArray, oct_data_conv::dt_double, oct_data_conv::dt_single, error(), FloatComplexNDArray, get_dimensions(), octave_value_list::length(), dim_vector::resize(), and oct_data_conv::string_to_data_type().
|
static |
Definition at line 4298 of file data.cc.
References check_dimensions(), dim_vector::chop_trailing_singletons(), oct_data_conv::dt_double, oct_data_conv::dt_single, error(), FloatNDArray, get_dimensions(), octave_value_list::length(), NDArray, dim_vector::resize(), and oct_data_conv::string_to_data_type().
|
static |
Definition at line 4199 of file data.cc.
References check_dimensions(), dim_vector::chop_trailing_singletons(), ComplexNDArray, oct_data_conv::dt_double, oct_data_conv::dt_single, error(), FloatComplexNDArray, FloatNDArray, get_dimensions(), octave_value_list::length(), NDArray, dim_vector::ndims(), dim_vector::resize(), SparseComplexMatrix, SparseMatrix, and oct_data_conv::string_to_data_type().
|
static |
Definition at line 4052 of file data.cc.
References boolNDArray, check_dimensions(), dim_vector::chop_trailing_singletons(), ComplexNDArray, 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(), FloatComplexNDArray, FloatNDArray, get_dimensions(), octave_value_list::length(), NDArray, dim_vector::ndims(), dim_vector::resize(), SparseBoolMatrix, SparseComplexMatrix, SparseMatrix, 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 4685 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 2530 of file data.cc.
References do_permute().
OCTAVE_EXPORT octave_value_list Fiscolumn | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3920 of file data.cc.
References Array< T, Alloc >::numel(), octave_value(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fiscomplex | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3365 of file data.cc.
References ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fisempty | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3737 of file data.cc.
References ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fisfloat | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3397 of file data.cc.
References ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fisinteger | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3310 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 3278 of file data.cc.
References ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fismatrix | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3970 of file data.cc.
References Array< T, Alloc >::numel(), octave_value(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fisnumeric | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3759 of file data.cc.
References ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fisreal | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3723 of file data.cc.
References ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fisrow | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3871 of file data.cc.
References Array< T, Alloc >::numel(), octave_value(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fisscalar | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3791 of file data.cc.
References Array< T, Alloc >::numel(), octave_value(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fissorted | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 7229 of file data.cc.
References ASCENDING, octave_value::dims(), error(), get_sort_mode_option(), octave_value::is_sorted_rows(), octave_value::isempty(), octave_value::issorted(), octave_value::issparse(), dim_vector::isvector(), octave_value::ndims(), print_usage(), and UNSORTED.
OCTAVE_EXPORT octave_value_list Fissquare | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 4018 of file data.cc.
References Array< T, Alloc >::numel(), octave_value(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fisvector | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3831 of file data.cc.
References Array< T, Alloc >::numel(), octave_value(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fldivide | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6591 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 6483 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 2545 of file data.cc.
References ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Flinspace | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5507 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(), and print_usage().
OCTAVE_EXPORT octave_value_list Flog2 | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 498 of file data.cc.
References err_wrong_type_arg(), f, octave::math::log2(), map_2_xlog2(), ovl(), print_usage(), and x.
OCTAVE_EXPORT octave_value_list Flt | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6473 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 7844 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(), and print_usage().
OCTAVE_EXPORT octave_value_list Fminus | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6400 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 6463 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 790 of file data.cc.
References btyp_double, btyp_float, err_wrong_type_arg(), error(), octave::math::isinteger(), MAKE_INT_BRANCH, mod(), panic_impossible, and print_usage().
OCTAVE_EXPORT octave_value_list Fmpower | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6448 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 6436 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 6420 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 5150 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 4764 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 2569 of file data.cc.
References Array< T, Alloc >::numel(), octave_value(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fne | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6527 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 2897 of file data.cc.
References ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fnorm | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6042 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(), octave_value::string_value(), transform(), octave::xcolnorms(), octave::xfrobnorm(), octave::xnorm(), and octave::xrownorms().
OCTAVE_EXPORT octave_value_list Fnot | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6240 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 7364 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, Array< T, Alloc >::nth_element(), and print_usage().
OCTAVE_EXPORT octave_value_list Fnumel | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 2634 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 2933 of file data.cc.
References ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fones | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 4530 of file data.cc.
References fill_matrix().
OCTAVE_EXPORT octave_value_list For | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6632 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 2511 of file data.cc.
References do_permute().
OCTAVE_EXPORT octave_value_list Fpi | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 4987 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 6378 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 6578 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 1350 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, NDArray, print_usage(), ComplexNDArray::prod(), SparseComplexMatrix::prod(), NDArray::prod(), SparseMatrix::prod(), FloatComplexNDArray::prod(), FloatNDArray::prod(), 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 6560 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 5031 of file data.cc.
References fill_matrix(), and max().
OCTAVE_EXPORT octave_value_list Frealmin | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5070 of file data.cc.
References fill_matrix(), and min().
OCTAVE_EXPORT octave_value_list Frem | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 608 of file data.cc.
References btyp_double, btyp_float, err_wrong_type_arg(), error(), octave::math::isinteger(), MAKE_INT_BRANCH, panic_impossible, print_usage(), and rem().
OCTAVE_EXPORT octave_value_list Frepelems | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 8181 of file data.cc.
References BTYP_BRANCH, Array< T, Alloc >::dims(), err_wrong_type_arg(), error(), Array< T, Alloc >::ndims(), Array< T, Alloc >::numel(), print_usage(), Array< T, Alloc >::rows(), x, and Array< T, Alloc >::xelem().
OCTAVE_EXPORT octave_value_list Freshape | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5785 of file data.cc.
References dim_vector::alloc(), error(), dim_vector::numel(), Array< T, Alloc >::numel(), print_usage(), and octave_value::reshape().
OCTAVE_EXPORT octave_value_list Fresize | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5708 of file data.cc.
References Array< T, Alloc >::numel(), print_usage(), octave_value::resize(), and dim_vector::resize().
OCTAVE_EXPORT octave_value_list Frows | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 2947 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 2715 of file data.cc.
References error(), dim_vector::ndims(), Array< T, Alloc >::numel(), ovl(), print_usage(), dim_vector::redim(), Array< T, Alloc >::resize(), Matrix::resize(), and Array< T, Alloc >::xelem().
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 6897 of file data.cc.
References ASCENDING, DESCENDING, octave_value::dims(), error(), dim_vector::first_non_singleton(), ovl(), print_usage(), and octave_value::sort().
OCTAVE_EXPORT octave_value_list Fsqueeze | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5959 of file data.cc.
References ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fsum | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3039 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(), 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 3249 of file data.cc.
References DATA_REDUCTION.
OCTAVE_EXPORT octave_value_list Ftic | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 6713 of file data.cc.
References octave_value::double_value(), tic_toc_timestamp, and warning().
OCTAVE_EXPORT octave_value_list Ftimes | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6547 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 6752 of file data.cc.
References error(), octave_stdout, print_usage(), tic_toc_timestamp, and octave_int< T >::value().
OCTAVE_EXPORT octave_value_list Ftranspose | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6272 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 5210 of file data.cc.
References fill_matrix().
OCTAVE_EXPORT octave_value_list Fuminus | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6260 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 6250 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 5900 of file data.cc.
References dim_vector::alloc(), error(), octave_value::magic_colon_t, octave_value::numel(), print_usage(), octave_value::reshape(), 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 4611 of file data.cc.
References fill_matrix().
|
static |
Definition at line 7192 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 5273 of file data.cc.
References DiagMatrix, 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(), FloatDiagMatrix, identity_matrix< boolNDArray >(), identity_matrix< int16NDArray >(), identity_matrix< int32NDArray >(), identity_matrix< int64NDArray >(), identity_matrix< int8NDArray >(), identity_matrix< uint16NDArray >(), identity_matrix< uint32NDArray >(), identity_matrix< uint64NDArray >(), and identity_matrix< uint8NDArray >().
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 449 of file data.cc.
References f, octave::math::log2(), x, and Array< T, Alloc >::xelem().
Referenced by Flog2().
|
static |
Definition at line 1539 of file data.cc.
References all_scalar_1x1(), Array< T, Alloc >::cat(), Array< T, Alloc >::clear(), octave_value_list::length(), OCTAVE_LOCAL_BUFFER, and dim_vector::resize().
|
static |
Definition at line 1582 of file data.cc.
References Sparse< T, Alloc >::cat(), octave_value_list::length(), and OCTAVE_LOCAL_BUFFER.
|
static |
Definition at line 1613 of file data.cc.
References octave_map::cat(), octave_value_list::length(), and OCTAVE_LOCAL_BUFFER.
|
static |
Definition at line 6224 of file data.cc.
References octave_value_list::length(), print_usage(), and unary_op().
Referenced by Fctranspose(), Fnot(), Ftranspose(), Fuminus(), and Fuplus().