#include "idx-vector.h"
Public Types | |
enum | idx_class_type { class_invalid = -1 , class_colon = 0 , class_range , class_scalar , class_vector , class_mask } |
Static Public Member Functions | |
static idx_vector | make_range (octave_idx_type start, octave_idx_type step, octave_idx_type len) |
Static Public Attributes | |
static const idx_vector | colon |
Friends | |
std::ostream & | operator<< (std::ostream &os, const idx_vector &a) |
template<typename T , typename D > | |
class | std::unique_ptr |
Definition at line 57 of file idx-vector.h.
enum idx_vector::idx_class_type |
Enumerator | |
---|---|
class_invalid | |
class_colon | |
class_range | |
class_scalar | |
class_vector | |
class_mask |
Definition at line 61 of file idx-vector.h.
|
inline |
Definition at line 429 of file idx-vector.h.
Referenced by complement(), maybe_reduce(), and raw().
|
inline |
Definition at line 432 of file idx-vector.h.
|
inline |
Definition at line 445 of file idx-vector.h.
|
inline |
Definition at line 456 of file idx-vector.h.
|
inline |
Definition at line 460 of file idx-vector.h.
|
inline |
Definition at line 467 of file idx-vector.h.
|
inline |
Definition at line 472 of file idx-vector.h.
|
inline |
Definition at line 474 of file idx-vector.h.
|
inline |
Definition at line 476 of file idx-vector.h.
|
inline |
Definition at line 479 of file idx-vector.h.
|
inline |
Definition at line 482 of file idx-vector.h.
Definition at line 485 of file idx-vector.h.
Definition at line 487 of file idx-vector.h.
Definition at line 760 of file idx-vector.cc.
References Array< T, Alloc >::nnz(), and Array< T, Alloc >::numel().
Definition at line 491 of file idx-vector.h.
Definition at line 493 of file idx-vector.h.
|
inline |
Definition at line 495 of file idx-vector.h.
|
inline |
Definition at line 497 of file idx-vector.h.
Array< octave_idx_type > idx_vector::as_array | ( | ) | const |
Definition at line 1269 of file idx-vector.cc.
References as_array().
Referenced by as_array(), and raw().
|
inline |
Definition at line 663 of file idx-vector.h.
References len.
|
inline |
Definition at line 888 of file idx-vector.h.
References len.
|
inline |
Definition at line 527 of file idx-vector.h.
idx_vector idx_vector::complement | ( | octave_idx_type | n | ) | const |
Definition at line 1101 of file idx-vector.cc.
References idx_vector(), class_mask, complement(), extent(), fill(), idx_class(), length(), and Array< T, Alloc >::rwdata().
Referenced by complement().
void idx_vector::copy_data | ( | octave_idx_type * | data | ) | const |
Definition at line 1039 of file idx-vector.cc.
References class_colon, class_invalid, class_mask, class_range, class_scalar, class_vector, and copy_data().
Referenced by copy_data().
|
inline |
Definition at line 1018 of file idx-vector.h.
Referenced by increment().
|
inline |
Definition at line 521 of file idx-vector.h.
Referenced by complement(), Fisindex(), freeze(), range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::index(), is_permutation(), and raw().
|
inline |
octave_idx_type idx_vector::freeze | ( | octave_idx_type | z_len, |
const char * | tag, | ||
bool | resize_ok = false |
||
) |
|
inline |
Definition at line 516 of file idx-vector.h.
Referenced by complement(), inverse_permutation(), isvector(), maybe_reduce(), unconvert(), and unmask().
octave_idx_type idx_vector::increment | ( | ) | const |
Definition at line 996 of file idx-vector.cc.
References class_colon, class_mask, class_range, class_vector, elem(), increment(), and length().
Referenced by increment(), and inverse_permutation().
|
inline |
Definition at line 584 of file idx-vector.h.
References len.
idx_vector idx_vector::inverse_permutation | ( | octave_idx_type | n | ) | const |
Definition at line 1161 of file idx-vector.cc.
References class_range, class_vector, idx_class(), increment(), inverse_permutation(), length(), liboctave_panic_unless, orig_dimensions(), sorted(), and Array< T, Alloc >::xelem().
Referenced by inverse_permutation().
|
inline |
Definition at line 538 of file idx-vector.h.
Referenced by range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::index(), and ones_count().
|
inline |
Definition at line 547 of file idx-vector.h.
Referenced by is_permutation(), and maybe_reduce().
|
inline |
Definition at line 1021 of file idx-vector.h.
bool idx_vector::is_cont_range | ( | octave_idx_type | n, |
octave_idx_type & | l, | ||
octave_idx_type & | u | ||
) | const |
Definition at line 942 of file idx-vector.cc.
References class_colon, class_mask, class_range, class_scalar, and is_cont_range().
Referenced by is_cont_range().
bool idx_vector::is_permutation | ( | octave_idx_type | n | ) | const |
Definition at line 1132 of file idx-vector.cc.
References extent(), is_colon_equiv(), is_permutation(), length(), OCTAVE_LOCAL_BUFFER_INIT, and xelem().
Referenced by is_permutation().
|
inline |
Definition at line 544 of file idx-vector.h.
|
inline |
Definition at line 541 of file idx-vector.h.
bool idx_vector::isvector | ( | ) | const |
Definition at line 1275 of file idx-vector.cc.
References class_vector, idx_class(), dim_vector::isvector(), isvector(), and orig_dimensions().
Referenced by isvector().
|
inline |
Definition at line 518 of file idx-vector.h.
Referenced by complement(), dims_to_numel(), freeze(), increment(), range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::index(), inverse_permutation(), is_permutation(), and ones_count().
|
inline |
Definition at line 815 of file idx-vector.h.
References len.
Referenced by range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::index().
|
inlinestatic |
Definition at line 450 of file idx-vector.h.
References len.
|
inline |
Definition at line 1032 of file idx-vector.h.
bool idx_vector::maybe_reduce | ( | octave_idx_type | n, |
const idx_vector & | j, | ||
octave_idx_type | nj | ||
) |
Definition at line 773 of file idx-vector.cc.
References idx_vector(), class_colon, class_range, class_scalar, idx_class(), is_colon_equiv(), and maybe_reduce().
Referenced by maybe_reduce().
octave_idx_type idx_vector::ones_count | ( | ) | const |
Definition at line 1291 of file idx-vector.cc.
References is_colon(), length(), ones_count(), and xelem().
Referenced by ones_count().
|
inline |
Definition at line 536 of file idx-vector.h.
|
inline |
Definition at line 530 of file idx-vector.h.
|
inline |
Definition at line 503 of file idx-vector.h.
|
inline |
Definition at line 561 of file idx-vector.h.
|
inline |
Definition at line 556 of file idx-vector.h.
Referenced by range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::index(), inverse_permutation(), and isvector().
|
inline |
Definition at line 564 of file idx-vector.h.
|
inline |
Definition at line 558 of file idx-vector.h.
|
inline |
Definition at line 569 of file idx-vector.h.
const octave_idx_type * idx_vector::raw | ( | ) |
Definition at line 1026 of file idx-vector.cc.
References idx_vector(), as_array(), class_vector, extent(), liboctave_panic_unless, and raw().
Referenced by raw().
|
inline |
Definition at line 1027 of file idx-vector.h.
|
inline |
Definition at line 553 of file idx-vector.h.
|
inline |
Definition at line 550 of file idx-vector.h.
Referenced by inverse_permutation().
void idx_vector::unconvert | ( | idx_class_type & | iclass, |
double & | scalar, | ||
range< double > & | range, | ||
Array< double > & | array, | ||
Array< bool > & | mask | ||
) | const |
Definition at line 1220 of file idx-vector.cc.
References class_colon, class_invalid, class_mask, class_range, class_scalar, class_vector, idx_class(), and unconvert().
Referenced by unconvert().
idx_vector idx_vector::unmask | ( | ) | const |
Definition at line 1196 of file idx-vector.cc.
References class_mask, idx_class(), and unmask().
Referenced by unmask().
|
inline |
Definition at line 524 of file idx-vector.h.
Referenced by is_permutation(), and ones_count().
|
friend |
Definition at line 571 of file idx-vector.h.
|
friend |
Definition at line 71 of file idx-vector.h.
|
static |
Definition at line 464 of file idx-vector.h.