26 #if ! defined (octave_Array_util_h)
27 #define octave_Array_util_h 1
29 #include "octave-config.h"
39 int start_dimension = 0);
80 OCTAVE_DEPRECATED (9,
"all_ok (Array<octave::idx_vector>&) is obsolete and always returns true")
octave_idx_type compute_index(octave_idx_type n, const dim_vector &dims)
Array< octave::idx_vector > conv_to_array(const octave::idx_vector *tmp, const octave_idx_type len)
bool is_scalar(const dim_vector &dim)
int permute_vector_compare(const void *a, const void *b)
dim_vector zero_dims_inquire(const Array< octave::idx_vector > &ia, const dim_vector &rhdv)
Array< octave_idx_type > conv_to_int_array(const Array< octave::idx_vector > &a)
octave::idx_vector sub2ind(const dim_vector &dv, const Array< octave::idx_vector > &idxa)
bool all_ones(const Array< octave_idx_type > &arr)
octave_idx_type num_ones(const Array< octave_idx_type > &ra_idx)
bool all_colon_equiv(const Array< octave::idx_vector > &ra_idx, const dim_vector &frozen_lengths)
Array< octave_idx_type > get_ra_idx(octave_idx_type idx, const dim_vector &dims)
Array< octave_idx_type > get_elt_idx(const Array< octave::idx_vector > &ra_idx, const Array< octave_idx_type > &result_idx)
void increment_index(Array< octave_idx_type > &ra_idx, const dim_vector &dimensions, int start_dimension=0)
bool vector_equivalent(const dim_vector &dv)
bool any_ones(const Array< octave_idx_type > &arr)
dim_vector freeze(Array< octave::idx_vector > &ra_idx, const dim_vector &dimensions, int resize_ok)
bool any_orig_empty(const Array< octave::idx_vector > &ra_idx)
Array< octave::idx_vector > ind2sub(const dim_vector &dv, const octave::idx_vector &idx)
bool isvector(const dim_vector &dim)
bool index_in_bounds(const Array< octave_idx_type > &ra_idx, const dim_vector &dimensions)
bool all_ok(const Array< octave::idx_vector > &ra_idx)
octave_idx_type get_scalar_idx(Array< octave_idx_type > &idx, dim_vector &dims)
Vector representing the dimensions (size) of an Array.
octave::idx_vector idx_vector
const octave_base_value const Array< octave_idx_type > & ra_idx