#include "octave-config.h"
#include <cmath>
#include <cstdlib>
#include <iosfwd>
#include <limits>
#include "lo-mappers.h"
#include "lo-traits.h"
#include "oct-inttypes-fwd.h"
Go to the source code of this file.
Macros | |
#define | OCTAVE_DEFINE_LONG_DOUBLE_INT_CMP_OP(T) |
#define | OCTAVE_INT_BIN_OP(OP, NAME, ARGT) |
#define | OCTAVE_INT_BITCMP_OP(OP) |
#define | OCTAVE_INT_CMP_OP(OP, NAME) |
#define | OCTAVE_INT_DOUBLE_BIN_OP(OP, NAME) |
#define | OCTAVE_INT_DOUBLE_BIN_OP0(OP) |
#define | OCTAVE_INT_DOUBLE_CMP_OP(OP, NAME) |
#define | OCTAVE_INT_FLOAT_BIN_OP(OP) |
#define | OCTAVE_INT_FLOAT_CMP_OP(OP) |
#define | OCTAVE_INT_IDX_TYPE_BIN_OP(OP) |
#define | OCTAVE_INT_UN_OP(OPNAME, NAME) |
#define | OCTAVE_REGISTER_INT_CMP_OP(NM, OP) |
#define | OCTAVE_REGISTER_INT_CONST_OP(NM, VALUE) |
#define | OCTAVE_REGISTER_INT_TYPE(TYPE) |
Functions | |
template<typename T > | |
octave_int< T > | bitshift (const octave_int< T > &a, int n, const octave_int< T > &mask=std::numeric_limits< T >::max()) |
template<typename T > | |
bool | isnan (const octave_int< T > &) |
template<typename T > | |
octave_int< T > | mod (const octave_int< T > &x, const octave_int< T > &y) |
template<typename T > | |
T | octave_int_abs (T x) |
template<typename T > | |
bool | operator!= (const double &x, const octave_int< T > &y) |
template<typename T > | |
bool | operator!= (const float &x, const octave_int< T > &y) |
template<typename T > | |
bool | operator!= (const octave_int< T > &x, const double &y) |
template<typename T > | |
bool | operator!= (const octave_int< T > &x, const float &y) |
template<typename T1 , typename T2 > | |
bool | operator!= (const octave_int< T1 > &x, const octave_int< T2 > &y) |
template<typename T > | |
octave_int< T > | operator& (const octave_int< T > &x, const octave_int< T > &y) |
template<> | |
octave_int64 | operator* (const double &, const octave_int64 &) |
template<> | |
octave_uint64 | operator* (const double &, const octave_uint64 &) |
template<typename T > | |
octave_int< T > | operator* (const double &x, const octave_int< T > &y) |
template<> | |
octave_int64 | operator* (const octave_int64 &, const double &) |
template<typename T > | |
octave_int< T > | operator* (const octave_int< T > &x, const double &y) |
template<typename T > | |
octave_int< T > | operator* (const octave_int< T > &x, float y) |
template<typename T > | |
octave_int< T > | operator* (const octave_int< T > &x, octave_idx_type y) |
template<> | |
octave_uint64 | operator* (const octave_uint64 &, const double &) |
template<typename T > | |
octave_int< T > | operator* (float x, const octave_int< T > &y) |
template<typename T > | |
octave_int< T > | operator* (octave_idx_type x, const octave_int< T > &y) |
template<> | |
octave_int64 | operator+ (const double &, const octave_int64 &) |
template<> | |
octave_uint64 | operator+ (const double &, const octave_uint64 &) |
template<typename T > | |
octave_int< T > | operator+ (const double &x, const octave_int< T > &y) |
template<> | |
octave_int64 | operator+ (const octave_int64 &, const double &) |
template<typename T > | |
octave_int< T > | operator+ (const octave_int< T > &x, const double &y) |
template<typename T > | |
octave_int< T > | operator+ (const octave_int< T > &x, float y) |
template<typename T > | |
octave_int< T > | operator+ (const octave_int< T > &x, octave_idx_type y) |
template<> | |
octave_uint64 | operator+ (const octave_uint64 &, const double &) |
template<typename T > | |
octave_int< T > | operator+ (float x, const octave_int< T > &y) |
template<typename T > | |
octave_int< T > | operator+ (octave_idx_type x, const octave_int< T > &y) |
template<> | |
octave_int64 | operator- (const double &, const octave_int64 &) |
template<> | |
octave_uint64 | operator- (const double &, const octave_uint64 &) |
template<typename T > | |
octave_int< T > | operator- (const double &x, const octave_int< T > &y) |
template<> | |
octave_int64 | operator- (const octave_int64 &, const double &) |
template<typename T > | |
octave_int< T > | operator- (const octave_int< T > &x, const double &y) |
template<typename T > | |
octave_int< T > | operator- (const octave_int< T > &x, float y) |
template<typename T > | |
octave_int< T > | operator- (const octave_int< T > &x, octave_idx_type y) |
template<> | |
octave_uint64 | operator- (const octave_uint64 &, const double &) |
template<typename T > | |
octave_int< T > | operator- (float x, const octave_int< T > &y) |
template<typename T > | |
octave_int< T > | operator- (octave_idx_type x, const octave_int< T > &y) |
template<> | |
octave_int64 | operator/ (const double &, const octave_int64 &) |
template<> | |
octave_uint64 | operator/ (const double &, const octave_uint64 &) |
template<typename T > | |
octave_int< T > | operator/ (const double &x, const octave_int< T > &y) |
template<> | |
octave_int64 | operator/ (const octave_int64 &, const double &) |
template<typename T > | |
octave_int< T > | operator/ (const octave_int< T > &x, const double &y) |
template<typename T > | |
octave_int< T > | operator/ (const octave_int< T > &x, float y) |
template<typename T > | |
octave_int< T > | operator/ (const octave_int< T > &x, octave_idx_type y) |
template<> | |
octave_uint64 | operator/ (const octave_uint64 &, const double &) |
template<typename T > | |
octave_int< T > | operator/ (float x, const octave_int< T > &y) |
template<typename T > | |
octave_int< T > | operator/ (octave_idx_type x, const octave_int< T > &y) |
template<typename T > | |
bool | operator< (const double &x, const octave_int< T > &y) |
template<typename T > | |
bool | operator< (const float &x, const octave_int< T > &y) |
template<typename T > | |
bool | operator< (const octave_int< T > &x, const double &y) |
template<typename T > | |
bool | operator< (const octave_int< T > &x, const float &y) |
template<typename T1 , typename T2 > | |
bool | operator< (const octave_int< T1 > &x, const octave_int< T2 > &y) |
template<> | |
std::ostream & | operator<< (std::ostream &os, const octave_int< int8_t > &ival) |
template<typename T > | |
std::ostream & | operator<< (std::ostream &os, const octave_int< T > &ival) |
template<> | |
std::ostream & | operator<< (std::ostream &os, const octave_int< uint8_t > &ival) |
template<typename T > | |
bool | operator<= (const double &x, const octave_int< T > &y) |
template<typename T > | |
bool | operator<= (const float &x, const octave_int< T > &y) |
template<typename T > | |
bool | operator<= (const octave_int< T > &x, const double &y) |
template<typename T > | |
bool | operator<= (const octave_int< T > &x, const float &y) |
template<typename T1 , typename T2 > | |
bool | operator<= (const octave_int< T1 > &x, const octave_int< T2 > &y) |
template<typename T > | |
bool | operator== (const double &x, const octave_int< T > &y) |
template<typename T > | |
bool | operator== (const float &x, const octave_int< T > &y) |
template<typename T > | |
bool | operator== (const octave_int< T > &x, const double &y) |
template<typename T > | |
bool | operator== (const octave_int< T > &x, const float &y) |
template<typename T1 , typename T2 > | |
bool | operator== (const octave_int< T1 > &x, const octave_int< T2 > &y) |
template<typename T > | |
bool | operator> (const double &x, const octave_int< T > &y) |
template<typename T > | |
bool | operator> (const float &x, const octave_int< T > &y) |
template<typename T > | |
bool | operator> (const octave_int< T > &x, const double &y) |
template<typename T > | |
bool | operator> (const octave_int< T > &x, const float &y) |
template<typename T1 , typename T2 > | |
bool | operator> (const octave_int< T1 > &x, const octave_int< T2 > &y) |
template<typename T > | |
bool | operator>= (const double &x, const octave_int< T > &y) |
template<typename T > | |
bool | operator>= (const float &x, const octave_int< T > &y) |
template<typename T > | |
bool | operator>= (const octave_int< T > &x, const double &y) |
template<typename T > | |
bool | operator>= (const octave_int< T > &x, const float &y) |
template<typename T1 , typename T2 > | |
bool | operator>= (const octave_int< T1 > &x, const octave_int< T2 > &y) |
template<> | |
std::istream & | operator>> (std::istream &is, octave_int< int8_t > &ival) |
template<typename T > | |
std::istream & | operator>> (std::istream &is, octave_int< T > &ival) |
template<> | |
std::istream & | operator>> (std::istream &is, octave_int< uint8_t > &ival) |
template<typename T > | |
octave_int< T > | operator^ (const octave_int< T > &x, const octave_int< T > &y) |
template<typename T > | |
octave_int< T > | operator| (const octave_int< T > &x, const octave_int< T > &y) |
template<typename T > | |
octave_int< T > | pow (const double &a, const octave_int< T > &b) |
template<typename T > | |
octave_int< T > | pow (const float &a, const octave_int< T > &b) |
template<typename T > | |
octave_int< T > | pow (const octave_int< T > &, const octave_int< T > &) |
template<typename T > | |
octave_int< T > | pow (const octave_int< T > &a, const double &b) |
template<typename T > | |
octave_int< T > | pow (const octave_int< T > &a, const float &b) |
template<typename T > | |
octave_int< T > | powf (const float &a, const octave_int< T > &b) |
template<typename T > | |
octave_int< T > | powf (const octave_int< T > &a, const float &b) |
template<typename T > | |
octave_int< T > | rem (const octave_int< T > &x, const octave_int< T > &y) |
template<typename T > | |
octave_int< T > | xmax (const octave_int< T > &x, const octave_int< T > &y) |
template<typename T > | |
octave_int< T > | xmin (const octave_int< T > &x, const octave_int< T > &y) |
#define OCTAVE_DEFINE_LONG_DOUBLE_INT_CMP_OP | ( | T | ) |
Definition at line 314 of file oct-inttypes.h.
#define OCTAVE_INT_BIN_OP | ( | OP, | |
NAME, | |||
ARGT | |||
) |
Definition at line 874 of file oct-inttypes.h.
#define OCTAVE_INT_BITCMP_OP | ( | OP | ) |
Definition at line 1064 of file oct-inttypes.h.
#define OCTAVE_INT_CMP_OP | ( | OP, | |
NAME | |||
) |
Definition at line 981 of file oct-inttypes.h.
#define OCTAVE_INT_DOUBLE_BIN_OP | ( | OP, | |
NAME | |||
) |
Definition at line 1203 of file oct-inttypes.h.
#define OCTAVE_INT_DOUBLE_BIN_OP0 | ( | OP | ) |
Definition at line 1112 of file oct-inttypes.h.
#define OCTAVE_INT_DOUBLE_CMP_OP | ( | OP, | |
NAME | |||
) |
Definition at line 1234 of file oct-inttypes.h.
#define OCTAVE_INT_FLOAT_BIN_OP | ( | OP | ) |
Definition at line 1260 of file oct-inttypes.h.
#define OCTAVE_INT_FLOAT_CMP_OP | ( | OP | ) |
Definition at line 1282 of file oct-inttypes.h.
#define OCTAVE_INT_IDX_TYPE_BIN_OP | ( | OP | ) |
Definition at line 1328 of file oct-inttypes.h.
#define OCTAVE_INT_UN_OP | ( | OPNAME, | |
NAME | |||
) |
Definition at line 854 of file oct-inttypes.h.
#define OCTAVE_REGISTER_INT_CMP_OP | ( | NM, | |
OP | |||
) |
Definition at line 183 of file oct-inttypes.h.
#define OCTAVE_REGISTER_INT_CONST_OP | ( | NM, | |
VALUE | |||
) |
Definition at line 207 of file oct-inttypes.h.
#define OCTAVE_REGISTER_INT_TYPE | ( | TYPE | ) |
Definition at line 88 of file oct-inttypes.h.
octave_int<T> bitshift | ( | const octave_int< T > & | a, |
int | n, | ||
const octave_int< T > & | mask = std::numeric_limits<T>::max () |
||
) |
Definition at line 1081 of file oct-inttypes.h.
References n.
bool isnan | ( | const octave_int< T > & | ) |
Definition at line 937 of file oct-inttypes.h.
|
inline |
Definition at line 924 of file oct-inttypes.h.
References octave_int< T >::value(), and x.
|
inline |
Definition at line 68 of file oct-inttypes.h.
References x.
Referenced by octave_int_arith_base< T, true >::div(), and octave_int_arith_base< T, is_signed >::mul_internal().
|
inline |
Definition at line 1254 of file oct-inttypes.h.
bool operator!= | ( | const float & | x, |
const octave_int< T > & | y | ||
) |
Definition at line 1302 of file oct-inttypes.h.
|
inline |
Definition at line 1254 of file oct-inttypes.h.
|
inline |
Definition at line 1302 of file oct-inttypes.h.
|
inline |
Definition at line 994 of file oct-inttypes.h.
octave_int<T> operator& | ( | const octave_int< T > & | x, |
const octave_int< T > & | y | ||
) |
Definition at line 1072 of file oct-inttypes.h.
octave_int64 operator* | ( | const double & | x, |
const octave_int64 & | y | ||
) |
Definition at line 674 of file oct-inttypes.cc.
References x.
octave_uint64 operator* | ( | const double & | x, |
const octave_uint64 & | y | ||
) |
Definition at line 635 of file oct-inttypes.cc.
References x.
|
inline |
Definition at line 1226 of file oct-inttypes.h.
octave_int64 operator* | ( | const octave_int64 & | x, |
const double & | y | ||
) |
Definition at line 642 of file oct-inttypes.cc.
References fix(), isinf(), isnan(), octave_int< T >::max(), and x.
|
inline |
Definition at line 1226 of file oct-inttypes.h.
|
inline |
Definition at line 1277 of file oct-inttypes.h.
|
inline |
Definition at line 1345 of file oct-inttypes.h.
octave_uint64 operator* | ( | const octave_uint64 & | x, |
const double & | y | ||
) |
Definition at line 604 of file oct-inttypes.cc.
References fix(), isinf(), isnan(), octave_int< T >::max(), and x.
|
inline |
Definition at line 1277 of file oct-inttypes.h.
|
inline |
Definition at line 1345 of file oct-inttypes.h.
octave_int64 operator+ | ( | const double & | x, |
const octave_int64 & | y | ||
) |
Definition at line 494 of file oct-inttypes.cc.
References x.
octave_uint64 operator+ | ( | const double & | x, |
const octave_uint64 & | y | ||
) |
Definition at line 464 of file oct-inttypes.cc.
References x.
|
inline |
Definition at line 1224 of file oct-inttypes.h.
octave_int64 operator+ | ( | const octave_int64 & | x, |
const double & | y | ||
) |
Definition at line 471 of file oct-inttypes.cc.
References octave_int< T >::max(), and x.
|
inline |
Definition at line 1224 of file oct-inttypes.h.
|
inline |
Definition at line 1275 of file oct-inttypes.h.
|
inline |
Definition at line 1343 of file oct-inttypes.h.
octave_uint64 operator+ | ( | const octave_uint64 & | x, |
const double & | y | ||
) |
Definition at line 457 of file oct-inttypes.cc.
References x.
|
inline |
Definition at line 1275 of file oct-inttypes.h.
|
inline |
Definition at line 1343 of file oct-inttypes.h.
octave_int64 operator- | ( | const double & | x, |
const octave_int64 & | y | ||
) |
Definition at line 539 of file oct-inttypes.cc.
References max(), min(), pow(), octave_int< T >::value(), and x.
octave_uint64 operator- | ( | const double & | x, |
const octave_uint64 & | y | ||
) |
Definition at line 508 of file oct-inttypes.cc.
References octave_int< T >::bool_value(), octave_int< T >::max(), pow(), octave_int< T >::value(), and x.
|
inline |
Definition at line 1225 of file oct-inttypes.h.
octave_int64 operator- | ( | const octave_int64 & | x, |
const double & | y | ||
) |
Definition at line 532 of file oct-inttypes.cc.
References x.
|
inline |
Definition at line 1225 of file oct-inttypes.h.
|
inline |
Definition at line 1276 of file oct-inttypes.h.
|
inline |
Definition at line 1344 of file oct-inttypes.h.
octave_uint64 operator- | ( | const octave_uint64 & | x, |
const double & | y | ||
) |
Definition at line 501 of file oct-inttypes.cc.
References x.
|
inline |
Definition at line 1276 of file oct-inttypes.h.
|
inline |
Definition at line 1344 of file oct-inttypes.h.
octave_int64 operator/ | ( | const double & | x, |
const octave_int64 & | y | ||
) |
Definition at line 688 of file oct-inttypes.cc.
References x.
octave_uint64 operator/ | ( | const double & | x, |
const octave_uint64 & | y | ||
) |
Definition at line 681 of file oct-inttypes.cc.
References x.
|
inline |
Definition at line 1227 of file oct-inttypes.h.
octave_int64 operator/ | ( | const octave_int64 & | x, |
const double & | y | ||
) |
Definition at line 708 of file oct-inttypes.cc.
References fix(), octave_int< T >::max(), and x.
|
inline |
Definition at line 1227 of file oct-inttypes.h.
|
inline |
Definition at line 1278 of file oct-inttypes.h.
|
inline |
Definition at line 1346 of file oct-inttypes.h.
octave_uint64 operator/ | ( | const octave_uint64 & | x, |
const double & | y | ||
) |
Definition at line 695 of file oct-inttypes.cc.
References fix(), octave_int< T >::max(), and x.
|
inline |
Definition at line 1278 of file oct-inttypes.h.
|
inline |
Definition at line 1346 of file oct-inttypes.h.
|
inline |
Definition at line 1249 of file oct-inttypes.h.
bool operator< | ( | const float & | x, |
const octave_int< T > & | y | ||
) |
Definition at line 1297 of file oct-inttypes.h.
|
inline |
Definition at line 1249 of file oct-inttypes.h.
|
inline |
Definition at line 1297 of file oct-inttypes.h.
|
inline |
Definition at line 989 of file oct-inttypes.h.
|
inline |
Definition at line 1023 of file oct-inttypes.h.
References octave_int< T >::value().
|
inline |
Definition at line 999 of file oct-inttypes.h.
References octave_int< T >::value().
|
inline |
Definition at line 1032 of file oct-inttypes.h.
References octave_int< T >::value().
|
inline |
Definition at line 1250 of file oct-inttypes.h.
bool operator<= | ( | const float & | x, |
const octave_int< T > & | y | ||
) |
Definition at line 1298 of file oct-inttypes.h.
|
inline |
Definition at line 1250 of file oct-inttypes.h.
|
inline |
Definition at line 1298 of file oct-inttypes.h.
|
inline |
Definition at line 990 of file oct-inttypes.h.
|
inline |
Definition at line 1253 of file oct-inttypes.h.
bool operator== | ( | const float & | x, |
const octave_int< T > & | y | ||
) |
Definition at line 1301 of file oct-inttypes.h.
|
inline |
Definition at line 1253 of file oct-inttypes.h.
|
inline |
Definition at line 1301 of file oct-inttypes.h.
|
inline |
Definition at line 993 of file oct-inttypes.h.
|
inline |
Definition at line 1252 of file oct-inttypes.h.
bool operator> | ( | const float & | x, |
const octave_int< T > & | y | ||
) |
Definition at line 1300 of file oct-inttypes.h.
|
inline |
Definition at line 1252 of file oct-inttypes.h.
|
inline |
Definition at line 1300 of file oct-inttypes.h.
|
inline |
Definition at line 991 of file oct-inttypes.h.
|
inline |
Definition at line 1251 of file oct-inttypes.h.
bool operator>= | ( | const float & | x, |
const octave_int< T > & | y | ||
) |
Definition at line 1299 of file oct-inttypes.h.
|
inline |
Definition at line 1251 of file oct-inttypes.h.
|
inline |
Definition at line 1299 of file oct-inttypes.h.
|
inline |
Definition at line 992 of file oct-inttypes.h.
|
inline |
Definition at line 1042 of file oct-inttypes.h.
|
inline |
Definition at line 1008 of file oct-inttypes.h.
|
inline |
Definition at line 1053 of file oct-inttypes.h.
octave_int<T> operator^ | ( | const octave_int< T > & | x, |
const octave_int< T > & | y | ||
) |
Definition at line 1074 of file oct-inttypes.h.
octave_int<T> operator| | ( | const octave_int< T > & | x, |
const octave_int< T > & | y | ||
) |
Definition at line 1073 of file oct-inttypes.h.
octave_int<T> pow | ( | const double & | a, |
const octave_int< T > & | b | ||
) |
Definition at line 782 of file oct-inttypes.cc.
References octave_int< T >::double_value(), and pow().
octave_int<T> pow | ( | const float & | a, |
const octave_int< T > & | b | ||
) |
Definition at line 797 of file oct-inttypes.cc.
References octave_int< T >::float_value(), and pow().
octave_int<T> pow | ( | const octave_int< T > & | a, |
const octave_int< T > & | b | ||
) |
Definition at line 740 of file oct-inttypes.cc.
References octave_int< T >::value().
Referenced by elem_dual_p(), elem_xpow(), eps(), DASPK_options::init(), install_cm_cs_ops(), install_cm_m_ops(), install_cm_s_ops(), install_cm_scm_ops(), install_cm_sm_ops(), install_cs_cm_ops(), install_cs_m_ops(), install_cs_s_ops(), install_cs_scm_ops(), install_cs_sm_ops(), install_fcm_fcs_ops(), install_fcm_fm_ops(), install_fcm_fs_ops(), install_fcs_fcm_ops(), install_fcs_fm_ops(), install_fcs_fs_ops(), install_fm_fcm_ops(), install_fm_fcs_ops(), install_fm_fs_ops(), install_fs_fcm_ops(), install_fs_fcs_ops(), install_fs_fm_ops(), install_m_cm_ops(), install_m_cs_ops(), install_m_s_ops(), install_m_scm_ops(), install_m_sm_ops(), install_s_cm_ops(), install_s_cs_ops(), install_s_m_ops(), install_s_scm_ops(), install_s_sm_ops(), install_scm_cm_ops(), install_scm_cs_ops(), install_scm_m_ops(), install_scm_s_ops(), install_scm_sm_ops(), install_sm_cm_ops(), install_sm_cs_ops(), install_sm_m_ops(), install_sm_s_ops(), install_sm_scm_ops(), pr_engineering_float< T >::mantissa(), mx_inline_pow(), operator-(), pow(), powf(), log_scaler::unscale(), neg_log_scaler::unscale(), xpow(), and xpsi().
octave_int<T> pow | ( | const octave_int< T > & | a, |
const double & | b | ||
) |
Definition at line 787 of file oct-inttypes.cc.
References octave_int< T >::double_value(), fix(), and pow().
octave_int<T> pow | ( | const octave_int< T > & | a, |
const float & | b | ||
) |
Definition at line 802 of file oct-inttypes.cc.
References octave_int< T >::double_value(), fix(), and pow().
octave_int<T> powf | ( | const float & | a, |
const octave_int< T > & | b | ||
) |
Definition at line 815 of file oct-inttypes.cc.
References octave_int< T >::float_value(), and pow().
octave_int<T> powf | ( | const octave_int< T > & | a, |
const float & | b | ||
) |
Definition at line 820 of file oct-inttypes.cc.
References octave_int< T >::double_value(), fix(), and pow().
|
inline |
Definition at line 917 of file oct-inttypes.h.
References octave_int< T >::value(), and x.
octave_int<T> xmax | ( | const octave_int< T > & | x, |
const octave_int< T > & | y | ||
) |
Definition at line 1308 of file oct-inttypes.h.
References octave_int< T >::value(), and x.
Referenced by alngam(), d9lgmc(), dgamma(), dlngam(), gamlim(), gamma(), axes::properties::get_axis_limits(), max(), onecov(), r9lgmc(), and tstall().
octave_int<T> xmin | ( | const octave_int< T > & | x, |
const octave_int< T > & | y | ||
) |
Definition at line 1318 of file oct-inttypes.h.
References octave_int< T >::value(), and x.
Referenced by alnrel(), dgamma(), dlnrel(), F__glpk__(), gamlim(), gamma(), axes::properties::get_axis_limits(), min(), onecov(), and tstall().