GNU Octave
3.8.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(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 | |||
) |
#define DATA_REDUCTION | ( | FCN | ) |
#define INSTANTIATE_EYE | ( | T | ) | template octave_value identity_matrix<T> (int, int) |
#define MAKE_INT_BRANCH | ( | X | ) |
Definition at line 6919 of file data.cc.
Referenced by do_accumarray_minmax_fun(), do_cumminmax_body(), do_minmax_body(), Fbase64_encode(), Fcumsum(), Fmerge(), Fnth_element(), Frem(), and Fsum().
#define MAKE_INT_BRANCH | ( | X | ) |
#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 1429 of file data.cc.
References octave_value_list::length().
Referenced by do_single_type_concat_map(), and single_type_concat().
|
static |
Definition at line 1549 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 5505 of file data.cc.
References octave_value::assign(), do_binary_op(), octave_value_list::length(), and print_usage().
Referenced by Fand(), Fmtimes(), For(), Fplus(), and Ftimes().
|
static |
Definition at line 5491 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 6669 of file data.cc.
References error(), idx_vector::extent(), idx_vector::length(), and void().
Referenced by do_accumarray_minmax_fun().
|
static |
Definition at line 6697 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(), do_accumarray_minmax(), error_state, octave_value::float_array_value(), octave_value::float_complex_array_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 6593 of file data.cc.
References error(), idx_vector::extent(), and idx_vector::length().
Referenced by F__accumarray_sum__().
|
static |
Definition at line 6784 of file data.cc.
References error(), idx_vector::extent(), dim_vector::first_non_singleton(), and idx_vector::length().
Referenced by F__accumdim_sum__().
|
static |
Definition at line 1670 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(), dim_vector::hvcat(), octave_value_list::length(), dim_vector::length(), maybe_warn_string_concat(), octave_value(), print_usage(), 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 1598 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(), do_class_concat(), and tree_matrix::rvalue1().
|
static |
Definition at line 7066 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 301 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 4689 of file data.cc.
References octave_value::is_scalar_type(), and linspace().
|
static |
Definition at line 6865 of file data.cc.
References Array< T >::data(), Array< T >::dims(), and error().
Referenced by Fmerge().
|
static |
Definition at line 2325 of file data.cc.
References error_state, octave_value_list::length(), Array< T >::length(), and print_usage().
Referenced by Fipermute(), and Fpermute().
|
static |
Definition at line 7238 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 1536 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 6777 of file data.cc.
References do_accumarray_minmax_fun().
OCTAVE_EXPORT octave_value_list F__accumarray_min__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6768 of file data.cc.
References do_accumarray_minmax_fun().
OCTAVE_EXPORT octave_value_list F__accumarray_sum__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6618 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 6816 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 6328 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 5753 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 220 of file data.cc.
References atan2(), error(), gripe_wrong_type_arg(), octave_value::is_scalar_type(), octave_value::length(), and print_usage().
OCTAVE_EXPORT octave_value_list Fbase64_decode | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 7474 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 7371 of file data.cc.
References octave_value_list::array_value(), Array< T >::data(), error(), error_state, 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 2157 of file data.cc.
References do_cat(), error(), error_state, octave_value::int_value(), and print_usage().
OCTAVE_EXPORT octave_value_list Fcolumns | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 2661 of file data.cc.
References octave_value::columns(), and print_usage().
OCTAVE_EXPORT octave_value_list Fcomplex | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3045 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(), SparseComplexMatrix, and Array< T >::xelem().
OCTAVE_EXPORT octave_value_list Fcputime | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5930 of file data.cc.
References octave_value_list::length(), RUSAGE_SELF, and warning().
OCTAVE_EXPORT octave_value_list Fctranspose | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5465 of file data.cc.
References octave_value::op_hermitian, and unary_op_defun_body().
OCTAVE_EXPORT octave_value_list Fcumprod | ( | const octave_value_list & | args, |
int | |||
) |
OCTAVE_EXPORT octave_value_list Fcumsum | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1105 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 1271 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 7183 of file data.cc.
References do_diff(), error(), error_state, octave_value_list::length(), and print_usage().
OCTAVE_EXPORT octave_value_list Fe | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 4110 of file data.cc.
References fill_matrix().
OCTAVE_EXPORT octave_value_list Feps | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 4151 of file data.cc.
References octave_value_list::array_value(), Array< T >::dims(), error_state, 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 5643 of file data.cc.
References binary_op_defun_body(), and octave_value::op_eq.
OCTAVE_EXPORT octave_value_list Feye | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 4619 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 4438 of file data.cc.
References fill_matrix().
OCTAVE_EXPORT octave_value_list Ffull | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5155 of file data.cc.
References octave_value_list::length(), and print_usage().
OCTAVE_EXPORT octave_value_list Fge | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5653 of file data.cc.
References binary_op_defun_body(), and octave_value::op_ge.
OCTAVE_EXPORT octave_value_list Fgt | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5663 of file data.cc.
References binary_op_defun_body(), and octave_value::op_gt.
OCTAVE_EXPORT octave_value_list Fhorzcat | ( | const octave_value_list & | args, |
int | |||
) |
OCTAVE_EXPORT octave_value_list Fhypot | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 370 of file data.cc.
References do_hypot(), error_state, octave_value::length(), and print_usage().
OCTAVE_EXPORT octave_value_list FI | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 4386 of file data.cc.
References fill_matrix().
|
static |
Definition at line 3460 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, FloatNDArray, get_dimensions(), octave_value_list::length(), dim_vector::length(), NDArray, 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 3585 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, FloatNDArray, get_dimensions(), octave_value_list::length(), NDArray, dim_vector::resize(), and oct_data_conv::string_to_data_type().
|
static |
Definition at line 3666 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, FloatNDArray, get_dimensions(), octave_value_list::length(), NDArray, dim_vector::resize(), and oct_data_conv::string_to_data_type().
|
static |
Definition at line 3746 of file data.cc.
References check_dimensions(), dim_vector::chop_trailing_singletons(), ComplexNDArray, oct_data_conv::dt_double, oct_data_conv::dt_single, error(), error_state, FloatComplexNDArray, 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 4002 of file data.cc.
References fill_matrix(), lo_ieee_float_inf_value(), and lo_ieee_inf_value().
OCTAVE_EXPORT octave_value_list Fipermute | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 2376 of file data.cc.
References do_permute().
OCTAVE_EXPORT octave_value_list Fiscomplex | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 2995 of file data.cc.
References octave_value::is_complex_type(), and print_usage().
OCTAVE_EXPORT octave_value_list Fisempty | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3357 of file data.cc.
References octave_value::is_empty(), and print_usage().
OCTAVE_EXPORT octave_value_list Fisfloat | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3013 of file data.cc.
References octave_value::is_float_type(), and print_usage().
OCTAVE_EXPORT octave_value_list Fisinteger | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 2978 of file data.cc.
References octave_value::is_integer_type(), and print_usage().
OCTAVE_EXPORT octave_value_list Fislogical | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 2943 of file data.cc.
References octave_value::is_bool_type(), and print_usage().
OCTAVE_EXPORT octave_value_list Fismatrix | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3417 of file data.cc.
References arg(), octave_value::is_matrix_type(), octave_value::is_range(), octave_value::is_scalar_type(), and print_usage().
OCTAVE_EXPORT octave_value_list Fisnumeric | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3381 of file data.cc.
References octave_value::is_numeric_type(), and print_usage().
OCTAVE_EXPORT octave_value_list Fisreal | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3339 of file data.cc.
References octave_value::is_real_type(), and print_usage().
OCTAVE_EXPORT octave_value_list Fissorted | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6411 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 Fldivide | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5733 of file data.cc.
References binary_op_defun_body(), and octave_value::op_el_ldiv.
OCTAVE_EXPORT octave_value_list Fle | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5632 of file data.cc.
References binary_op_defun_body(), and octave_value::op_le.
OCTAVE_EXPORT octave_value_list Flength | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 2391 of file data.cc.
References octave_value::length(), and print_usage().
OCTAVE_EXPORT octave_value_list Flinspace | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 4749 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 438 of file data.cc.
References f, gripe_wrong_type_arg(), map_2_xlog2(), print_usage(), and x.
OCTAVE_EXPORT octave_value_list Flt | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5622 of file data.cc.
References binary_op_defun_body(), and octave_value::op_lt.
OCTAVE_EXPORT octave_value_list Fmerge | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6952 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 5558 of file data.cc.
References binary_op_defun_body(), and octave_value::op_sub.
OCTAVE_EXPORT octave_value_list Fmldivide | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5612 of file data.cc.
References binary_op_defun_body(), and octave_value::op_ldiv.
OCTAVE_EXPORT octave_value_list Fmod | ( | const octave_value_list & | args, |
int | |||
) |
OCTAVE_EXPORT octave_value_list Fmpower | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5601 of file data.cc.
References binary_op_defun_body(), and octave_value::op_pow.
OCTAVE_EXPORT octave_value_list Fmrdivide | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5590 of file data.cc.
References binary_op_defun_body(), and octave_value::op_div.
OCTAVE_EXPORT octave_value_list Fmtimes | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5578 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 4416 of file data.cc.
References fill_matrix(), lo_ieee_float_na_value(), and lo_ieee_na_value().
OCTAVE_EXPORT octave_value_list FNaN | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 4061 of file data.cc.
References fill_matrix(), lo_ieee_float_nan_value(), and lo_ieee_nan_value().
OCTAVE_EXPORT octave_value_list Fndims | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 2417 of file data.cc.
References octave_value::ndims(), and print_usage().
OCTAVE_EXPORT octave_value_list Fne | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5674 of file data.cc.
References binary_op_defun_body(), and octave_value::op_ne.
OCTAVE_EXPORT octave_value_list Fnnz | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 2606 of file data.cc.
References octave_value::nnz(), and print_usage().
OCTAVE_EXPORT octave_value_list Fnorm | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5226 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 5403 of file data.cc.
References octave_value::op_not, and unary_op_defun_body().
OCTAVE_EXPORT octave_value_list Fnth_element | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 6526 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 2457 of file data.cc.
References dims_to_numel(), octave_value::numel(), and print_usage().
OCTAVE_EXPORT octave_value_list Fnzmax | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 2627 of file data.cc.
References octave_value::nzmax(), and print_usage().
OCTAVE_EXPORT octave_value_list Fones | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3906 of file data.cc.
References fill_matrix().
OCTAVE_EXPORT octave_value_list For | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5774 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 2359 of file data.cc.
References do_permute().
OCTAVE_EXPORT octave_value_list Fpi | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 4275 of file data.cc.
References atan(), and fill_matrix().
OCTAVE_EXPORT octave_value_list Fplus | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5547 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 5722 of file data.cc.
References binary_op_defun_body(), and octave_value::op_el_pow.
OCTAVE_EXPORT octave_value_list Fprod | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1379 of file data.cc.
References DATA_REDUCTION.
OCTAVE_EXPORT octave_value_list Frdivide | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5706 of file data.cc.
References binary_op_defun_body(), and octave_value::op_el_div.
OCTAVE_EXPORT octave_value_list Frealmax | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 4314 of file data.cc.
References fill_matrix(), and max().
OCTAVE_EXPORT octave_value_list Frealmin | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 4348 of file data.cc.
References fill_matrix(), and min().
OCTAVE_EXPORT octave_value_list Frem | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 530 of file data.cc.
References btyp_double, btyp_float, error(), gripe_wrong_type_arg(), octave_value::is_scalar_type(), 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 7294 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 4944 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 4869 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 2644 of file data.cc.
References print_usage(), and octave_value::rows().
OCTAVE_EXPORT octave_value_list Fsize | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 2511 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 2574 of file data.cc.
References octave_value::length().
OCTAVE_EXPORT octave_value_list Fsort | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 6051 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 5137 of file data.cc.
References octave_value_list::length(), and print_usage().
OCTAVE_EXPORT octave_value_list Fsum | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 2704 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 2914 of file data.cc.
References DATA_REDUCTION.
OCTAVE_EXPORT octave_value_list Ftic | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 5824 of file data.cc.
References octave_time::double_value(), octave_value_list::length(), and warning().
OCTAVE_EXPORT octave_value_list Ftimes | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5694 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 5857 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 5434 of file data.cc.
References octave_value::op_transpose, and unary_op_defun_body().
OCTAVE_EXPORT octave_value_list Ftrue | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 4454 of file data.cc.
References fill_matrix().
OCTAVE_EXPORT octave_value_list Fuminus | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5423 of file data.cc.
References octave_value::op_uminus, and unary_op_defun_body().
OCTAVE_EXPORT octave_value_list Fuplus | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5413 of file data.cc.
References octave_value::op_uplus, and unary_op_defun_body().
OCTAVE_EXPORT octave_value_list Fvec | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 5074 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 3948 of file data.cc.
References fill_matrix().
|
static |
Definition at line 6372 of file data.cc.
References ASCENDING, DESCENDING, error(), error_state, octave_value::string_value(), and UNSORTED.
Referenced by Fissorted().
octave_value identity_matrix | ( | int | nr, |
int | nc | ||
) |
|
static |
Definition at line 4507 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 404 of file data.cc.
References Array< T >::dims(), Array< T >::numel(), x, Array< T >::xelem(), and xlog2().
Referenced by Flog2().
|
static |
Definition at line 1441 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 1485 of file data.cc.
References Sparse< T >::cat(), error_state, octave_value_list::length(), and OCTAVE_LOCAL_BUFFER.
|
static |
Definition at line 1517 of file data.cc.
References octave_map::cat(), error_state, octave_value_list::length(), and OCTAVE_LOCAL_BUFFER.
|
static |
Definition at line 5385 of file data.cc.
References do_unary_op(), octave_value_list::length(), and print_usage().
Referenced by Fctranspose(), Fnot(), Ftranspose(), Fuminus(), and Fuplus().