Mercurial > hg > octave-lyh
comparison liboctave/Array-util.h @ 4747:3f28979bbe2c
[project @ 2004-02-06 23:56:46 by jwe]
author | jwe |
---|---|
date | Fri, 06 Feb 2004 23:56:46 +0000 |
parents | 334a27c8f453 |
children | 23b37da9fd5b |
comparison
equal
deleted
inserted
replaced
4746:c43a0c0b6d44 | 4747:3f28979bbe2c |
---|---|
54 extern dim_vector freeze (Array<idx_vector>& ra_idx, | 54 extern dim_vector freeze (Array<idx_vector>& ra_idx, |
55 const dim_vector& dimensions, int resize_ok); | 55 const dim_vector& dimensions, int resize_ok); |
56 | 56 |
57 extern bool vector_equivalent (const Array<int>& ra_idx); | 57 extern bool vector_equivalent (const Array<int>& ra_idx); |
58 | 58 |
59 extern bool equal_arrays (const dim_vector& a, const dim_vector& b); | |
60 | |
61 extern bool all_ok (const Array<idx_vector>& ra_idx); | 59 extern bool all_ok (const Array<idx_vector>& ra_idx); |
62 | 60 |
63 extern bool any_orig_empty (const Array<idx_vector>& ra_idx); | 61 extern bool any_orig_empty (const Array<idx_vector>& ra_idx); |
64 | |
65 extern bool any_zero_len (const dim_vector& frozen_lengths); | |
66 | |
67 extern dim_vector get_zero_len_size (const dim_vector& frozen_lengths, | |
68 const dim_vector& dimensions); | |
69 | 62 |
70 extern bool all_colon_equiv (const Array<idx_vector>& ra_idx, | 63 extern bool all_colon_equiv (const Array<idx_vector>& ra_idx, |
71 const dim_vector& frozen_lengths); | 64 const dim_vector& frozen_lengths); |
72 | 65 |
73 extern bool is_in (int num, const idx_vector& idx); | 66 extern bool is_in (int num, const idx_vector& idx); |
76 | 69 |
77 extern bool all_ones (const Array<int>& arr); | 70 extern bool all_ones (const Array<int>& arr); |
78 | 71 |
79 extern Array<int> get_elt_idx (const Array<idx_vector>& ra_idx, | 72 extern Array<int> get_elt_idx (const Array<idx_vector>& ra_idx, |
80 const Array<int>& result_idx); | 73 const Array<int>& result_idx); |
81 | |
82 extern int number_of_elements (const dim_vector ra_idx); | |
83 | 74 |
84 extern Array<int> get_ra_idx (int idx, const dim_vector& dims); | 75 extern Array<int> get_ra_idx (int idx, const dim_vector& dims); |
85 | 76 |
86 extern dim_vector short_freeze (Array<idx_vector>& ra_idx, | 77 extern dim_vector short_freeze (Array<idx_vector>& ra_idx, |
87 const dim_vector& dimensions, | 78 const dim_vector& dimensions, |