#include "idx-vector.h"
Definition at line 51 of file idx-vector.h.
enum idx_vector::direct [private] |
Definition at line 157 of file idx-vector.h.
Definition at line 57 of file idx-vector.h.
idx_vector::idx_vector | ( | idx_base_rep * | r | ) | [inline, private] |
Definition at line 435 of file idx-vector.h.
idx_vector::idx_vector | ( | void | ) | [inline] |
Definition at line 469 of file idx-vector.h.
Referenced by complement(), and maybe_reduce().
idx_vector::idx_vector | ( | octave_idx_type | i | ) | [inline] |
Definition at line 472 of file idx-vector.h.
idx_vector::idx_vector | ( | octave_idx_type | start, | |
octave_idx_type | limit, | |||
octave_idx_type | step = 1 | |||
) | [inline] |
Definition at line 475 of file idx-vector.h.
idx_vector::idx_vector | ( | const Array< octave_idx_type > & | inda | ) | [inline] |
Definition at line 487 of file idx-vector.h.
idx_vector::idx_vector | ( | const Array< octave_idx_type > & | inda, | |
octave_idx_type | ext | |||
) | [inline] |
Definition at line 492 of file idx-vector.h.
idx_vector::idx_vector | ( | char | c | ) | [inline] |
Definition at line 500 of file idx-vector.h.
idx_vector::idx_vector | ( | octave_int< T > | x | ) | [inline] |
Definition at line 505 of file idx-vector.h.
idx_vector::idx_vector | ( | double | x | ) | [inline] |
Definition at line 507 of file idx-vector.h.
idx_vector::idx_vector | ( | float | x | ) | [inline] |
Definition at line 509 of file idx-vector.h.
idx_vector::idx_vector | ( | bool | x | ) | [inline] |
Definition at line 512 of file idx-vector.h.
idx_vector::idx_vector | ( | const Array< octave_int< T > > & | nda | ) | [inline] |
Definition at line 515 of file idx-vector.h.
Definition at line 518 of file idx-vector.h.
Definition at line 521 of file idx-vector.h.
Definition at line 782 of file idx-vector.cc.
References Array< T >::nnz(), Array< T >::numel(), and rep.
idx_vector::idx_vector | ( | const Range & | r | ) | [inline] |
Definition at line 526 of file idx-vector.h.
Definition at line 530 of file idx-vector.h.
idx_vector::idx_vector | ( | const idx_vector & | a | ) | [inline] |
Definition at line 533 of file idx-vector.h.
idx_vector::~idx_vector | ( | void | ) | [inline] |
Definition at line 535 of file idx-vector.h.
Array< octave_idx_type > idx_vector::as_array | ( | void | ) | const |
Definition at line 1273 of file idx-vector.cc.
References idx_vector::idx_base_rep::as_array(), and rep.
Referenced by Sparse< T >::index(), octave_matrix::is_sorted(), octave_lazy_index::is_sorted(), octave_matrix::is_sorted_rows(), octave_lazy_index::is_sorted_rows(), octave_lazy_index::permute(), raw(), octave_matrix::reshape(), octave_lazy_index::reshape(), octave_lazy_index::sort(), octave_lazy_index::sort_rows_idx(), octave_matrix::squeeze(), and octave_lazy_index::squeeze().
octave_idx_type idx_vector::assign | ( | const T * | src, | |
octave_idx_type | n, | |||
T * | dest | |||
) | const [inline] |
Definition at line 699 of file idx-vector.h.
References copy_or_memcpy(), idx_vector::idx_mask_rep::extent(), idx_vector::idx_mask_rep::get_data(), idx_vector::idx_vector_rep::get_data(), idx_vector::idx_scalar_rep::get_data(), idx_vector::idx_range_rep::get_start(), and idx_vector::idx_range_rep::get_step().
Referenced by Array< T >::assign(), and rec_index_helper::do_assign().
octave_idx_type idx_vector::bloop | ( | octave_idx_type | n, | |
Functor | body | |||
) | const [inline] |
octave_idx_type idx_vector::checkelem | ( | octave_idx_type | n | ) | const [inline] |
Definition at line 565 of file idx-vector.h.
void idx_vector::chkerr | ( | void | ) | [inline, private] |
Definition at line 455 of file idx-vector.h.
Referenced by freeze().
idx_vector idx_vector::complement | ( | octave_idx_type | n | ) | const |
Definition at line 1111 of file idx-vector.cc.
References idx_vector::idx_mask_rep::extent(), extent(), fill(), Array< T >::fortran_vec(), idx_vector::idx_mask_rep::get_data(), idx_class(), idx_vector(), length(), idx_vector::idx_mask_rep::length(), and rep.
Referenced by Sparse< T >::delete_elements(), and Array< T >::delete_elements().
void idx_vector::copy_data | ( | octave_idx_type * | data | ) | const |
Definition at line 1054 of file idx-vector.cc.
References class_colon, class_mask, class_range, class_scalar, class_vector, copy_or_memcpy(), current_liboctave_error_handler, idx_vector::idx_mask_rep::extent(), idx_vector::idx_mask_rep::get_data(), idx_vector::idx_vector_rep::get_data(), 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_vector::idx_base_rep::length(), and rep.
Referenced by Sparse< T >::assign().
octave_idx_type idx_vector::elem | ( | octave_idx_type | n | ) | const [inline] |
Definition at line 1028 of file idx-vector.h.
Referenced by increment().
static idx_vector_rep* idx_vector::err_rep | ( | void | ) | [inline, static, private] |
Definition at line 446 of file idx-vector.h.
References idx_vector::idx_base_rep::err.
octave_idx_type idx_vector::extent | ( | octave_idx_type | n | ) | const [inline] |
Definition at line 559 of file idx-vector.h.
Referenced by Sparse< T >::assign(), Array< T >::assign(), complement(), DEFUN(), Sparse< T >::delete_elements(), Array< T >::delete_elements(), do_accumarray_minmax(), do_accumarray_sum(), do_accumdim_sum(), freeze(), MArray< T >::idx_add(), MArray< T >::idx_add_nd(), MArray< T >::idx_max(), MArray< T >::idx_min(), ind2sub(), Sparse< T >::index(), Range::index(), Array< T >::index(), is_permutation(), octave_lazy_index::permute(), raw(), octave_matrix::reshape(), octave_lazy_index::reshape(), octave_lazy_index::sort(), Sparse< T >::Sparse(), octave_matrix::squeeze(), octave_lazy_index::squeeze(), sub2ind(), and zero_dims_inquire().
octave_idx_type idx_vector::fill | ( | const T & | val, | |
octave_idx_type | n, | |||
T * | dest | |||
) | const [inline] |
Definition at line 770 of file idx-vector.h.
References idx_vector::idx_mask_rep::extent(), idx_vector::idx_mask_rep::get_data(), idx_vector::idx_vector_rep::get_data(), idx_vector::idx_scalar_rep::get_data(), idx_vector::idx_range_rep::get_start(), and idx_vector::idx_range_rep::get_step().
Referenced by Array< T >::assign(), complement(), and rec_index_helper::do_fill().
octave_idx_type idx_vector::freeze | ( | octave_idx_type | z_len, | |
const char * | tag, | |||
bool | resize_ok = false | |||
) |
Definition at line 1285 of file idx-vector.cc.
References chkerr(), idx_vector::idx_base_rep::err, extent(), length(), and rep.
idx_class_type idx_vector::idx_class | ( | void | ) | const [inline] |
Definition at line 554 of file idx-vector.h.
Referenced by complement(), inverse_permutation(), is_vector(), maybe_reduce(), Array< T >::nth_element(), octave_value::octave_value(), unconvert(), and unmask().
octave_idx_type idx_vector::increment | ( | void | ) | const |
Definition at line 1011 of file idx-vector.cc.
References class_colon, class_mask, class_range, class_vector, elem(), idx_vector::idx_base_rep::idx_class(), length(), and rep.
Referenced by Sparse< T >::assign(), Sparse< T >::index(), inverse_permutation(), octave_lazy_index::is_sorted(), and Array< T >::nth_element().
octave_idx_type idx_vector::index | ( | const T * | src, | |
octave_idx_type | n, | |||
T * | dest | |||
) | const [inline] |
Definition at line 626 of file idx-vector.h.
References copy_or_memcpy(), idx_vector::idx_mask_rep::extent(), idx_vector::idx_mask_rep::get_data(), idx_vector::idx_vector_rep::get_data(), idx_vector::idx_scalar_rep::get_data(), idx_vector::idx_range_rep::get_start(), and idx_vector::idx_range_rep::get_step().
Referenced by rec_index_helper::do_index(), and Array< T >::index().
idx_vector idx_vector::inverse_permutation | ( | octave_idx_type | n | ) | const |
Definition at line 1171 of file idx-vector.cc.
References class_range, class_vector, idx_vector::idx_vector_rep::extent(), idx_vector::idx_vector_rep::get_data(), idx_class(), increment(), length(), orig_dimensions(), rep, sorted(), and Array< T >::xelem().
Referenced by Sparse< T >::assign(), and Sparse< T >::index().
bool idx_vector::is_colon | ( | void | ) | const [inline] |
Definition at line 580 of file idx-vector.h.
Referenced by Sparse< T >::assign(), Sparse< T >::delete_elements(), Array< T >::delete_elements(), octave_diag_matrix::do_index_op(), octave_perm_matrix::do_index_op(), Sparse< T >::index(), Range::index(), Array< T >::index(), ones_count(), and zero_dims_inquire().
bool idx_vector::is_colon_equiv | ( | octave_idx_type | n, | |
int | ||||
) | const [inline] |
Definition at line 1031 of file idx-vector.h.
References is_colon_equiv().
Referenced by is_colon_equiv().
bool idx_vector::is_colon_equiv | ( | octave_idx_type | n | ) | const [inline] |
Definition at line 589 of file idx-vector.h.
Referenced by Sparse< T >::assign(), Array< T >::assign(), octave_base_diag< DMT, MT >::do_index_op(), Sparse< T >::index(), is_permutation(), and maybe_reduce().
bool idx_vector::is_cont_range | ( | octave_idx_type | n, | |
octave_idx_type & | l, | |||
octave_idx_type & | u | |||
) | const |
Definition at line 958 of file idx-vector.cc.
References class_colon, class_mask, class_range, class_scalar, idx_vector::idx_mask_rep::extent(), 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_vector::idx_mask_rep::length(), idx_vector::idx_range_rep::length(), and rep.
Referenced by Sparse< T >::assign(), Sparse< T >::delete_elements(), Array< T >::delete_elements(), Sparse< T >::index(), Array< T >::index(), and rec_index_helper::is_cont_range().
bool idx_vector::is_permutation | ( | octave_idx_type | n | ) | const |
Definition at line 1142 of file idx-vector.cc.
References extent(), is_colon_equiv(), left, length(), OCTAVE_LOCAL_BUFFER_INIT, and xelem().
Referenced by Sparse< T >::assign(), octave_diag_matrix::do_index_op(), octave_perm_matrix::do_index_op(), Sparse< T >::index(), and PermMatrix::PermMatrix().
bool idx_vector::is_range | ( | void | ) | const [inline] |
Definition at line 586 of file idx-vector.h.
Referenced by Sparse< T >::assign(), Sparse< T >::index(), octave_lazy_index::is_sorted(), and sub2ind().
bool idx_vector::is_scalar | ( | void | ) | const [inline] |
Definition at line 583 of file idx-vector.h.
Referenced by octave_base_matrix< MT >::assign(), Array< T >::delete_elements(), octave_range::do_index_op(), octave_perm_matrix::do_index_op(), octave_base_matrix< MT >::do_index_op(), octave_base_diag< DMT, MT >::do_index_op(), ind2sub(), Sparse< T >::index(), Array< T >::index(), and zero_dims_inquire().
bool idx_vector::is_vector | ( | void | ) | const |
Definition at line 1279 of file idx-vector.cc.
References class_vector, idx_class(), dim_vector::is_vector(), and orig_dimensions().
Referenced by Sparse< T >::assign(), and Sparse< T >::index().
octave_idx_type idx_vector::length | ( | octave_idx_type | n = 0 |
) | const [inline] |
Definition at line 556 of file idx-vector.h.
Referenced by Sparse< T >::assign(), Array< T >::assign(), complement(), Sparse< T >::delete_elements(), Array< T >::delete_elements(), dims_to_numel(), do_accumarray_minmax(), do_accumarray_sum(), do_accumdim_sum(), rec_index_helper::do_assign(), rec_index_helper::do_fill(), rec_index_helper::do_index(), octave_base_diag< DMT, MT >::do_index_op(), freeze(), MArray< T >::idx_add(), MArray< T >::idx_add_nd(), MArray< T >::idx_max(), MArray< T >::idx_min(), increment(), ind2sub(), Sparse< T >::index(), Range::index(), Array< T >::index(), inverse_permutation(), is_permutation(), Array< T >::nth_element(), ones_count(), PermMatrix::PermMatrix(), Sparse< T >::Sparse(), sub2ind(), and octave_lazy_index::try_narrowing_conversion().
void idx_vector::loop | ( | octave_idx_type | n, | |
Functor | body | |||
) | const [inline] |
Definition at line 839 of file idx-vector.h.
References idx_vector::idx_mask_rep::extent(), idx_vector::idx_mask_rep::get_data(), idx_vector::idx_vector_rep::get_data(), idx_vector::idx_scalar_rep::get_data(), idx_vector::idx_range_rep::get_start(), and idx_vector::idx_range_rep::get_step().
Referenced by MArray< T >::idx_add(), MArray< T >::idx_add_nd(), MArray< T >::idx_max(), MArray< T >::idx_min(), and Range::index().
static idx_vector idx_vector::make_range | ( | octave_idx_type | start, | |
octave_idx_type | step, | |||
octave_idx_type | len | |||
) | [inline, static] |
Definition at line 481 of file idx-vector.h.
Referenced by convolve(), and sub2ind().
octave_idx_type idx_vector::max | ( | void | ) | const [inline] |
Definition at line 1042 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 795 of file idx-vector.cc.
References 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(), idx_vector(), is_colon_equiv(), idx_vector::idx_base_rep::is_colon_equiv(), idx_vector::idx_range_rep::length(), idx_vector::idx_base_rep::length(), and rep.
Referenced by Array< T >::assign(), and Array< T >::index().
static idx_vector_rep* idx_vector::nil_rep | ( | void | ) | [inline, static, private] |
Definition at line 439 of file idx-vector.h.
octave_idx_type idx_vector::ones_count | ( | void | ) | const |
Definition at line 1299 of file idx-vector.cc.
References is_colon(), length(), and xelem().
idx_vector::operator bool | ( | void | ) | const [inline] |
Definition at line 577 of file idx-vector.h.
octave_idx_type idx_vector::operator() | ( | octave_idx_type | n | ) | const [inline] |
Definition at line 568 of file idx-vector.h.
idx_vector& idx_vector::operator= | ( | const idx_vector & | a | ) | [inline] |
Definition at line 541 of file idx-vector.h.
References idx_vector::idx_base_rep::count, and rep.
octave_idx_type idx_vector::orig_columns | ( | void | ) | const [inline] |
Definition at line 603 of file idx-vector.h.
dim_vector idx_vector::orig_dimensions | ( | void | ) | const [inline] |
Definition at line 598 of file idx-vector.h.
Referenced by Sparse< T >::delete_elements(), ind2sub(), Sparse< T >::index(), Range::index(), Array< T >::index(), inverse_permutation(), is_vector(), octave_lazy_index::sort(), and octave_lazy_index::try_narrowing_conversion().
int idx_vector::orig_empty | ( | void | ) | const [inline] |
Definition at line 606 of file idx-vector.h.
octave_idx_type idx_vector::orig_rows | ( | void | ) | const [inline] |
Definition at line 600 of file idx-vector.h.
std::ostream& idx_vector::print | ( | std::ostream & | os | ) | const [inline] |
Definition at line 611 of file idx-vector.h.
const octave_idx_type * idx_vector::raw | ( | void | ) |
Definition at line 1041 of file idx-vector.cc.
References as_array(), extent(), idx_vector::idx_vector_rep::get_data(), idx_vector::idx_base_rep::idx_class(), and rep.
Referenced by Sparse< T >::delete_elements(), Sparse< T >::index(), and Sparse< T >::Sparse().
void idx_vector::sort | ( | bool | uniq = false |
) | [inline] |
Definition at line 1037 of file idx-vector.h.
idx_vector idx_vector::sorted | ( | bool | uniq = false |
) | const [inline] |
Definition at line 592 of file idx-vector.h.
Referenced by Sparse< T >::assign(), Sparse< T >::delete_elements(), inverse_permutation(), octave_lazy_index::sort(), and Sparse< T >::Sparse().
idx_vector idx_vector::sorted | ( | Array< octave_idx_type > & | sidx | ) | const [inline] |
Definition at line 595 of file idx-vector.h.
void idx_vector::unconvert | ( | idx_class_type & | iclass, | |
double & | scalar, | |||
Range & | range, | |||
Array< double > & | array, | |||
Array< bool > & | mask | |||
) | const |
Definition at line 1228 of file idx-vector.cc.
References class_colon, class_mask, class_range, class_scalar, class_vector, idx_class(), rep, idx_vector::idx_mask_rep::unconvert(), idx_vector::idx_vector_rep::unconvert(), idx_vector::idx_scalar_rep::unconvert(), and idx_vector::idx_range_rep::unconvert().
Referenced by octave_value::octave_value().
idx_vector idx_vector::unmask | ( | void | ) | const |
Definition at line 1206 of file idx-vector.cc.
References class_mask, idx_vector::idx_mask_rep::extent(), idx_vector::idx_mask_rep::get_data(), idx_class(), idx_vector::idx_mask_rep::length(), idx_vector::idx_mask_rep::orig_dimensions(), and rep.
Referenced by DEFUN_DLD().
octave_idx_type idx_vector::xelem | ( | octave_idx_type | n | ) | const [inline] |
Definition at line 562 of file idx-vector.h.
Referenced by Array< T >::assign(), Array< T >::index(), is_permutation(), and ones_count().
std::ostream& operator<< | ( | std::ostream & | os, | |
const idx_vector & | a | |||
) | [friend] |
Definition at line 613 of file idx-vector.h.
friend class std::auto_ptr [friend] |
Definition at line 67 of file idx-vector.h.
const idx_vector idx_vector::colon [static] |
Definition at line 497 of file idx-vector.h.
Referenced by Sparse< T >::assign(), Sparse< T >::cat(), Array< T >::cat(), octave_map::column(), FloatMatrix::column(), FloatComplexMatrix::column(), Matrix::column(), ComplexMatrix::column(), DEFUN(), Sparse< T >::delete_elements(), Array< T >::delete_elements(), do_cellslices_nda(), do_mat2cell_nd(), Sparse< T >::index(), insert_col(), insert_row(), octave_map::page(), prepare_idx(), FloatMatrix::row(), FloatComplexMatrix::row(), Matrix::row(), ComplexMatrix::row(), and shift_cols().
idx_base_rep* idx_vector::rep [private] |
Definition at line 1046 of file idx-vector.h.
Referenced by as_array(), complement(), copy_data(), freeze(), idx_vector(), increment(), inverse_permutation(), is_cont_range(), maybe_reduce(), operator=(), raw(), unconvert(), and unmask().