#include "Range.h"
Protected Member Functions | |
Range (double b, double l, double i, octave_idx_type n) | |
Private Member Functions | |
OCTAVE_API void | init (void) |
OCTAVE_API double | limit_internal (void) const |
OCTAVE_API octave_idx_type | numel_internal (void) const |
Private Attributes | |
double | m_base |
double | m_inc |
double | m_limit |
octave_idx_type | m_numel |
Friends | |
OCTAVE_API Range | operator* (const Range &r, double x) |
OCTAVE_API Range | operator* (double x, const Range &r) |
OCTAVE_API Range | operator+ (const Range &r, double x) |
OCTAVE_API Range | operator+ (double x, const Range &r) |
OCTAVE_API Range | operator- (const Range &r) |
OCTAVE_API Range | operator- (const Range &r, double x) |
OCTAVE_API Range | operator- (double x, const Range &r) |
OCTAVE_API std::ostream & | operator<< (std::ostream &os, const Range &r) |
OCTAVE_API std::istream & | operator>> (std::istream &is, Range &r) |
|
inline |
|
default |
|
default |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
bool Range::all_elements_are_ints | ( | void | ) | const |
Definition at line 458 of file Range.cc.
References isnan(), m_base, m_inc, m_numel, and nint_big().
Referenced by limit_internal().
|
inline |
Definition at line 463 of file Range.h.
Referenced by octave_legacy_range::try_narrowing_conversion().
double Range::checkelem | ( | octave_idx_type | i | ) | const |
Definition at line 527 of file Range.cc.
References dims(), err_index_out_of_range(), m_base, m_inc, m_limit, and m_numel.
Referenced by checkelem().
double Range::checkelem | ( | octave_idx_type | i, |
octave_idx_type | j | ||
) | const |
Definition at line 541 of file Range.cc.
References checkelem(), dims(), err_index_out_of_range(), and m_numel.
|
inline |
|
inline |
Matrix Range::diag | ( | octave_idx_type | k = 0 | ) | const |
Definition at line 693 of file Range.cc.
References Matrix::diag(), and matrix_value().
|
inline |
Definition at line 479 of file Range.h.
Referenced by checkelem(), and index().
double Range::elem | ( | octave_idx_type | i | ) | const |
|
inline |
|
inline |
Definition at line 466 of file Range.h.
Referenced by matrix_value(), and octave_legacy_range::try_narrowing_conversion().
Array< double > Range::index | ( | const octave::idx_vector & | i | ) | const |
Definition at line 562 of file Range.cc.
References Array< T, Alloc >::clear(), dims(), err_index_out_of_range(), Array< T, Alloc >::fortran_vec(), dim_vector::isvector(), m_base, m_inc, m_limit, m_numel, matrix_value(), n, and MArray< T >::reshape().
|
private |
Definition at line 999 of file Range.cc.
References isinf(), limit_internal(), m_limit, m_numel, and numel_internal().
Referenced by set_base(), set_inc(), and set_limit().
|
inline |
|
inline |
Definition at line 464 of file Range.h.
Referenced by octave_legacy_range::try_narrowing_conversion().
|
private |
Matrix Range::matrix_value | ( | void | ) | const |
Definition at line 505 of file Range.cc.
References increment(), m_base, m_inc, m_limit, m_numel, and Array< T, Alloc >::xelem().
Referenced by diag(), index(), and octave_legacy_range::try_narrowing_conversion().
double Range::max | ( | void | ) | const |
double Range::min | ( | void | ) | const |
octave_idx_type Range::nnz | ( | void | ) | const |
|
inline |
Definition at line 477 of file Range.h.
Referenced by octave_legacy_range::octave_legacy_range(), sort_internal(), and octave_legacy_range::try_narrowing_conversion().
|
private |
|
inline |
Definition at line 457 of file Range.h.
References isfinite().
|
inline |
|
inline |
|
inline |
void Range::set_base | ( | double | b | ) |
void Range::set_inc | ( | double | i | ) |
void Range::set_limit | ( | double | l | ) |
Range Range::sort | ( | Array< octave_idx_type > & | sidx, |
octave_idx_type | dim = 0 , |
||
sortmode | mode = ASCENDING |
||
) | const |
Definition at line 717 of file Range.cc.
References ASCENDING, DESCENDING, and sort_internal().
Range Range::sort | ( | octave_idx_type | dim = 0 , |
sortmode | mode = ASCENDING |
||
) | const |
Definition at line 699 of file Range.cc.
References ASCENDING, DESCENDING, and sort_internal().
void Range::sort_internal | ( | Array< octave_idx_type > & | sidx, |
bool | ascending = true |
||
) |
Definition at line 667 of file Range.cc.
References Array< T, Alloc >::fortran_vec(), m_base, m_inc, m_limit, numel(), and Array< T, Alloc >::resize().
void Range::sort_internal | ( | bool | ascending = true | ) |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
private |
Definition at line 543 of file Range.h.
Referenced by all_elements_are_ints(), checkelem(), elem(), index(), matrix_value(), max(), min(), nnz(), numel_internal(), set_base(), and sort_internal().
|
private |
Definition at line 545 of file Range.h.
Referenced by all_elements_are_ints(), checkelem(), elem(), index(), issorted(), limit_internal(), matrix_value(), max(), min(), nnz(), numel_internal(), set_inc(), and sort_internal().
|
private |
Definition at line 544 of file Range.h.
Referenced by checkelem(), elem(), index(), init(), matrix_value(), max(), min(), nnz(), numel_internal(), set_limit(), and sort_internal().
|
private |
Definition at line 547 of file Range.h.
Referenced by all_elements_are_ints(), checkelem(), elem(), index(), init(), issorted(), matrix_value(), max(), min(), and nnz().