Go to the source code of this file.
Classes | |
struct | permute_vector |
OCTAVE_API bool all_colon_equiv | ( | const Array< idx_vector > & | ra_idx, |
const dim_vector & | frozen_lengths | ||
) |
Definition at line 338 of file Array-util.cc.
References i, dim_vector::ndims(), octave_base_value::numel(), ra_idx, and retval.
OCTAVE_API bool all_ok | ( | const Array< idx_vector > & | ra_idx | ) |
Definition at line 300 of file Array-util.cc.
References i, octave_base_value::numel(), ra_idx, and retval.
OCTAVE_API bool all_ones | ( | const Array< octave_idx_type > & | arr | ) |
Definition at line 362 of file Array-util.cc.
References i, Array< T >::numel(), and retval.
OCTAVE_API bool any_ones | ( | const Array< octave_idx_type > & | arr | ) |
Definition at line 158 of file Array-util.cc.
References i, Array< T >::numel(), and retval.
OCTAVE_API bool any_orig_empty | ( | const Array< idx_vector > & | ra_idx | ) |
Definition at line 319 of file Array-util.cc.
References i, octave_base_value::numel(), ra_idx, and retval.
OCTAVE_API octave_idx_type compute_index | ( | octave_idx_type | n, |
const dim_vector & | dims | ||
) |
Definition at line 175 of file Array-util.cc.
References dims, octave::err_index_out_of_range(), and octave::err_invalid_index().
Referenced by Sparse< bool >::checkelem(), Array< octave_value >::checkelem(), boolNDArray::compute_index(), charNDArray::compute_index(), intNDArray< OCTAVE_INT_T >::compute_index(), ComplexNDArray::compute_index(), FloatComplexNDArray::compute_index(), FloatNDArray::compute_index(), NDArray::compute_index(), Array< octave_value >::compute_index(), dim_vector::compute_index(), Sparse< bool >::elem(), octave_map::elem(), and Sparse< bool >::xelem().
OCTAVE_API octave_idx_type compute_index | ( | octave_idx_type | i, |
octave_idx_type | j, | ||
const dim_vector & | dims | ||
) |
Definition at line 186 of file Array-util.cc.
References dims, octave::err_index_out_of_range(), octave::err_invalid_index(), and i.
OCTAVE_API octave_idx_type compute_index | ( | octave_idx_type | i, |
octave_idx_type | j, | ||
octave_idx_type | k, | ||
const dim_vector & | dims | ||
) |
Definition at line 201 of file Array-util.cc.
References dims, octave::err_index_out_of_range(), octave::err_invalid_index(), i, and k.
OCTAVE_API octave_idx_type compute_index | ( | const Array< octave_idx_type > & | ra_idx, |
const dim_vector & | dims | ||
) |
Definition at line 221 of file Array-util.cc.
References dim_vector::compute_index(), d, dims, dv, octave::err_index_out_of_range(), octave::err_invalid_index(), octave_base_value::numel(), and ra_idx.
OCTAVE_API Array<idx_vector> conv_to_array | ( | const idx_vector * | tmp, |
const octave_idx_type | len | ||
) |
Definition at line 248 of file Array-util.cc.
OCTAVE_API Array<octave_idx_type> conv_to_int_array | ( | const Array< idx_vector > & | a | ) |
Definition at line 237 of file Array-util.cc.
Referenced by octave_base_matrix< boolNDArray >::do_index_op().
OCTAVE_API dim_vector freeze | ( | Array< idx_vector > & | ra_idx, |
const dim_vector & | dimensions, | ||
int | resize_ok | ||
) |
Definition at line 259 of file Array-util.cc.
References i, dim_vector::ndims(), octave_base_value::numel(), ra_idx, octave_value::resize(), and retval.
OCTAVE_API Array<octave_idx_type> get_elt_idx | ( | const Array< idx_vector > & | ra_idx, |
const Array< octave_idx_type > & | result_idx | ||
) |
Definition at line 379 of file Array-util.cc.
References i, octave_base_value::numel(), ra_idx, and retval.
OCTAVE_API Array<octave_idx_type> get_ra_idx | ( | octave_idx_type | idx, |
const dim_vector & | dims | ||
) |
Definition at line 393 of file Array-util.cc.
References dims, octave::math::floor(), i, increment_index(), octave_value::resize(), retval, and var.
OCTAVE_API octave_idx_type get_scalar_idx | ( | Array< octave_idx_type > & | idx, |
dim_vector & | dims | ||
) |
Definition at line 79 of file Array-util.cc.
References dims, Array< T >::numel(), and retval.
OCTAVE_API void increment_index | ( | Array< octave_idx_type > & | ra_idx, |
const dim_vector & | dimensions, | ||
int | start_dimension = 0 |
||
) |
Definition at line 58 of file Array-util.cc.
References i, dim_vector::ndims(), octave_base_value::numel(), and ra_idx.
Referenced by get_ra_idx(), intNDArray< OCTAVE_INT_T >::increment_index(), octave_print_internal(), octave_print_internal_template(), operator<<(), and print_nd_array().
OCTAVE_API Array<idx_vector> ind2sub | ( | const dim_vector & | dv, |
const idx_vector & | idx | ||
) |
Definition at line 618 of file Array-util.cc.
References current_liboctave_error_handler, dv, idx_vector::extent(), i, idx_vector::is_scalar(), k, idx_vector::length(), dim_vector::ndims(), numel(), dim_vector::numel(), OCTAVE_LOCAL_BUFFER, idx_vector::orig_dimensions(), and retval.
Referenced by octave_base_diag< DiagMatrix, Matrix >::subsasgn().
OCTAVE_API bool index_in_bounds | ( | const Array< octave_idx_type > & | ra_idx, |
const dim_vector & | dimensions | ||
) |
Definition at line 33 of file Array-util.cc.
References i, dim_vector::ndims(), octave_base_value::numel(), ra_idx, and retval.
OCTAVE_API bool is_scalar | ( | const dim_vector & | dim | ) |
Definition at line 114 of file Array-util.cc.
References i, dim_vector::ndims(), and retval.
OCTAVE_API bool isvector | ( | const dim_vector & | dim | ) |
Definition at line 138 of file Array-util.cc.
References i, and dim_vector::ndims().
Referenced by dim_vector::is_vector(), Array< octave_value >::is_vector(), idx_vector::is_vector(), and xnorm().
OCTAVE_API octave_idx_type num_ones | ( | const Array< octave_idx_type > & | ra_idx | ) |
Definition at line 100 of file Array-util.cc.
References i, octave_base_value::numel(), ra_idx, and retval.
Referenced by dim_vector::all_ones().
int OCTAVE_API permute_vector_compare | ( | const void * | a, |
const void * | b | ||
) |
Definition at line 663 of file Array-util.cc.
References a, b, and permute_vector::pidx.
OCTAVE_API idx_vector sub2ind | ( | const dim_vector & | dv, |
const Array< idx_vector > & | idxa | ||
) |
Definition at line 533 of file Array-util.cc.
References current_liboctave_error_handler, dv, e, octave::err_index_out_of_range(), idx_vector::extent(), Array< T >::fortran_vec(), i, idx_vector::is_range(), idx_vector::length(), idx_vector::make_range(), Array< T >::numel(), dim_vector::redim(), retval, start, and string.
OCTAVE_API bool vector_equivalent | ( | const dim_vector & | dv | ) |
Definition at line 279 of file Array-util.cc.
References dv, i, and dim_vector::ndims().
OCTAVE_API dim_vector zero_dims_inquire | ( | const Array< idx_vector > & | ia, |
const dim_vector & | rhdv | ||
) |
Definition at line 427 of file Array-util.cc.
References dim_vector::alloc(), dim_vector::chop_all_singletons(), i, dim_vector::ndims(), Array< T >::numel(), dim_vector::resize(), and scalar.
Referenced by Array< octave_value >::assign().
OCTAVE_API dim_vector zero_dims_inquire | ( | const idx_vector & | i, |
const idx_vector & | j, | ||
const dim_vector & | rhdv | ||
) |
Definition at line 484 of file Array-util.cc.
References dim_vector::chop_all_singletons(), idx_vector::extent(), i, idx_vector::is_colon(), idx_vector::is_scalar(), k, and dim_vector::ndims().