GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include <cstdlib>
#include <limits>
#include <iosfwd>
#include "lo-traits.h"
#include "lo-math.h"
#include "lo-mappers.h"
Go to the source code of this file.
Macros | |
#define | DEFINE_LONG_DOUBLE_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_UN_OP(OPNAME, NAME) |
#define | REGISTER_INT_TYPE(TYPE) |
#define | REGISTER_OCTAVE_CMP_OP(NM, OP) |
#define | REGISTER_OCTAVE_CONST_OP(NM, value) |
Typedefs | |
typedef octave_int< int16_t > | octave_int16 |
typedef octave_int< int32_t > | octave_int32 |
typedef octave_int< int64_t > | octave_int64 |
typedef octave_int< int8_t > | octave_int8 |
typedef octave_int< uint16_t > | octave_uint16 |
typedef octave_int< uint32_t > | octave_uint32 |
typedef octave_int< uint64_t > | octave_uint64 |
typedef octave_int< uint8_t > | octave_uint8 |
Functions | |
template<class T > | |
octave_int< T > | bitshift (const octave_int< T > &a, int n, const octave_int< T > &mask=std::numeric_limits< T >::max()) |
template<class T > | |
octave_int< T > | mod (const octave_int< T > &x, const octave_int< T > &y) |
template<class T > | |
T | octave_int_abs (T x) |
template<class T1 , class T2 > | |
bool | operator!= (const octave_int< T1 > &x, const octave_int< T2 > &y) |
template<class T > | |
bool | operator!= (const octave_int< T > &x, const double &y) |
template<class T > | |
bool | operator!= (const double &x, const octave_int< T > &y) |
template<class T > | |
bool | operator!= (const octave_int< T > &x, const float &y) |
template<class T > | |
bool | operator!= (const float &x, const octave_int< T > &y) |
template<class T > | |
octave_int< T > | operator& (const octave_int< T > &x, const octave_int< T > &y) |
template<> | |
OCTAVE_API octave_int64 | operator* (const double &, const octave_int64 &) |
template<class T > | |
octave_int< T > | operator* (const octave_int< T > &x, const double &y) |
template<class T > | |
octave_int< T > | operator* (const double &x, const octave_int< T > &y) |
template<> | |
OCTAVE_API octave_int64 | operator* (const octave_int64 &, const double &) |
template<class T > | |
octave_int< T > | operator* (const octave_int< T > &x, float y) |
template<class T > | |
octave_int< T > | operator* (float x, const octave_int< T > &y) |
template<class T > | |
octave_int< T > | operator+ (const octave_int< T > &x, const double &y) |
template<class T > | |
octave_int< T > | operator+ (const double &x, const octave_int< T > &y) |
template<> | |
OCTAVE_API octave_int64 | operator+ (const double &, const octave_int64 &) |
template<> | |
OCTAVE_API octave_int64 | operator+ (const octave_int64 &, const double &) |
template<class T > | |
octave_int< T > | operator+ (const octave_int< T > &x, float y) |
template<class T > | |
octave_int< T > | operator+ (float x, const octave_int< T > &y) |
template<class T > | |
octave_int< T > | operator- (const octave_int< T > &x, const double &y) |
template<class T > | |
octave_int< T > | operator- (const double &x, const octave_int< T > &y) |
template<> | |
OCTAVE_API octave_int64 | operator- (const double &, const octave_int64 &) |
template<> | |
OCTAVE_API octave_int64 | operator- (const octave_int64 &, const double &) |
template<class T > | |
octave_int< T > | operator- (const octave_int< T > &x, float y) |
template<class T > | |
octave_int< T > | operator- (float x, const octave_int< T > &y) |
template<class T > | |
octave_int< T > | operator/ (const octave_int< T > &x, const double &y) |
template<class T > | |
octave_int< T > | operator/ (const double &x, const octave_int< T > &y) |
template<> | |
OCTAVE_API octave_int64 | operator/ (const double &, const octave_int64 &) |
template<> | |
OCTAVE_API octave_int64 | operator/ (const octave_int64 &, const double &) |
template<class T > | |
octave_int< T > | operator/ (float x, const octave_int< T > &y) |
template<class T > | |
octave_int< T > | operator/ (const octave_int< T > &x, float y) |
template<class T1 , class T2 > | |
bool | operator< (const octave_int< T1 > &x, const octave_int< T2 > &y) |
template<class T > | |
bool | operator< (const octave_int< T > &x, const double &y) |
template<class T > | |
bool | operator< (const double &x, const octave_int< T > &y) |
template<class T > | |
bool | operator< (const float &x, const octave_int< T > &y) |
template<class T > | |
bool | operator< (const octave_int< T > &x, const float &y) |
template<class T > | |
std::ostream & | operator<< (std::ostream &os, const octave_int< T > &ival) |
template<class T1 , class T2 > | |
bool | operator<= (const octave_int< T1 > &x, const octave_int< T2 > &y) |
template<class T > | |
bool | operator<= (const octave_int< T > &x, const double &y) |
template<class T > | |
bool | operator<= (const double &x, const octave_int< T > &y) |
template<class T > | |
bool | operator<= (const float &x, const octave_int< T > &y) |
template<class T > | |
bool | operator<= (const octave_int< T > &x, const float &y) |
template<class T1 , class T2 > | |
bool | operator== (const octave_int< T1 > &x, const octave_int< T2 > &y) |
template<class T > | |
bool | operator== (const octave_int< T > &x, const double &y) |
template<class T > | |
bool | operator== (const double &x, const octave_int< T > &y) |
template<class T > | |
bool | operator== (const octave_int< T > &x, const float &y) |
template<class T > | |
bool | operator== (const float &x, const octave_int< T > &y) |
template<class T1 , class T2 > | |
bool | operator> (const octave_int< T1 > &x, const octave_int< T2 > &y) |
template<class T > | |
bool | operator> (const octave_int< T > &x, const double &y) |
template<class T > | |
bool | operator> (const double &x, const octave_int< T > &y) |
template<class T > | |
bool | operator> (const octave_int< T > &x, const float &y) |
template<class T > | |
bool | operator> (const float &x, const octave_int< T > &y) |
template<class T1 , class T2 > | |
bool | operator>= (const octave_int< T1 > &x, const octave_int< T2 > &y) |
template<class T > | |
bool | operator>= (const double &x, const octave_int< T > &y) |
template<class T > | |
bool | operator>= (const octave_int< T > &x, const double &y) |
template<class T > | |
bool | operator>= (const octave_int< T > &x, const float &y) |
template<class T > | |
bool | operator>= (const float &x, const octave_int< T > &y) |
template<class T > | |
std::istream & | operator>> (std::istream &is, octave_int< T > &ival) |
template<class T > | |
octave_int< T > | operator^ (const octave_int< T > &x, const octave_int< T > &y) |
template<class T > | |
octave_int< T > | operator| (const octave_int< T > &x, const octave_int< T > &y) |
template<class T > | |
OCTAVE_API octave_int< T > | pow (const octave_int< T > &, const octave_int< T > &) |
template<class T > | |
OCTAVE_API octave_int< T > | pow (const double &a, const octave_int< T > &b) |
template<class T > | |
OCTAVE_API octave_int< T > | pow (const octave_int< T > &a, const double &b) |
template<class T > | |
OCTAVE_API octave_int< T > | pow (const float &a, const octave_int< T > &b) |
template<class T > | |
OCTAVE_API octave_int< T > | pow (const octave_int< T > &a, const float &b) |
template<class T > | |
OCTAVE_API octave_int< T > | powf (const float &a, const octave_int< T > &b) |
template<class T > | |
OCTAVE_API octave_int< T > | powf (const octave_int< T > &a, const float &b) |
template<class T > | |
octave_int< T > | rem (const octave_int< T > &x, const octave_int< T > &y) |
template<class T > | |
bool | xisnan (const octave_int< T > &) |
template<class T > | |
octave_int< T > | xmax (const octave_int< T > &x, const octave_int< T > &y) |
template<class T > | |
octave_int< T > | xmin (const octave_int< T > &x, const octave_int< T > &y) |
#define DEFINE_LONG_DOUBLE_CMP_OP | ( | T | ) |
Definition at line 229 of file oct-inttypes.h.
#define OCTAVE_INT_BIN_OP | ( | OP, | |
NAME, | |||
ARGT | |||
) |
Definition at line 898 of file oct-inttypes.h.
#define OCTAVE_INT_BITCMP_OP | ( | OP | ) |
Definition at line 1028 of file oct-inttypes.h.
#define OCTAVE_INT_CMP_OP | ( | OP, | |
NAME | |||
) |
Definition at line 992 of file oct-inttypes.h.
#define OCTAVE_INT_DOUBLE_BIN_OP | ( | OP, | |
NAME | |||
) |
Definition at line 1152 of file oct-inttypes.h.
#define OCTAVE_INT_DOUBLE_BIN_OP0 | ( | OP | ) |
Definition at line 1083 of file oct-inttypes.h.
#define OCTAVE_INT_DOUBLE_CMP_OP | ( | OP, | |
NAME | |||
) |
Definition at line 1179 of file oct-inttypes.h.
#define OCTAVE_INT_FLOAT_BIN_OP | ( | OP | ) |
Definition at line 1200 of file oct-inttypes.h.
#define OCTAVE_INT_FLOAT_CMP_OP | ( | OP | ) |
Definition at line 1217 of file oct-inttypes.h.
#define OCTAVE_INT_UN_OP | ( | OPNAME, | |
NAME | |||
) |
Definition at line 886 of file oct-inttypes.h.
#define REGISTER_INT_TYPE | ( | TYPE | ) |
Definition at line 58 of file oct-inttypes.h.
#define REGISTER_OCTAVE_CMP_OP | ( | NM, | |
OP | |||
) |
Definition at line 80 of file oct-inttypes.h.
#define REGISTER_OCTAVE_CONST_OP | ( | NM, | |
value | |||
) |
Definition at line 91 of file oct-inttypes.h.
typedef octave_int<int16_t> octave_int16 |
Definition at line 1055 of file oct-inttypes.h.
typedef octave_int<int32_t> octave_int32 |
Definition at line 1056 of file oct-inttypes.h.
typedef octave_int<int64_t> octave_int64 |
Definition at line 1057 of file oct-inttypes.h.
typedef octave_int<int8_t> octave_int8 |
Definition at line 1054 of file oct-inttypes.h.
typedef octave_int<uint16_t> octave_uint16 |
Definition at line 1060 of file oct-inttypes.h.
typedef octave_int<uint32_t> octave_uint32 |
Definition at line 1061 of file oct-inttypes.h.
typedef octave_int<uint64_t> octave_uint64 |
Definition at line 1062 of file oct-inttypes.h.
typedef octave_int<uint8_t> octave_uint8 |
Definition at line 1059 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 1043 of file oct-inttypes.h.
|
inline |
Definition at line 947 of file oct-inttypes.h.
References octave_int< T >::value().
Referenced by algams(), cacai(), cacon(), casyi(), cbesh(), cbesi(), cbesj(), cuni2(), cunk1(), cunk2(), dlgams(), ignuin(), install_data_fcns(), phrtsd(), zacai(), zacon(), zasyi(), zbesh(), zbesi(), zbesj(), zuni2(), zunk1(), and zunk2().
|
inline |
Definition at line 46 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 1004 of file oct-inttypes.h.
|
inline |
Definition at line 1194 of file oct-inttypes.h.
|
inline |
Definition at line 1194 of file oct-inttypes.h.
|
inline |
Definition at line 1232 of file oct-inttypes.h.
bool operator!= | ( | const float & | x, |
const octave_int< T > & | y | ||
) |
Definition at line 1232 of file oct-inttypes.h.
octave_int<T> operator& | ( | const octave_int< T > & | x, |
const octave_int< T > & | y | ||
) |
Definition at line 1034 of file oct-inttypes.h.
OCTAVE_API octave_int64 operator* | ( | const double & | , |
const octave_int64 & | |||
) |
Definition at line 564 of file oct-inttypes.cc.
References x.
|
inline |
Definition at line 1171 of file oct-inttypes.h.
|
inline |
Definition at line 1171 of file oct-inttypes.h.
OCTAVE_API octave_int64 operator* | ( | const octave_int64 & | , |
const double & | |||
) |
Definition at line 532 of file oct-inttypes.cc.
References dbleget(), dblesplit(), octave_int< T >::max(), umul128(), Faddeeva::w(), x, xisinf(), xisnan(), xround(), and octave_int< T >::zero.
|
inline |
Definition at line 1212 of file oct-inttypes.h.
|
inline |
Definition at line 1212 of file oct-inttypes.h.
|
inline |
Definition at line 1169 of file oct-inttypes.h.
|
inline |
Definition at line 1169 of file oct-inttypes.h.
OCTAVE_API octave_int64 operator+ | ( | const double & | , |
const octave_int64 & | |||
) |
Definition at line 413 of file oct-inttypes.cc.
References x.
OCTAVE_API octave_int64 operator+ | ( | const octave_int64 & | , |
const double & | |||
) |
Definition at line 408 of file oct-inttypes.cc.
References x.
|
inline |
Definition at line 1210 of file oct-inttypes.h.
|
inline |
Definition at line 1210 of file oct-inttypes.h.
|
inline |
Definition at line 1170 of file oct-inttypes.h.
|
inline |
Definition at line 1170 of file oct-inttypes.h.
OCTAVE_API octave_int64 operator- | ( | const double & | , |
const octave_int64 & | |||
) |
Definition at line 445 of file oct-inttypes.cc.
References octave_int< T >::max(), pow(), and x.
OCTAVE_API octave_int64 operator- | ( | const octave_int64 & | , |
const double & | |||
) |
Definition at line 440 of file oct-inttypes.cc.
References x.
|
inline |
Definition at line 1211 of file oct-inttypes.h.
|
inline |
Definition at line 1211 of file oct-inttypes.h.
|
inline |
Definition at line 1172 of file oct-inttypes.h.
|
inline |
Definition at line 1172 of file oct-inttypes.h.
OCTAVE_API octave_int64 operator/ | ( | const double & | , |
const octave_int64 & | |||
) |
Definition at line 603 of file oct-inttypes.cc.
References x.
OCTAVE_API octave_int64 operator/ | ( | const octave_int64 & | , |
const double & | |||
) |
Definition at line 613 of file oct-inttypes.cc.
References octave_int< T >::max(), x, and xround().
|
inline |
Definition at line 1213 of file oct-inttypes.h.
|
inline |
Definition at line 1213 of file oct-inttypes.h.
|
inline |
Definition at line 999 of file oct-inttypes.h.
|
inline |
Definition at line 1189 of file oct-inttypes.h.
|
inline |
Definition at line 1189 of file oct-inttypes.h.
bool operator< | ( | const float & | x, |
const octave_int< T > & | y | ||
) |
Definition at line 1227 of file oct-inttypes.h.
|
inline |
Definition at line 1227 of file oct-inttypes.h.
|
inline |
Definition at line 1010 of file oct-inttypes.h.
|
inline |
Definition at line 1000 of file oct-inttypes.h.
|
inline |
Definition at line 1190 of file oct-inttypes.h.
|
inline |
Definition at line 1190 of file oct-inttypes.h.
bool operator<= | ( | const float & | x, |
const octave_int< T > & | y | ||
) |
Definition at line 1228 of file oct-inttypes.h.
|
inline |
Definition at line 1228 of file oct-inttypes.h.
|
inline |
Definition at line 1003 of file oct-inttypes.h.
|
inline |
Definition at line 1193 of file oct-inttypes.h.
|
inline |
Definition at line 1193 of file oct-inttypes.h.
|
inline |
Definition at line 1231 of file oct-inttypes.h.
bool operator== | ( | const float & | x, |
const octave_int< T > & | y | ||
) |
Definition at line 1231 of file oct-inttypes.h.
|
inline |
Definition at line 1001 of file oct-inttypes.h.
|
inline |
Definition at line 1192 of file oct-inttypes.h.
|
inline |
Definition at line 1192 of file oct-inttypes.h.
|
inline |
Definition at line 1230 of file oct-inttypes.h.
bool operator> | ( | const float & | x, |
const octave_int< T > & | y | ||
) |
Definition at line 1230 of file oct-inttypes.h.
|
inline |
Definition at line 1002 of file oct-inttypes.h.
|
inline |
Definition at line 1191 of file oct-inttypes.h.
|
inline |
Definition at line 1191 of file oct-inttypes.h.
|
inline |
Definition at line 1229 of file oct-inttypes.h.
bool operator>= | ( | const float & | x, |
const octave_int< T > & | y | ||
) |
Definition at line 1229 of file oct-inttypes.h.
|
inline |
Definition at line 1018 of file oct-inttypes.h.
octave_int<T> operator^ | ( | const octave_int< T > & | x, |
const octave_int< T > & | y | ||
) |
Definition at line 1036 of file oct-inttypes.h.
octave_int<T> operator| | ( | const octave_int< T > & | x, |
const octave_int< T > & | y | ||
) |
Definition at line 1035 of file oct-inttypes.h.
OCTAVE_API octave_int<T> pow | ( | const octave_int< T > & | , |
const octave_int< T > & | |||
) |
Definition at line 661 of file oct-inttypes.cc.
References octave_int< T >::value().
Referenced by norm_accumulator_p< R >::accum(), norm_accumulator_mp< R >::accum(), betaincinv(), axes::properties::calc_tick_sep(), axes::properties::calc_ticklabels(), axes::properties::calc_ticks_and_lims(), cbrt(), cbrtf(), do_translate(), do_zoom(), elem_dual_p(), elem_xpow(), Feps(), axes::properties::get_axis_limits(), higham_subp(), DASPK_options::init(), install_cm_cm_ops(), 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_cs_ops(), install_cs_m_ops(), install_cs_s_ops(), install_cs_scm_ops(), install_cs_sm_ops(), install_fcm_fcm_ops(), install_fcm_fcs_ops(), install_fcm_fm_ops(), install_fcm_fs_ops(), install_fcs_fcm_ops(), install_fcs_fcs_ops(), install_fcs_fm_ops(), install_fcs_fs_ops(), install_fm_fcm_ops(), install_fm_fcs_ops(), install_fm_fm_ops(), install_fm_fs_ops(), install_fs_fcm_ops(), install_fs_fcs_ops(), install_fs_fm_ops(), install_fs_fs_ops(), install_m_cm_ops(), install_m_cs_ops(), install_m_m_ops(), install_m_s_ops(), install_m_scm_ops(), install_m_sm_ops(), install_pm_pm_ops(), install_s_cm_ops(), install_s_cs_ops(), install_s_m_ops(), install_s_s_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_scm_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(), install_sm_sm_ops(), magform(), pr_engineering_float::mantissa(), octave_jit_pow_complex_complex(), octave_jit_pow_complex_scalar(), octave_jit_pow_scalar_complex(), octave_jit_pow_scalar_scalar(), norm_accumulator_p< R >::operator R(), norm_accumulator_mp< R >::operator R(), operator-(), pow(), powf(), set_format(), log_scaler::unscale(), neg_log_scaler::unscale(), and xpow().
OCTAVE_API octave_int<T> pow | ( | const double & | a, |
const octave_int< T > & | b | ||
) |
Definition at line 703 of file oct-inttypes.cc.
References octave_int< T >::double_value(), and pow().
OCTAVE_API octave_int<T> pow | ( | const octave_int< T > & | a, |
const double & | b | ||
) |
Definition at line 708 of file oct-inttypes.cc.
References octave_int< T >::double_value(), pow(), and xround().
OCTAVE_API octave_int<T> pow | ( | const float & | a, |
const octave_int< T > & | b | ||
) |
Definition at line 717 of file oct-inttypes.cc.
References octave_int< T >::float_value(), and pow().
OCTAVE_API octave_int<T> pow | ( | const octave_int< T > & | a, |
const float & | b | ||
) |
Definition at line 722 of file oct-inttypes.cc.
References octave_int< T >::double_value(), pow(), and xround().
OCTAVE_API octave_int<T> powf | ( | const float & | a, |
const octave_int< T > & | b | ||
) |
Definition at line 734 of file oct-inttypes.cc.
References octave_int< T >::float_value(), and pow().
Referenced by Feps().
OCTAVE_API octave_int<T> powf | ( | const octave_int< T > & | a, |
const float & | b | ||
) |
Definition at line 739 of file oct-inttypes.cc.
References octave_int< T >::double_value(), pow(), and xround().
|
inline |
Definition at line 942 of file oct-inttypes.h.
References octave_int< T >::value().
Referenced by install_data_fcns(), and octave_time::octave_time().
|
inline |
Definition at line 954 of file oct-inttypes.h.
octave_int<T> xmax | ( | const octave_int< T > & | x, |
const octave_int< T > & | y | ||
) |
Definition at line 1238 of file oct-inttypes.h.
References octave_int< T >::value().
octave_int<T> xmin | ( | const octave_int< T > & | x, |
const octave_int< T > & | y | ||
) |
Definition at line 1246 of file oct-inttypes.h.
References octave_int< T >::value().