Go to the source code of this file.
Classes | |
struct | permute_vector |
bool all_colon_equiv | ( | const Array< octave::idx_vector > & | ra_idx, |
const dim_vector & | frozen_lengths | ||
) |
Definition at line 331 of file Array-util.cc.
References n, dim_vector::ndims(), octave_base_value::numel(), and ra_idx.
bool all_ok | ( | const Array< octave::idx_vector > & | ra_idx | ) |
Definition at line 303 of file Array-util.cc.
References ra_idx.
bool all_ones | ( | const Array< octave_idx_type > & | arr | ) |
Definition at line 355 of file Array-util.cc.
References Array< T, Alloc >::numel().
bool any_ones | ( | const Array< octave_idx_type > & | arr | ) |
Definition at line 160 of file Array-util.cc.
References Array< T, Alloc >::numel().
bool any_orig_empty | ( | const Array< octave::idx_vector > & | ra_idx | ) |
Definition at line 312 of file Array-util.cc.
References n, octave_base_value::numel(), and ra_idx.
octave_idx_type compute_index | ( | const Array< octave_idx_type > & | ra_idx, |
const dim_vector & | dims | ||
) |
Definition at line 223 of file Array-util.cc.
References d, err_invalid_index(), octave_base_value::numel(), ra_idx, and dim_vector::redim().
octave_idx_type compute_index | ( | octave_idx_type | i, |
octave_idx_type | j, | ||
const dim_vector & | dims | ||
) |
Definition at line 188 of file Array-util.cc.
References err_invalid_index().
octave_idx_type compute_index | ( | octave_idx_type | i, |
octave_idx_type | j, | ||
octave_idx_type | k, | ||
const dim_vector & | dims | ||
) |
Definition at line 203 of file Array-util.cc.
References err_invalid_index().
octave_idx_type compute_index | ( | octave_idx_type | n, |
const dim_vector & | dims | ||
) |
Definition at line 177 of file Array-util.cc.
References err_invalid_index(), n, and dim_vector::numel().
Referenced by Sparse< T, Alloc >::checkelem(), boolNDArray::compute_index(), charNDArray::compute_index(), ComplexNDArray::compute_index(), NDArray::compute_index(), FloatComplexNDArray::compute_index(), FloatNDArray::compute_index(), dim_vector::compute_index(), Array< T, Alloc >::compute_index(), Sparse< T, Alloc >::elem(), octave_map::elem(), and Sparse< T, Alloc >::xelem().
Array<octave::idx_vector> conv_to_array | ( | const octave::idx_vector * | tmp, |
const octave_idx_type | len | ||
) |
Definition at line 250 of file Array-util.cc.
References len.
Array<octave_idx_type> conv_to_int_array | ( | const Array< octave::idx_vector > & | a | ) |
Definition at line 239 of file Array-util.cc.
References Array< T, Alloc >::dims(), Array< T, Alloc >::elem(), and Array< T, Alloc >::numel().
dim_vector freeze | ( | Array< octave::idx_vector > & | ra_idx, |
const dim_vector & | dimensions, | ||
int | resize_ok | ||
) |
Definition at line 261 of file Array-util.cc.
References n, dim_vector::ndims(), octave_base_value::numel(), ra_idx, and dim_vector::resize().
Array<octave_idx_type> get_elt_idx | ( | const Array< octave::idx_vector > & | ra_idx, |
const Array< octave_idx_type > & | result_idx | ||
) |
Definition at line 372 of file Array-util.cc.
References n, octave_base_value::numel(), and ra_idx.
Array<octave_idx_type> get_ra_idx | ( | octave_idx_type | idx, |
const dim_vector & | dims | ||
) |
Definition at line 386 of file Array-util.cc.
References increment_index(), dim_vector::ndims(), dim_vector::numel(), and Array< T, Alloc >::resize().
octave_idx_type get_scalar_idx | ( | Array< octave_idx_type > & | idx, |
dim_vector & | dims | ||
) |
Definition at line 81 of file Array-util.cc.
References n, and Array< T, Alloc >::numel().
void increment_index | ( | Array< octave_idx_type > & | ra_idx, |
const dim_vector & | dimensions, | ||
int | start_dimension = 0 |
||
) |
Definition at line 60 of file Array-util.cc.
References n, dim_vector::ndims(), octave_base_value::numel(), and ra_idx.
Referenced by get_ra_idx(), and operator<<().
Array<octave::idx_vector> ind2sub | ( | const dim_vector & | dv, |
const octave::idx_vector & | idx | ||
) |
Definition at line 598 of file Array-util.cc.
References len, n, dim_vector::ndims(), numel(), dim_vector::numel(), and OCTAVE_LOCAL_BUFFER.
bool index_in_bounds | ( | const Array< octave_idx_type > & | ra_idx, |
const dim_vector & | dimensions | ||
) |
Definition at line 35 of file Array-util.cc.
References n, dim_vector::ndims(), octave_base_value::numel(), and ra_idx.
bool is_scalar | ( | const dim_vector & | dim | ) |
Definition at line 116 of file Array-util.cc.
References n, and dim_vector::ndims().
Referenced by cdef_object_array::subsasgn(), and cdef_object_array::subsref().
bool isvector | ( | const dim_vector & | dim | ) |
Definition at line 140 of file Array-util.cc.
References m, n, and dim_vector::ndims().
Referenced by octave_class::size(), and xnorm().
octave_idx_type num_ones | ( | const Array< octave_idx_type > & | ra_idx | ) |
Definition at line 102 of file Array-util.cc.
References octave_base_value::numel(), and ra_idx.
Referenced by dim_vector::all_ones().
int permute_vector_compare | ( | const void * | a, |
const void * | b | ||
) |
Definition at line 644 of file Array-util.cc.
References permute_vector::pidx.
octave::idx_vector sub2ind | ( | const dim_vector & | dv, |
const Array< octave::idx_vector > & | idxa | ||
) |
Definition at line 503 of file Array-util.cc.
References len, n, Array< T, Alloc >::numel(), and dim_vector::redim().
bool vector_equivalent | ( | const dim_vector & | dv | ) |
Definition at line 281 of file Array-util.cc.
References n, and dim_vector::ndims().
dim_vector zero_dims_inquire | ( | const Array< octave::idx_vector > & | ia, |
const dim_vector & | rhdv | ||
) |
Definition at line 408 of file Array-util.cc.
References dim_vector::alloc(), dim_vector::ndims(), and Array< T, Alloc >::numel().
Referenced by Array< T, Alloc >::assign().
dim_vector zero_dims_inquire | ( | const octave::idx_vector & | i, |
const octave::idx_vector & | j, | ||
const dim_vector & | rhdv | ||
) |
Definition at line 465 of file Array-util.cc.
References dim_vector::chop_all_singletons(), and dim_vector::ndims().