GNU Octave  9.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"

Public Member Functions

 range ()
 
 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)
 
bool all_elements_are_ints () const
 
Array< T > array_value () const
 
base () const
 
checkelem (octave_idx_type i) const
 
checkelem (octave_idx_type i, octave_idx_type j) const
 
octave_idx_type cols () const
 
octave_idx_type columns () const
 
Array< T > diag (octave_idx_type k) const
 
dim_vector dims () const
 
elem (octave_idx_type i) const
 
elem (octave_idx_type, octave_idx_type j) const
 
final_value () const
 
increment () const
 
Array< T > index (const idx_vector &idx) const
 
bool is_storable () const
 
bool isempty () const
 
sortmode issorted (sortmode mode=ASCENDING) const
 
limit () const
 
max () const
 
min () const
 
octave_idx_type nnz () const
 
octave_idx_type numel () const
 
operator() (octave_idx_type i) const
 
operator() (octave_idx_type i, octave_idx_type j) const
 
bool reverse () const
 
octave_idx_type rows () 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)
 

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/4]

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

Definition at line 53 of file Range.h.

◆ range() [2/4]

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/4]

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/4]

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.

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 ( ) const
inline

Definition at line 155 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 ( ) const
inline

Definition at line 276 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 ( ) const
inline

Definition at line 111 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 175 of file Range.h.

◆ 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 190 of file Range.h.

◆ cols()

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

Definition at line 150 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 ( ) const
inline

Definition at line 151 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 271 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 ( ) const
inline

Definition at line 146 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 199 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 211 of file Range.h.

◆ final_value()

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

Definition at line 116 of file Range.h.

◆ increment()

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

Definition at line 112 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

Definition at line 226 of file Range.h.

References idx_vector::extent(), idx_vector::is_colon(), n, and Array< T, Alloc >::reshape().

◆ is_storable()

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

Definition at line 144 of file Range.h.

◆ isempty()

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

Definition at line 153 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 157 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 ( ) const
inline

Definition at line 113 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 ( ) const
inline

Definition at line 126 of file Range.h.

◆ min()

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

Definition at line 118 of file Range.h.

◆ nnz()

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

◆ numel()

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

Definition at line 134 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 216 of file Range.h.

◆ 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 221 of file Range.h.

◆ reverse()

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

Definition at line 114 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 ( ) const
inline

Definition at line 148 of file Range.h.


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