#include <cmath>
#include <istream>
#include <limits>
#include <ostream>
#include "Array-util.h"
#include "Range.h"
#include "lo-error.h"
#include "lo-mappers.h"
#include "lo-utils.h"
Go to the source code of this file.
Functions | |
template<typename T > | |
bool | xall_elements_are_ints (T base, T inc, T final_val, octave_idx_type nel) |
template<typename T > | |
T | xfinal_value (T base, T limit, T inc, octave_idx_type nel) |
template<typename T > | |
void | xinit (const octave_int< T > &base, const octave_int< T > &limit, const octave_int< T > &inc, bool reverse, octave_int< T > &final_val, octave_idx_type &nel) |
template<typename T > | |
void | xinit (T base, T limit, T inc, bool reverse, T &final_val, octave_idx_type &nel) |
template<typename T > | |
bool | xis_storable (T base, T limit, octave_idx_type nel) |
template<typename T > | |
octave_idx_type | xnnz (T base, T limit, T inc, T final_val, octave_idx_type nel) |
template<typename T > | |
octave_idx_type | xnumel_internal (T base, T limit, T inc) |
template<typename T > | |
bool | xteq (T u, T v, T ct=3 *std::numeric_limits< T >::epsilon()) |
template<typename T > | |
T | xtfloor (T x, T ct) |
bool xall_elements_are_ints | ( | T | base, |
T | inc, | ||
T | final_val, | ||
octave_idx_type | nel | ||
) |
Definition at line 139 of file Range.cc.
References isnan(), and nint_big().
Referenced by range< T, ENABLE >::all_elements_are_ints(), and xfinal_value().
T xfinal_value | ( | T | base, |
T | limit, | ||
T | inc, | ||
octave_idx_type | nel | ||
) |
Definition at line 161 of file Range.cc.
References round(), and xall_elements_are_ints().
Referenced by xinit().
void xinit | ( | const octave_int< T > & | base, |
const octave_int< T > & | limit, | ||
const octave_int< T > & | inc, | ||
bool | reverse, | ||
octave_int< T > & | final_val, | ||
octave_idx_type & | nel | ||
) |
Definition at line 265 of file Range.cc.
References octave_int< T >::value().
void xinit | ( | T | base, |
T | limit, | ||
T | inc, | ||
bool | reverse, | ||
T & | final_val, | ||
octave_idx_type & | nel | ||
) |
Definition at line 198 of file Range.cc.
References isinf(), isnan(), max(), NaN, xfinal_value(), and xnumel_internal().
Referenced by range< T, ENABLE >::init().
bool xis_storable | ( | T | base, |
T | limit, | ||
octave_idx_type | nel | ||
) |
Definition at line 301 of file Range.cc.
References isinf().
Referenced by range< T, ENABLE >::is_storable().
octave_idx_type xnnz | ( | T | base, |
T | limit, | ||
T | inc, | ||
T | final_val, | ||
octave_idx_type | nel | ||
) |
octave_idx_type xnumel_internal | ( | T | base, |
T | limit, | ||
T | inc | ||
) |
bool xteq | ( | T | u, |
T | v, | ||
T | ct = 3 * std::numeric_limits<T>::epsilon () |
||
) |
Definition at line 76 of file Range.cc.
Referenced by xnumel_internal().
T xtfloor | ( | T | x, |
T | ct | ||
) |