#include "Array.h"
#include "dim-vector.h"
#include "idx-vector.h"
#include "lo-array-gripes.h"
Go to the source code of this file.
OCTAVE_API bool all_colon_equiv | ( | const Array< idx_vector > & | ra_idx, | |
const dim_vector & | frozen_lengths | |||
) |
Definition at line 335 of file Array-util.cc.
References dim_vector::length(), and Array< T >::length().
OCTAVE_API bool all_ok | ( | const Array< idx_vector > & | ra_idx | ) |
Definition at line 297 of file Array-util.cc.
References Array< T >::length().
OCTAVE_API bool all_ones | ( | const Array< octave_idx_type > & | arr | ) |
Definition at line 359 of file Array-util.cc.
References Array< T >::length().
OCTAVE_API bool any_ones | ( | const Array< octave_idx_type > & | arr | ) |
Definition at line 161 of file Array-util.cc.
References Array< T >::length().
OCTAVE_API bool any_orig_empty | ( | const Array< idx_vector > & | ra_idx | ) |
Definition at line 316 of file Array-util.cc.
References Array< T >::length().
OCTAVE_API octave_idx_type compute_index | ( | octave_idx_type | n, | |
const dim_vector & | dims | |||
) |
Definition at line 178 of file Array-util.cc.
References gripe_index_out_of_range(), gripe_invalid_index(), and dim_vector::numel().
Referenced by octave_map::checkelem(), Sparse< bool >::checkelem(), Sparse< bool >::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 189 of file Array-util.cc.
References gripe_index_out_of_range(), gripe_invalid_index(), and dim_vector::numel().
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 202 of file Array-util.cc.
References gripe_index_out_of_range(), gripe_invalid_index(), and dim_vector::numel().
OCTAVE_API octave_idx_type compute_index | ( | const Array< octave_idx_type > & | ra_idx, | |
const dim_vector & | dims | |||
) |
Definition at line 218 of file Array-util.cc.
References dim_vector::compute_index(), d, Array< T >::data(), gripe_index_out_of_range(), gripe_invalid_index(), Array< T >::length(), and dim_vector::redim().
OCTAVE_API Array<idx_vector> conv_to_array | ( | const idx_vector * | tmp, | |
const octave_idx_type | len | |||
) |
Definition at line 245 of file Array-util.cc.
OCTAVE_API Array<octave_idx_type> conv_to_int_array | ( | const Array< idx_vector > & | a | ) |
Definition at line 234 of file Array-util.cc.
References Array< T >::dims(), Array< T >::elem(), and Array< T >::length().
Referenced by octave_base_matrix< MT >::do_index_op().
OCTAVE_API dim_vector freeze | ( | Array< idx_vector > & | ra_idx, | |
const dim_vector & | dimensions, | |||
int | resize_ok | |||
) |
Definition at line 256 of file Array-util.cc.
References dim_vector::length(), Array< T >::length(), and dim_vector::resize().
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 376 of file Array-util.cc.
References Array< T >::elem(), and Array< T >::length().
OCTAVE_API Array<octave_idx_type> get_ra_idx | ( | octave_idx_type | idx, | |
const dim_vector & | dims | |||
) |
Definition at line 390 of file Array-util.cc.
References floor(), increment_index(), dim_vector::length(), dim_vector::numel(), and Array< T >::resize().
OCTAVE_API octave_idx_type get_scalar_idx | ( | Array< octave_idx_type > & | idx, | |
dim_vector & | dims | |||
) |
Definition at line 80 of file Array-util.cc.
References Array< T >::length().
OCTAVE_API void increment_index | ( | Array< octave_idx_type > & | ra_idx, | |
const dim_vector & | dimensions, | |||
int | start_dimension = 0 | |||
) |
Definition at line 59 of file Array-util.cc.
References dim_vector::length(), and Array< T >::length().
Referenced by get_ra_idx(), 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 599 of file Array-util.cc.
References current_liboctave_error_handler, idx_vector::extent(), idx_vector::is_scalar(), dim_vector::length(), idx_vector::length(), dim_vector::numel(), OCTAVE_LOCAL_BUFFER, and idx_vector::orig_dimensions().
Referenced by DEFUN_DLD().
OCTAVE_API bool index_in_bounds | ( | const Array< octave_idx_type > & | ra_idx, | |
const dim_vector & | dimensions | |||
) |
Definition at line 34 of file Array-util.cc.
References dim_vector::length(), and Array< T >::length().
OCTAVE_API bool is_scalar | ( | const dim_vector & | dim | ) |
Definition at line 115 of file Array-util.cc.
References dim_vector::length().
OCTAVE_API bool is_vector | ( | const dim_vector & | dim | ) |
Definition at line 141 of file Array-util.cc.
References dim_vector::length().
OCTAVE_API octave_idx_type num_ones | ( | const Array< octave_idx_type > & | ra_idx | ) |
Definition at line 101 of file Array-util.cc.
References Array< T >::length().
Referenced by dim_vector::all_ones().
int OCTAVE_API permute_vector_compare | ( | const void * | a, | |
const void * | b | |||
) |
Definition at line 647 of file Array-util.cc.
References permute_vector::pidx.
OCTAVE_API idx_vector sub2ind | ( | const dim_vector & | dv, | |
const Array< idx_vector > & | idxa | |||
) |
Definition at line 528 of file Array-util.cc.
References current_liboctave_error_handler, idx_vector::extent(), Array< T >::fortran_vec(), idx_vector::is_range(), idx_vector::length(), Array< T >::length(), idx_vector::make_range(), and dim_vector::redim().
Referenced by DEFUN_DLD().
OCTAVE_API bool vector_equivalent | ( | const dim_vector & | dv | ) |
Definition at line 276 of file Array-util.cc.
References dim_vector::length().
OCTAVE_API dim_vector zero_dims_inquire | ( | const idx_vector & | i, | |
const idx_vector & | j, | |||
const dim_vector & | rhdv | |||
) |
Definition at line 480 of file Array-util.cc.
References dim_vector::chop_all_singletons(), idx_vector::extent(), idx_vector::is_colon(), idx_vector::is_scalar(), and dim_vector::length().
OCTAVE_API dim_vector zero_dims_inquire | ( | const Array< idx_vector > & | ia, | |
const dim_vector & | rhdv | |||
) |
Definition at line 425 of file Array-util.cc.
References dim_vector::alloc(), dim_vector::chop_all_singletons(), dim_vector::length(), Array< T >::length(), dim_vector::resize(), and scalar.
Referenced by Array< T >::assign().