#include "idx-vector.h"
Classes | |
class | idx_base_rep |
class | idx_colon_rep |
class | idx_mask_rep |
class | idx_range_rep |
class | idx_scalar_rep |
class | idx_vector_rep |
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 |
Private Types | |
enum | direct { DIRECT } |
Private Member Functions | |
idx_vector (idx_base_rep *r) | |
Static Private Member Functions | |
static OCTAVE_API idx_vector_rep * | nil_rep (void) |
Private Attributes | |
idx_base_rep * | m_rep |
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.
|
private |
Enumerator | |
---|---|
DIRECT |
Definition at line 161 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 63 of file idx-vector.h.
|
inlineprivate |
Definition at line 440 of file idx-vector.h.
|
inline |
Definition at line 449 of file idx-vector.h.
Referenced by complement(), maybe_reduce(), and raw().
|
inline |
Definition at line 452 of file idx-vector.h.
|
inline |
Definition at line 465 of file idx-vector.h.
|
inline |
Definition at line 476 of file idx-vector.h.
|
inline |
Definition at line 480 of file idx-vector.h.
|
inline |
Definition at line 487 of file idx-vector.h.
|
inline |
Definition at line 492 of file idx-vector.h.
|
inline |
Definition at line 494 of file idx-vector.h.
|
inline |
Definition at line 496 of file idx-vector.h.
|
inline |
Definition at line 499 of file idx-vector.h.
|
inline |
Definition at line 502 of file idx-vector.h.
|
inline |
Definition at line 505 of file idx-vector.h.
|
inline |
Definition at line 507 of file idx-vector.h.
idx_vector::idx_vector | ( | const Array< bool > & | nda | ) |
Definition at line 737 of file idx-vector.cc.
References m_rep, Array< T, Alloc >::nnz(), and Array< T, Alloc >::numel().
|
inline |
Definition at line 511 of file idx-vector.h.
|
inline |
Definition at line 513 of file idx-vector.h.
|
inline |
Definition at line 515 of file idx-vector.h.
|
inline |
Definition at line 517 of file idx-vector.h.
Array< octave_idx_type > idx_vector::as_array | ( | void | ) | const |
Definition at line 1227 of file idx-vector.cc.
References idx_vector::idx_base_rep::as_array(), and m_rep.
Referenced by raw().
|
inline |
Definition at line 677 of file idx-vector.h.
|
inline |
Definition at line 887 of file idx-vector.h.
|
inline |
Definition at line 547 of file idx-vector.h.
References n.
idx_vector idx_vector::complement | ( | octave_idx_type | n | ) | const |
Definition at line 1068 of file idx-vector.cc.
References idx_vector(), class_mask, extent(), fill(), Array< T, Alloc >::fortran_vec(), idx_class(), length(), m_rep, n, and r.
void idx_vector::copy_data | ( | octave_idx_type * | data | ) | const |
Definition at line 1011 of file idx-vector.cc.
References class_colon, class_mask, class_range, class_scalar, class_vector, idx_vector::idx_base_rep::idx_class(), idx_vector::idx_base_rep::length(), m_rep, and r.
|
inline |
|
inline |
Definition at line 541 of file idx-vector.h.
References n.
Referenced by complement(), do_accumarray_minmax(), do_accumarray_sum(), do_accumdim_sum(), 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 |
||
) |
Definition at line 1238 of file idx-vector.cc.
|
inline |
Definition at line 536 of file idx-vector.h.
Referenced by complement(), inverse_permutation(), isvector(), maybe_reduce(), unconvert(), and unmask().
octave_idx_type idx_vector::increment | ( | void | ) | const |
Definition at line 970 of file idx-vector.cc.
References class_colon, class_mask, class_range, class_vector, elem(), idx_vector::idx_base_rep::idx_class(), length(), and m_rep.
Referenced by inverse_permutation().
|
inline |
Definition at line 603 of file idx-vector.h.
idx_vector idx_vector::inverse_permutation | ( | octave_idx_type | n | ) | const |
Definition at line 1126 of file idx-vector.cc.
References class_range, class_vector, DIRECT, idx_class(), increment(), length(), m_rep, n, orig_dimensions(), r, sorted(), and Array< T, Alloc >::xelem().
|
inline |
Definition at line 557 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 566 of file idx-vector.h.
References n.
Referenced by is_permutation(), and maybe_reduce().
|
inline |
Definition at line 1015 of file idx-vector.h.
References n.
bool idx_vector::is_cont_range | ( | octave_idx_type | n, |
octave_idx_type & | l, | ||
octave_idx_type & | u | ||
) | const |
Definition at line 917 of file idx-vector.cc.
References class_colon, class_mask, class_range, class_scalar, idx_vector::idx_base_rep::idx_class(), m_rep, n, and r.
bool idx_vector::is_permutation | ( | octave_idx_type | n | ) | const |
Definition at line 1098 of file idx-vector.cc.
References extent(), is_colon_equiv(), left, length(), n, OCTAVE_LOCAL_BUFFER_INIT, and xelem().
|
inline |
Definition at line 563 of file idx-vector.h.
|
inline |
Definition at line 560 of file idx-vector.h.
bool idx_vector::isvector | ( | void | ) | const |
Definition at line 1232 of file idx-vector.cc.
References class_vector, idx_class(), dim_vector::isvector(), and orig_dimensions().
|
inline |
Definition at line 538 of file idx-vector.h.
References n.
Referenced by complement(), dims_to_numel(), do_accumarray_minmax(), do_accumarray_sum(), do_accumdim_sum(), 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 819 of file idx-vector.h.
Referenced by range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::index().
|
inlinestatic |
Definition at line 470 of file idx-vector.h.
References len.
Referenced by convolve(), and opengl_renderer::get_pixels().
|
inline |
Definition at line 1026 of file idx-vector.h.
Referenced by idx_vector::idx_vector_rep::idx_vector_rep().
bool idx_vector::maybe_reduce | ( | octave_idx_type | n, |
const idx_vector & | j, | ||
octave_idx_type | nj | ||
) |
Definition at line 749 of file idx-vector.cc.
References idx_vector(), class_colon, class_range, class_scalar, DIRECT, idx_vector::idx_scalar_rep::get_data(), idx_vector::idx_range_rep::get_start(), idx_vector::idx_range_rep::get_step(), idx_vector::idx_base_rep::idx_class(), idx_class(), is_colon_equiv(), idx_vector::idx_base_rep::is_colon_equiv(), idx_vector::idx_base_rep::length(), idx_vector::idx_range_rep::length(), m_rep, n, and r.
|
staticprivate |
Definition at line 58 of file idx-vector.cc.
octave_idx_type idx_vector::ones_count | ( | void | ) | const |
Definition at line 1247 of file idx-vector.cc.
References is_colon(), length(), n, and xelem().
|
inline |
Definition at line 555 of file idx-vector.h.
|
inline |
Definition at line 550 of file idx-vector.h.
References n.
|
inline |
Definition at line 523 of file idx-vector.h.
References idx_vector::idx_base_rep::m_count, and m_rep.
|
inline |
Definition at line 580 of file idx-vector.h.
|
inline |
Definition at line 575 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 583 of file idx-vector.h.
|
inline |
Definition at line 577 of file idx-vector.h.
|
inline |
Definition at line 588 of file idx-vector.h.
const octave_idx_type * idx_vector::raw | ( | void | ) |
Definition at line 999 of file idx-vector.cc.
References idx_vector(), as_array(), class_vector, extent(), idx_vector::idx_base_rep::idx_class(), m_rep, and r.
|
inline |
Definition at line 1021 of file idx-vector.h.
|
inline |
Definition at line 572 of file idx-vector.h.
|
inline |
Definition at line 569 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 1183 of file idx-vector.cc.
References class_colon, class_mask, class_range, class_scalar, class_vector, idx_class(), m_rep, r, range, and scalar().
idx_vector idx_vector::unmask | ( | void | ) | const |
Definition at line 1160 of file idx-vector.cc.
References class_mask, DIRECT, idx_class(), m_rep, and r.
|
inline |
Definition at line 544 of file idx-vector.h.
References n.
Referenced by idx_vector::idx_vector_rep::checkelem(), idx_vector::idx_mask_rep::checkelem(), is_permutation(), and ones_count().
|
friend |
Definition at line 590 of file idx-vector.h.
|
friend |
Definition at line 73 of file idx-vector.h.
|
static |
Definition at line 484 of file idx-vector.h.
Referenced by do_cellslices_nda(), do_fft(), do_mat2cell_nd(), F__ilutp__(), Fcell2struct(), opengl_renderer::get_pixels(), ilu_tp(), and prepare_idx().
|
private |
Definition at line 1030 of file idx-vector.h.
Referenced by idx_vector(), as_array(), complement(), copy_data(), increment(), inverse_permutation(), is_cont_range(), maybe_reduce(), operator=(), raw(), unconvert(), and unmask().