GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
range< T, typename std::enable_if< std::is_floating_point< T >::value >::type > Class Template Reference

#include "Range.h"

Collaboration diagram for range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >:

Public Member Functions

 range (const range< T > &r)
 
 range (const T &base, const T &increment, const T &limit, bool reverse=false)
 
 range (const T &base, const T &increment, const T &limit, octave_idx_type numel, bool reverse=false)
 
 range (const T &base, const T &limit)
 
 range (void)
 
 ~range (void)=default
 
bool all_elements_are_ints (void) const
 
Array< T > array_value (void) const
 
base (void) const
 
checkelem (octave_idx_type i) const
 
checkelem (octave_idx_type i, octave_idx_type j) const
 
octave_idx_type cols (void) const
 
octave_idx_type columns (void) const
 
Array< T > diag (octave_idx_type k) const
 
dim_vector dims (void) const
 
elem (octave_idx_type i) const
 
elem (octave_idx_type, octave_idx_type j) const
 
final_value (void) const
 
increment (void) const
 
Array< T > index (const idx_vector &idx) const
 
bool is_storable (void) const
 
bool isempty (void) const
 
sortmode issorted (sortmode mode=ASCENDING) const
 
limit (void) const
 
max (void) const
 
min (void) const
 
OCTAVE_API octave_idx_type nnz (void) const
 
octave_idx_type numel (void) const
 
operator() (octave_idx_type i) const
 
operator() (octave_idx_type i, octave_idx_type j) const
 
range< T > & operator= (const range< T > &r)
 
bool reverse (void) const
 
octave_idx_type rows (void) const
 

Static Public Member Functions

static range< T > make_n_element_range (const T &base, const T &increment, octave_idx_type numel, bool reverse=false)
 

Private Member Functions

void init (void)
 

Private Attributes

m_base
 
m_final
 
m_increment
 
m_limit
 
octave_idx_type m_numel
 
bool m_reverse
 

Detailed Description

template<typename T>
class range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >

Definition at line 48 of file Range.h.

Constructor & Destructor Documentation

◆ range() [1/5]

template<typename T >
range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::range ( void  )
inline

Definition at line 53 of file Range.h.

◆ range() [2/5]

template<typename T >
range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::range ( const T &  base,
const T &  increment,
const T &  limit,
bool  reverse = false 
)
inline

Definition at line 63 of file Range.h.

◆ range() [3/5]

template<typename T >
range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::range ( const T &  base,
const T &  limit 
)
inline

Definition at line 71 of file Range.h.

◆ range() [4/5]

template<typename T >
range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::range ( const T &  base,
const T &  increment,
const T &  limit,
octave_idx_type  numel,
bool  reverse = false 
)
inline

Definition at line 85 of file Range.h.

◆ range() [5/5]

template<typename T >
range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::range ( const range< T > &  r)
inline

Definition at line 109 of file Range.h.

◆ ~range()

template<typename T >
range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::~range ( void  )
default

Member Function Documentation

◆ all_elements_are_ints()

template<typename T >
bool range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::all_elements_are_ints ( void  ) const
inline

Definition at line 176 of file Range.h.

◆ array_value()

template<typename T >
Array<T> range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::array_value ( void  ) const
inline

Definition at line 297 of file Range.h.

References numel(), and Array< T, Alloc >::xelem().

◆ base()

template<typename T >
T range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::base ( void  ) const
inline

Definition at line 132 of file Range.h.

◆ checkelem() [1/2]

template<typename T >
T range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::checkelem ( octave_idx_type  i) const
inline

Definition at line 196 of file Range.h.

References err_index_out_of_range().

◆ checkelem() [2/2]

template<typename T >
T range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::checkelem ( octave_idx_type  i,
octave_idx_type  j 
) const
inline

Definition at line 211 of file Range.h.

References err_index_out_of_range().

◆ cols()

template<typename T >
octave_idx_type range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::cols ( void  ) const
inline

Definition at line 171 of file Range.h.

References numel().

◆ columns()

template<typename T >
octave_idx_type range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::columns ( void  ) const
inline

Definition at line 172 of file Range.h.

References numel().

◆ diag()

template<typename T >
Array<T> range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::diag ( octave_idx_type  k) const
inline

Definition at line 292 of file Range.h.

References Array< T, Alloc >::diag().

◆ dims()

template<typename T >
dim_vector range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::dims ( void  ) const
inline

Definition at line 167 of file Range.h.

◆ elem() [1/2]

template<typename T >
T range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::elem ( octave_idx_type  i) const
inline

Definition at line 220 of file Range.h.

◆ elem() [2/2]

template<typename T >
T range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::elem ( octave_idx_type  ,
octave_idx_type  j 
) const
inline

Definition at line 232 of file Range.h.

References elem.

◆ final_value()

template<typename T >
T range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::final_value ( void  ) const
inline

Definition at line 137 of file Range.h.

◆ increment()

template<typename T >
T range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::increment ( void  ) const
inline

Definition at line 133 of file Range.h.

◆ index()

template<typename T >
Array<T> range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::index ( const idx_vector idx) const
inline

◆ init()

template<typename T >
void range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::init ( void  )
inlineprivate

Definition at line 341 of file Range.h.

◆ is_storable()

template<typename T >
bool range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::is_storable ( void  ) const
inline

Definition at line 165 of file Range.h.

◆ isempty()

template<typename T >
bool range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::isempty ( void  ) const
inline

Definition at line 174 of file Range.h.

References numel().

◆ issorted()

template<typename T >
sortmode range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::issorted ( sortmode  mode = ASCENDING) const
inline

Definition at line 178 of file Range.h.

References ASCENDING, DESCENDING, and UNSORTED.

◆ limit()

template<typename T >
T range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::limit ( void  ) const
inline

Definition at line 134 of file Range.h.

◆ make_n_element_range()

template<typename T >
static range<T> range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::make_n_element_range ( const T &  base,
const T &  increment,
octave_idx_type  numel,
bool  reverse = false 
)
inlinestatic

Definition at line 94 of file Range.h.

References numel().

◆ max()

template<typename T >
T range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::max ( void  ) const
inline

Definition at line 147 of file Range.h.

◆ min()

template<typename T >
T range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::min ( void  ) const
inline

Definition at line 139 of file Range.h.

◆ nnz()

template<typename T >
OCTAVE_API octave_idx_type range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::nnz ( void  ) const

◆ numel()

template<typename T >
octave_idx_type range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::numel ( void  ) const
inline

Definition at line 155 of file Range.h.

◆ operator()() [1/2]

template<typename T >
T range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::operator() ( octave_idx_type  i) const
inline

Definition at line 237 of file Range.h.

References elem.

◆ operator()() [2/2]

template<typename T >
T range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::operator() ( octave_idx_type  i,
octave_idx_type  j 
) const
inline

Definition at line 242 of file Range.h.

References elem.

◆ operator=()

template<typename T >
range<T>& range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::operator= ( const range< T > &  r)
inline

Definition at line 115 of file Range.h.

References r.

◆ reverse()

template<typename T >
bool range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::reverse ( void  ) const
inline

Definition at line 135 of file Range.h.

◆ rows()

template<typename T >
octave_idx_type range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::rows ( void  ) const
inline

Definition at line 169 of file Range.h.

Member Data Documentation

◆ m_base

template<typename T >
T range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::m_base
private

Definition at line 327 of file Range.h.

◆ m_final

template<typename T >
T range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::m_final
private

Definition at line 330 of file Range.h.

◆ m_increment

template<typename T >
T range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::m_increment
private

Definition at line 328 of file Range.h.

◆ m_limit

template<typename T >
T range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::m_limit
private

Definition at line 329 of file Range.h.

◆ m_numel

template<typename T >
octave_idx_type range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::m_numel
private

Definition at line 331 of file Range.h.

◆ m_reverse

template<typename T >
bool range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::m_reverse
private

Definition at line 332 of file Range.h.


The documentation for this class was generated from the following file: