GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include <sys/types.h>
#include <sys/times.h>
#include <cfloat>
#include <ctime>
#include <string>
#include "lo-ieee.h"
#include "lo-math.h"
#include "oct-base64.h"
#include "oct-time.h"
#include "str-vec.h"
#include "quit.h"
#include "mx-base.h"
#include "oct-binmap.h"
#include "Cell.h"
#include "defun.h"
#include "error.h"
#include "gripes.h"
#include "oct-map.h"
#include "oct-obj.h"
#include "ov.h"
#include "ov-class.h"
#include "ov-float.h"
#include "ov-complex.h"
#include "ov-flt-complex.h"
#include "ov-cx-mat.h"
#include "ov-flt-cx-mat.h"
#include "ov-cx-sparse.h"
#include "parse.h"
#include "pt-mat.h"
#include "utils.h"
#include "variables.h"
#include "pager.h"
#include "xnorm.h"
Go to the source code of this file.
Macros | |
#define | ANY_ALL(FCN) |
#define | BTYP_BRANCH(X, EX) |
#define | DATA_REDUCTION(FCN) |
#define | INSTANTIATE_EYE(T) template octave_value identity_matrix<T> (int, int) |
#define | MAKE_INT_BRANCH(X) |
#define | MAKE_INT_BRANCH(X) |
#define | MAKE_INT_BRANCH(X) |
#define | MAKE_INT_BRANCH(X) |
#define | MAKE_INT_BRANCH(X) |
#define | MAKE_INT_BRANCH(X) |
#define | MAKE_INT_BRANCH(X) |
#define | MAKE_INT_BRANCH(INTX) |
#define | MAKE_INT_BRANCH(X) |
#define | NATIVE_REDUCTION(FCN, BOOL_FCN) |
#define | NATIVE_REDUCTION_1(FCN, TYPE, DIM) |
Variables | |
static double | tic_toc_timestamp = -1.0 |
#define ANY_ALL | ( | FCN | ) |
#define BTYP_BRANCH | ( | X, | |
EX | |||
) |
Referenced by Frepelems().
#define DATA_REDUCTION | ( | FCN | ) |
Definition at line 1066 of file data.cc.
Referenced by Fcumprod(), and Fsumsq().
#define INSTANTIATE_EYE | ( | T | ) | template octave_value identity_matrix<T> (int, int) |
#define MAKE_INT_BRANCH | ( | X | ) |
Definition at line 7551 of file data.cc.
Referenced by do_accumarray_minmax_fun(), Fbase64_encode(), Fcumsum(), Fmerge(), Fmod(), Fnth_element(), Fprod(), Frem(), and Fsum().
#define MAKE_INT_BRANCH | ( | X | ) |
#define MAKE_INT_BRANCH | ( | X | ) |
#define MAKE_INT_BRANCH | ( | X | ) |
#define MAKE_INT_BRANCH | ( | X | ) |
#define MAKE_INT_BRANCH | ( | X | ) |
#define MAKE_INT_BRANCH | ( | X | ) |
#define MAKE_INT_BRANCH | ( | INTX | ) |
#define MAKE_INT_BRANCH | ( | X | ) |
#define NATIVE_REDUCTION_1 | ( | FCN, | |
TYPE, | |||
DIM | |||
) |
|
static |
Definition at line 1673 of file data.cc.
References octave_value_list::length().
Referenced by do_single_type_concat_map(), and single_type_concat().
|
static |
Definition at line 1793 of file data.cc.
References octave_value::class_name(), octave_value::do_multi_index_op(), error(), error_state, symbol_table::find_method(), octave_value::is_defined(), and octave_value_list::length().
Referenced by do_class_concat().
|
static |
Definition at line 6074 of file data.cc.
References octave_value::assign(), do_binary_op(), octave_value_list::length(), and print_usage().
Referenced by Fand(), Fmtimes(), For(), Fplus(), and Ftimes().
|
static |
Definition at line 6060 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 7296 of file data.cc.
References error(), idx_vector::extent(), and idx_vector::length().
Referenced by do_accumarray_minmax_fun().
|
static |
Definition at line 7324 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(), error_state, octave_value::float_array_value(), octave_value::float_complex_array_value(), octave_value::float_complex_value(), octave_value::float_value(), gripe_wrong_type_arg(), octave_value_list::length(), MAKE_INT_BRANCH, and print_usage().
Referenced by F__accumarray_max__(), and F__accumarray_min__().
|
static |
Definition at line 7220 of file data.cc.
References error(), idx_vector::extent(), and idx_vector::length().
Referenced by F__accumarray_sum__().
|
static |
Definition at line 7412 of file data.cc.
References error(), idx_vector::extent(), dim_vector::first_non_singleton(), dim_vector::length(), idx_vector::length(), and dim_vector::resize().
Referenced by F__accumdim_sum__().
|
static |
Definition at line 1914 of file data.cc.
References dim_vector::concat(), do_cat_op(), do_class_concat(), do_single_type_concat_map(), error(), error_state, get_concat_class(), gripe_implicit_conversion(), dim_vector::hvcat(), octave_value_list::length(), dim_vector::length(), maybe_warn_string_concat(), octave_value(), print_usage(), ra_idx, and octave_value::resize().
Referenced by Fcat(), Fhorzcat(), and Fvertcat().
octave_value do_class_concat | ( | const octave_value_list & | ovl, |
std::string | cattype, | ||
int | dim | ||
) |
Definition at line 1842 of file data.cc.
References attempt_type_conversion(), octave_value::class_name(), octave_value::do_multi_index_op(), do_single_type_concat_map(), error(), error_state, symbol_table::find_method(), get_dispatch_type(), octave_value::is_defined(), octave_value::is_empty(), octave_value::is_object(), octave_value_list::length(), octave_value(), ovl(), and octave_value_list::resize().
Referenced by do_cat().
|
static |
Definition at line 7701 of file data.cc.
References octave_value::array_value(), octave_value::complex_array_value(), intNDArray< T >::diff(), ComplexNDArray::diff(), FloatComplexNDArray::diff(), FloatNDArray::diff(), NDArray::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_complex_type(), octave_value::is_int16_type(), octave_value::is_int32_type(), octave_value::is_int64_type(), octave_value::is_int8_type(), octave_value::is_integer_type(), octave_value::is_single_type(), octave_value::is_sparse_type(), octave_value::is_uint16_type(), octave_value::is_uint32_type(), octave_value::is_uint64_type(), octave_value::is_uint8_type(), dim_vector::length(), 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 333 of file data.cc.
References octave_value::abs(), octave_value::array_value(), octave_value::float_array_value(), octave_value::float_value(), gripe_wrong_type_arg(), octave_value::is_complex_type(), octave_value::is_numeric_type(), octave_value::is_scalar_type(), octave_value::is_single_type(), octave_value::is_sparse_type(), octave_value::scalar_value(), octave_value::sparse_matrix_value(), and x.
Referenced by Fhypot().
|
static |
Definition at line 5247 of file data.cc.
References octave_value::is_scalar_type(), and linspace().
|
static |
Definition at line 7494 of file data.cc.
References Array< T >::data(), Array< T >::dims(), and error().
Referenced by Fmerge().
|
static |
Definition at line 2576 of file data.cc.
References error_state, octave_value_list::length(), Array< T >::length(), and print_usage().
Referenced by Fipermute(), and Fpermute().
|
static |
Definition at line 7873 of file data.cc.
References Array< T >::checkelem(), Array< T >::clear(), Array< T >::columns(), error(), Array< T >::fortran_vec(), Array< T >::ndims(), and Array< T >::rows().
|
static |
|
static |
Definition at line 1780 of file data.cc.
References all_scalar_1x1().
Referenced by do_cat(), and do_class_concat().
|
static |
OCTAVE_EXPORT octave_value_list F__accumarray_max__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 7405 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 7396 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 7245 of file data.cc.
References octave_value::array_value(), Range::base(), octave_value::complex_array_value(), do_accumarray_sum(), error_state, octave_value::float_array_value(), octave_value::float_complex_array_value(), gripe_wrong_type_arg(), Range::inc(), octave_value::is_bool_type(), octave_value::is_complex_type(), octave_value::is_numeric_type(), octave_value::is_range(), octave_value::is_single_type(), octave_value_list::length(), print_usage(), and octave_value::range_value().
OCTAVE_EXPORT octave_value_list F__accumdim_sum__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 7445 of file data.cc.
References octave_value::array_value(), octave_value::complex_array_value(), do_accumdim_sum(), error_state, octave_value::float_array_value(), octave_value::float_complex_array_value(), gripe_wrong_type_arg(), octave_value::is_bool_type(), octave_value::is_complex_type(), octave_value::is_numeric_type(), octave_value::is_single_type(), octave_value_list::length(), and print_usage().
OCTAVE_EXPORT octave_value_list F__sort_rows_idx__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6950 of file data.cc.
References arg(), ASCENDING, DESCENDING, error(), octave_value::is_sparse_type(), octave_value_list::length(), 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 | |||
) |
OCTAVE_EXPORT octave_value_list Fand | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6335 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 | |||
) |
OCTAVE_EXPORT octave_value_list Fatan2 | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 221 of file data.cc.
References atan2(), error(), gripe_wrong_type_arg(), octave_value::length(), and print_usage().
OCTAVE_EXPORT octave_value_list Fbase64_decode | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 8111 of file data.cc.
References dim_vector::alloc(), error_state, octave_value_list::length(), Array< T >::length(), octave_base64_decode(), print_usage(), Array< T >::reshape(), and size().
OCTAVE_EXPORT octave_value_list Fbase64_encode | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 8006 of file data.cc.
References octave_value_list::array_value(), Array< T >::data(), error(), error_state, free(), octave_value_list::length(), MAKE_INT_BRANCH, Array< T >::numel(), octave_base64_encode(), octave_value(), panic_impossible, and print_usage().
OCTAVE_EXPORT octave_value_list Fcat | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 2408 of file data.cc.
References do_cat(), error(), error_state, octave_value::int_value(), and print_usage().
OCTAVE_EXPORT octave_value_list Fcolon | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6372 of file data.cc.
References do_colon_op(), octave_value_list::length(), and print_usage().
OCTAVE_EXPORT octave_value_list Fcolumns | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 2939 of file data.cc.
References octave_value::columns(), and print_usage().
OCTAVE_EXPORT octave_value_list Fcomplex | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3334 of file data.cc.
References arg(), octave_value::array_value(), Sparse< T >::cidx(), Sparse< T >::cols(), octave_value::complex_array_value(), octave_value::complex_value(), Sparse< T >::data(), Sparse< T >::dims(), Array< T >::dims(), octave_value::double_value(), error(), error_state, octave_value::float_array_value(), octave_value::float_complex_array_value(), octave_value::float_complex_value(), octave_value::float_value(), octave_value::is_complex_type(), octave_value::is_single_type(), octave_value::is_sparse_type(), octave_value::length(), Sparse< T >::nnz(), Array< T >::numel(), octave_value::numel(), octave_value(), print_usage(), Sparse< T >::ridx(), Sparse< T >::rows(), octave_value::sparse_complex_matrix_value(), octave_value::sparse_matrix_value(), and Array< T >::xelem().
OCTAVE_EXPORT octave_value_list Fcputime | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6551 of file data.cc.
References octave_value_list::length(), RUSAGE_SELF, and warning().
OCTAVE_EXPORT octave_value_list Fctranspose | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6034 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 1154 of file data.cc.
References DATA_REDUCTION.
OCTAVE_EXPORT octave_value_list Fcumsum | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1193 of file data.cc.
References arg(), octave_value::array_value(), octave_value::bool_array_value(), btyp_bool, btyp_complex, btyp_double, btyp_float, btyp_float_complex, octave_value::builtin_type(), octave_value::complex_array_value(), boolNDArray::cumsum(), ComplexNDArray::cumsum(), FloatComplexNDArray::cumsum(), FloatNDArray::cumsum(), NDArray::cumsum(), SparseMatrix::cumsum(), SparseComplexMatrix::cumsum(), error(), error_state, octave_value::float_array_value(), octave_value::float_complex_array_value(), gripe_wrong_type_arg(), octave_value::is_sparse_type(), octave_value::length(), 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 1357 of file data.cc.
References octave_value::columns(), octave_value::diag(), error(), error_state, octave_value::length(), octave_value::ndims(), print_usage(), and octave_value::rows().
OCTAVE_EXPORT octave_value_list Fdiff | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 7818 of file data.cc.
References do_diff(), error(), error_state, octave_value_list::length(), and print_usage().
OCTAVE_EXPORT octave_value_list Fe | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 4635 of file data.cc.
References fill_matrix().
OCTAVE_EXPORT octave_value_list Feps | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 4679 of file data.cc.
References octave_value_list::array_value(), Array< T >::dims(), error_state, f, fill_matrix(), octave_value_list::length(), lo_ieee_nan_value(), min(), Array< T >::numel(), pow(), powf(), x, xisinf(), and xisnan().
OCTAVE_EXPORT octave_value_list Feq | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6218 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 5177 of file data.cc.
References oct_data_conv::dt_double, error_state, get_dimensions(), identity_matrix(), octave_value_list::length(), 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 4991 of file data.cc.
References fill_matrix().
OCTAVE_EXPORT octave_value_list Ffull | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5720 of file data.cc.
References octave_value_list::length(), and print_usage().
OCTAVE_EXPORT octave_value_list Fge | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6228 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 6238 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 403 of file data.cc.
References do_hypot(), error_state, octave_value::length(), and print_usage().
OCTAVE_EXPORT octave_value_list FI | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 4933 of file data.cc.
References fill_matrix().
|
static |
Definition at line 3965 of file data.cc.
References 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(), error_state, get_dimensions(), octave_value_list::length(), dim_vector::length(), dim_vector::resize(), and oct_data_conv::string_to_data_type().
Referenced by Fe(), Feps(), Ffalse(), FI(), FInf(), FNA(), FNaN(), Fones(), Fpi(), Frealmax(), Frealmin(), Ftrue(), and Fzeros().
|
static |
Definition at line 4090 of file data.cc.
References check_dimensions(), dim_vector::chop_trailing_singletons(), oct_data_conv::dt_double, oct_data_conv::dt_single, error(), error_state, get_dimensions(), octave_value_list::length(), dim_vector::resize(), and oct_data_conv::string_to_data_type().
|
static |
Definition at line 4171 of file data.cc.
References check_dimensions(), dim_vector::chop_trailing_singletons(), oct_data_conv::dt_double, oct_data_conv::dt_single, error(), error_state, get_dimensions(), octave_value_list::length(), dim_vector::resize(), and oct_data_conv::string_to_data_type().
|
static |
Definition at line 4251 of file data.cc.
References check_dimensions(), dim_vector::chop_trailing_singletons(), oct_data_conv::dt_double, oct_data_conv::dt_single, error(), error_state, get_dimensions(), octave_value_list::length(), dim_vector::resize(), and oct_data_conv::string_to_data_type().
OCTAVE_EXPORT octave_value_list FInf | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 4515 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 2651 of file data.cc.
References do_permute().
OCTAVE_EXPORT octave_value_list Fiscolumn | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3831 of file data.cc.
References dim_vector::length(), and print_usage().
OCTAVE_EXPORT octave_value_list Fiscomplex | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3280 of file data.cc.
References octave_value::is_complex_type(), and print_usage().
OCTAVE_EXPORT octave_value_list Fisempty | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3644 of file data.cc.
References octave_value::is_empty(), and print_usage().
OCTAVE_EXPORT octave_value_list Fisfloat | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3299 of file data.cc.
References octave_value::is_float_type(), and print_usage().
OCTAVE_EXPORT octave_value_list Fisinteger | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3263 of file data.cc.
References octave_value::is_integer_type(), and print_usage().
OCTAVE_EXPORT octave_value_list Fislogical | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3227 of file data.cc.
References octave_value::is_bool_type(), and print_usage().
OCTAVE_EXPORT octave_value_list Fismatrix | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3880 of file data.cc.
References dim_vector::length(), and print_usage().
OCTAVE_EXPORT octave_value_list Fisnumeric | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3669 of file data.cc.
References octave_value::is_numeric_type(), and print_usage().
OCTAVE_EXPORT octave_value_list Fisreal | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3626 of file data.cc.
References octave_value::is_real_type(), and print_usage().
OCTAVE_EXPORT octave_value_list Fisrow | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3781 of file data.cc.
References dim_vector::length(), and print_usage().
OCTAVE_EXPORT octave_value_list Fisscalar | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3702 of file data.cc.
References octave_value::numel(), and print_usage().
OCTAVE_EXPORT octave_value_list Fissorted | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 7037 of file data.cc.
References arg(), ASCENDING, octave_value::dims(), error(), error_state, get_sort_mode_option(), octave_value::is_sorted_rows(), octave_value::is_sparse_type(), dim_vector::is_vector(), octave_value_list::length(), octave_value::ndims(), print_usage(), and UNSORTED.
OCTAVE_EXPORT octave_value_list Fissquare | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3928 of file data.cc.
References dim_vector::length(), and print_usage().
OCTAVE_EXPORT octave_value_list Fisvector | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3741 of file data.cc.
References dim_vector::length(), and print_usage().
OCTAVE_EXPORT octave_value_list Fldivide | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6314 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 6206 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 2666 of file data.cc.
References octave_value::length(), and print_usage().
OCTAVE_EXPORT octave_value_list Flinspace | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5308 of file data.cc.
References error(), error_state, octave_value::idx_type_value(), octave_value::is_complex_type(), octave_value::is_empty(), octave_value::is_numeric_type(), octave_value::is_single_type(), octave_value_list::length(), and print_usage().
OCTAVE_EXPORT octave_value_list Flog2 | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 500 of file data.cc.
References f, gripe_wrong_type_arg(), map_2_xlog2(), print_usage(), and x.
OCTAVE_EXPORT octave_value_list Flt | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6196 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 7586 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_cell(), octave_value::is_complex_type(), 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_list::length(), MAKE_INT_BRANCH, octave_value(), and print_usage().
OCTAVE_EXPORT octave_value_list Fminus | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6128 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 6186 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 754 of file data.cc.
References btyp_double, btyp_float, error(), gripe_wrong_type_arg(), octave_value::length(), MAKE_INT_BRANCH, panic_impossible, print_usage(), and xmod().
OCTAVE_EXPORT octave_value_list Fmpower | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6174 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 6162 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 6149 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 4967 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 4580 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 2693 of file data.cc.
References octave_value::ndims(), and print_usage().
OCTAVE_EXPORT octave_value_list Fne | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6250 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 2884 of file data.cc.
References octave_value::nnz(), and print_usage().
OCTAVE_EXPORT octave_value_list Fnorm | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5792 of file data.cc.
References error(), error_state, gripe_wrong_type_arg(), octave_value::is_empty(), octave_value::is_scalar_type(), octave_value::is_string(), octave_value_list::length(), octave_value::ndims(), octave_Inf, octave_value(), print_usage(), octave_value::string_value(), xcolnorms(), xfrobnorm(), xnorm(), and xrownorms().
OCTAVE_EXPORT octave_value_list Fnot | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5970 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 7153 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(), error(), error_state, dim_vector::first_non_singleton(), octave_value::float_array_value(), octave_value::float_complex_array_value(), gripe_wrong_type_arg(), octave_value::is_cellstr(), octave_value_list::length(), MAKE_INT_BRANCH, Array< T >::nth_element(), and print_usage().
OCTAVE_EXPORT octave_value_list Fnumel | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 2734 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 2905 of file data.cc.
References octave_value::nzmax(), and print_usage().
OCTAVE_EXPORT octave_value_list Fones | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 4413 of file data.cc.
References fill_matrix().
OCTAVE_EXPORT octave_value_list For | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6357 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 2632 of file data.cc.
References do_permute().
OCTAVE_EXPORT octave_value_list Fpi | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 4808 of file data.cc.
References atan(), and fill_matrix().
OCTAVE_EXPORT octave_value_list Fplus | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6117 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 6302 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 1492 of file data.cc.
References boolNDArray::all(), SparseBoolMatrix::all(), arg(), 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(), error(), error_state, octave_value::float_array_value(), octave_value::float_complex_array_value(), gripe_wrong_type_arg(), octave_value::is_sparse_type(), octave_value::length(), MAKE_INT_BRANCH, print_usage(), ComplexNDArray::prod(), FloatComplexNDArray::prod(), FloatNDArray::prod(), NDArray::prod(), SparseMatrix::prod(), SparseComplexMatrix::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 6284 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 4852 of file data.cc.
References fill_matrix(), and max().
OCTAVE_EXPORT octave_value_list Frealmin | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 4891 of file data.cc.
References fill_matrix(), and min().
OCTAVE_EXPORT octave_value_list Frem | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 595 of file data.cc.
References btyp_double, btyp_float, error(), gripe_wrong_type_arg(), octave_value::length(), MAKE_INT_BRANCH, panic_impossible, print_usage(), and xrem().
OCTAVE_EXPORT octave_value_list Frepelems | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 7929 of file data.cc.
References BTYP_BRANCH, octave_value::builtin_type(), Array< T >::dims(), error(), error_state, gripe_wrong_type_arg(), octave_value_list::length(), Array< T >::ndims(), Array< T >::numel(), print_usage(), Array< T >::rows(), and x.
OCTAVE_EXPORT octave_value_list Freshape | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5505 of file data.cc.
References dim_vector::alloc(), error(), error_state, octave_value_list::length(), Array< T >::length(), dim_vector::numel(), and print_usage().
OCTAVE_EXPORT octave_value_list Fresize | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5428 of file data.cc.
References error_state, octave_value_list::length(), Array< T >::length(), print_usage(), dim_vector::resize(), and octave_value::resize().
OCTAVE_EXPORT octave_value_list Frows | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 2922 of file data.cc.
References print_usage(), and octave_value::rows().
OCTAVE_EXPORT octave_value_list Fsize | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 2788 of file data.cc.
References error(), error_state, octave_value_list::length(), dim_vector::length(), print_usage(), dim_vector::redim(), and octave_value_list::resize().
OCTAVE_EXPORT octave_value_list Fsize_equal | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 2852 of file data.cc.
References octave_value::length().
OCTAVE_EXPORT octave_value_list Fsort | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 6673 of file data.cc.
References arg(), ASCENDING, DESCENDING, octave_value::dims(), error(), dim_vector::first_non_singleton(), octave_value_list::length(), print_usage(), octave_value_list::resize(), and octave_value::sort().
OCTAVE_EXPORT octave_value_list Fsqueeze | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5702 of file data.cc.
References octave_value_list::length(), and print_usage().
OCTAVE_EXPORT octave_value_list Fsum | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 2986 of file data.cc.
References boolNDArray::any(), SparseBoolMatrix::any(), arg(), 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(), error(), error_state, octave_value::float_array_value(), octave_value::float_complex_array_value(), gripe_wrong_type_arg(), octave_value::is_sparse_type(), octave_value::length(), MAKE_INT_BRANCH, print_usage(), octave_value::sparse_bool_matrix_value(), octave_value::sparse_complex_matrix_value(), octave_value::sparse_matrix_value(), boolNDArray::sum(), ComplexNDArray::sum(), FloatComplexNDArray::sum(), FloatNDArray::sum(), NDArray::sum(), SparseBoolMatrix::sum(), SparseMatrix::sum(), SparseComplexMatrix::sum(), warning(), ComplexNDArray::xsum(), and NDArray::xsum().
OCTAVE_EXPORT octave_value_list Fsumsq | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3198 of file data.cc.
References DATA_REDUCTION.
OCTAVE_EXPORT octave_value_list Ftic | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 6441 of file data.cc.
References octave_time::double_value(), octave_value_list::length(), and warning().
OCTAVE_EXPORT octave_value_list Ftimes | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6271 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 6474 of file data.cc.
References octave_time::double_value(), error(), error_state, octave_value_list::length(), octave_stdout, print_usage(), and tic_toc_timestamp.
OCTAVE_EXPORT octave_value_list Ftranspose | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6002 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 5009 of file data.cc.
References fill_matrix().
OCTAVE_EXPORT octave_value_list Fuminus | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5990 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 5980 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 5638 of file data.cc.
References dim_vector::alloc(), arg(), error(), error_state, octave_value_list::length(), 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 4457 of file data.cc.
References fill_matrix().
|
static |
Definition at line 6994 of file data.cc.
References ASCENDING, DESCENDING, error(), octave_value::is_string(), octave_value::string_value(), and UNSORTED.
Referenced by Fissorted().
octave_value identity_matrix | ( | int | nr, |
int | nc | ||
) |
|
static |
Definition at line 5062 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(), error_state, f, 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 466 of file data.cc.
References Array< T >::dims(), Array< T >::numel(), x, Array< T >::xelem(), and xlog2().
Referenced by Flog2().
|
static |
Definition at line 1685 of file data.cc.
References all_scalar_1x1(), Array< T >::cat(), Array< T >::clear(), error_state, octave_value_list::length(), OCTAVE_LOCAL_BUFFER, and dim_vector::resize().
|
static |
Definition at line 1729 of file data.cc.
References Sparse< T >::cat(), error_state, octave_value_list::length(), and OCTAVE_LOCAL_BUFFER.
|
static |
Definition at line 1761 of file data.cc.
References octave_map::cat(), error_state, octave_value_list::length(), and OCTAVE_LOCAL_BUFFER.
|
static |
Definition at line 5951 of file data.cc.
References do_unary_op(), octave_value_list::length(), and print_usage().
Referenced by Fctranspose(), Fnot(), Ftranspose(), Fuminus(), and Fuplus().