#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 1556 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 1673 of file data.cc.
References __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 6447 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 6437 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 7691 of file data.cc.
References error(), idx_vector::extent(), idx_vector::length(), and n.
Referenced by do_accumarray_minmax_fcn().
|
static |
Definition at line 7719 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, and print_usage().
Referenced by F__accumarray_max__(), and F__accumarray_min__().
|
static |
Definition at line 7607 of file data.cc.
References error(), idx_vector::extent(), idx_vector::length(), and n.
Referenced by F__accumarray_sum__().
|
static |
Definition at line 7820 of file data.cc.
References error(), idx_vector::extent(), dim_vector::first_non_singleton(), idx_vector::length(), n, dim_vector::ndims(), and dim_vector::resize().
Referenced by F__accumdim_sum__().
|
static |
Definition at line 1809 of file data.cc.
References cat_op(), dim_vector::concat(), do_class_concat(), do_single_type_concat_map(), error(), get_concat_class(), dim_vector::hvcat(), octave_value_list::length(), Matrix, 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 1740 of file data.cc.
References __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(), m, octave_value(), ovl(), and octave_value_list::resize().
Referenced by tm_const::class_concat(), and do_cat().
|
static |
Definition at line 8115 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(), 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 317 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 5552 of file data.cc.
References octave_value::is_scalar_type(), linspace(), and n.
|
static |
Definition at line 7909 of file data.cc.
References Array< T, Alloc >::data(), Array< T, Alloc >::dims(), error(), and n.
Referenced by Fmerge().
|
static |
Definition at line 2514 of file data.cc.
References octave_value_list::length(), n, Array< T, Alloc >::numel(), octave_value(), and print_usage().
Referenced by Fipermute(), and Fpermute().
|
static |
Definition at line 8281 of file data.cc.
References Array< T, Alloc >::checkelem(), Array< T, Alloc >::clear(), Array< T, Alloc >::columns(), error(), Array< T, Alloc >::fortran_vec(), n, Array< T, Alloc >::ndims(), and Array< T, Alloc >::rows().
|
static |
|
static |
Definition at line 1660 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 4942 of file data.cc.
References frexp(), isinf(), 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 7813 of file data.cc.
References do_accumarray_minmax_fcn().
OCTAVE_EXPORT octave_value_list F__accumarray_min__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 7804 of file data.cc.
References do_accumarray_minmax_fcn().
OCTAVE_EXPORT octave_value_list F__accumarray_sum__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 7632 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, and octave_value::range_value().
OCTAVE_EXPORT octave_value_list F__accumdim_sum__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 7853 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, and print_usage().
OCTAVE_EXPORT octave_value_list F__base64_decode_bytes__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 8567 of file data.cc.
References dim_vector::alloc(), 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 7309 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 91 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 6718 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 156 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 207 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 8511 of file data.cc.
References dim_vector::alloc(), 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 8403 of file data.cc.
References base64_encode(), Array< T, Alloc >::data(), error(), free(), 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 6756 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 3041 of file data.cc.
References ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fcomplex | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3481 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 6923 of file data.cc.
References ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fctranspose | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6411 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 1015 of file data.cc.
References DATA_REDUCTION.
OCTAVE_EXPORT octave_value_list Fcumsum | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1066 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 1227 of file data.cc.
References octave_value::columns(), octave_value::diag(), error(), m, n, octave_value::ndims(), print_usage(), and octave_value::rows().
OCTAVE_EXPORT octave_value_list Fdiff | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 8232 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 4929 of file data.cc.
References fill_matrix().
OCTAVE_EXPORT octave_value_list Feps | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 4998 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 6602 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 5492 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 5280 of file data.cc.
References fill_matrix().
OCTAVE_EXPORT octave_value_list Ffull | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6080 of file data.cc.
References ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fge | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6612 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 6622 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 385 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 5214 of file data.cc.
References fill_matrix().
|
static |
Definition at line 4500 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(), numel(), dim_vector::resize(), SparseBoolMatrix, and oct_data_conv::string_to_data_type().
|
static |
Definition at line 4430 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(), numel(), dim_vector::resize(), and oct_data_conv::string_to_data_type().
|
static |
Definition at line 4362 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, numel(), dim_vector::resize(), and oct_data_conv::string_to_data_type().
|
static |
Definition at line 4258 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(), numel(), dim_vector::resize(), SparseComplexMatrix, SparseMatrix, and oct_data_conv::string_to_data_type().
|
static |
Definition at line 4107 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(), numel(), 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 4773 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 2577 of file data.cc.
References do_permute().
OCTAVE_EXPORT octave_value_list Fiscolumn | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3975 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 3416 of file data.cc.
References ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fisempty | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3792 of file data.cc.
References ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fisfloat | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3448 of file data.cc.
References ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fisinteger | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3361 of file data.cc.
References isinteger(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fislogical | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3329 of file data.cc.
References ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fismatrix | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 4025 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 3814 of file data.cc.
References ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fisreal | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3778 of file data.cc.
References ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fisrow | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3926 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 3846 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 7383 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 4073 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 3886 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 6698 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 6590 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 2592 of file data.cc.
References ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Flinspace | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5615 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 497 of file data.cc.
References err_wrong_type_arg(), f, log2(), map_2_xlog2(), ovl(), print_usage(), and x.
OCTAVE_EXPORT octave_value_list Flt | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6580 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 7998 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 6507 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 6570 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 791 of file data.cc.
References btyp_double, btyp_float, err_wrong_type_arg(), error(), 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 6555 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 6543 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 6527 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 5252 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 4858 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 2616 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 6634 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 2945 of file data.cc.
References ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fnorm | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6149 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(), xcolnorms(), xfrobnorm(), xnorm(), and xrownorms().
OCTAVE_EXPORT octave_value_list Fnot | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6347 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 7518 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, Alloc >::nth_element(), and print_usage().
OCTAVE_EXPORT octave_value_list Fnumel | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 2681 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 2981 of file data.cc.
References ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fones | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 4609 of file data.cc.
References fill_matrix().
OCTAVE_EXPORT octave_value_list For | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6739 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 2558 of file data.cc.
References do_permute().
OCTAVE_EXPORT octave_value_list Fpi | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5089 of file data.cc.
References atan(), and fill_matrix().
OCTAVE_EXPORT octave_value_list Fplus | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6485 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 6685 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 1376 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 6667 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 5133 of file data.cc.
References fill_matrix(), and max().
OCTAVE_EXPORT octave_value_list Frealmin | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5172 of file data.cc.
References fill_matrix(), and min().
OCTAVE_EXPORT octave_value_list Frem | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 607 of file data.cc.
References btyp_double, btyp_float, err_wrong_type_arg(), error(), 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 8336 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(), r, Array< T, Alloc >::rows(), and x.
OCTAVE_EXPORT octave_value_list Freshape | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5892 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 5815 of file data.cc.
References m, 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 2996 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 2762 of file data.cc.
References error(), m, dim_vector::ndims(), Array< T, Alloc >::numel(), ovl(), print_usage(), dim_vector::redim(), Array< T, Alloc >::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 7004 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 6066 of file data.cc.
References ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fsum | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3089 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 3300 of file data.cc.
References DATA_REDUCTION.
OCTAVE_EXPORT octave_value_list Ftic | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 6820 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 6654 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 6859 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 6379 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 5315 of file data.cc.
References fill_matrix().
OCTAVE_EXPORT octave_value_list Fuminus | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6367 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 6357 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 6007 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 4695 of file data.cc.
References fill_matrix().
|
static |
Definition at line 7346 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 5381 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().
|
static |
Definition at line 1568 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 1611 of file data.cc.
References Sparse< T, Alloc >::cat(), octave_value_list::length(), and OCTAVE_LOCAL_BUFFER.
|
static |
Definition at line 1642 of file data.cc.
References octave_map::cat(), octave_value_list::length(), and OCTAVE_LOCAL_BUFFER.
|
static |
Definition at line 6331 of file data.cc.
References octave_value_list::length(), print_usage(), and unary_op().
Referenced by Fctranspose(), Fnot(), Ftranspose(), Fuminus(), and Fuplus().