GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
oct-inttypes.h File Reference
#include "octave-config.h"
#include <cmath>
#include <cstdlib>
#include <iosfwd>
#include <limits>
#include "lo-mappers.h"
#include "lo-traits.h"
Include dependency graph for oct-inttypes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  octave_int_cmp_op::cf
 
class  octave_int_cmp_op::ct
 
class  octave_int_cmp_op::eq
 
class  octave_int_cmp_op::ge
 
class  octave_int_cmp_op::gt
 
class  octave_int_cmp_op::le
 
class  octave_int_cmp_op::lt
 
class  octave_int_cmp_op::ne
 
class  octave_int< T >
 
class  octave_int< T >
 
class  octave_int_arith< T >
 
class  octave_int_arith_base< T, is_signed >
 
class  octave_int_arith_base< T, false >
 
class  octave_int_arith_base< T, true >
 
class  octave_int_base< T >
 
class  octave_int_cmp_op
 
class  octave_int_cmp_op::prom< T1, T2 >
 
struct  query_integer_type< qsize, qsigned >
 
class  query_integer_type< sizeof(int16_t), std::numeric_limits< int16_t >::is_signed >
 
class  query_integer_type< sizeof(int32_t), std::numeric_limits< int32_t >::is_signed >
 
class  query_integer_type< sizeof(int64_t), std::numeric_limits< int64_t >::is_signed >
 
class  query_integer_type< sizeof(int8_t), std::numeric_limits< int8_t >::is_signed >
 
class  query_integer_type< sizeof(uint16_t), std::numeric_limits< uint16_t >::is_signed >
 
class  query_integer_type< sizeof(uint32_t), std::numeric_limits< uint32_t >::is_signed >
 
class  query_integer_type< sizeof(uint64_t), std::numeric_limits< uint64_t >::is_signed >
 
class  query_integer_type< sizeof(uint8_t), std::numeric_limits< uint8_t >::is_signed >
 
class  octave_int_cmp_op::uiop< xop, size >
 

Namespaces

 octave
 
 octave::math
 

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<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 octave::math::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 >
octave_int_abs (T x)
 
template<typename T1 , typename T2 >
bool operator!= (const octave_int< T1 > &x, const octave_int< T2 > &y)
 
template<typename T >
bool operator!= (const octave_int< T > &x, const double &y)
 
template<typename T >
bool operator!= (const double &x, const octave_int< T > &y)
 
template<typename T >
bool operator!= (const octave_int< T > &x, const float &y)
 
template<typename T >
bool operator!= (const float &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 > operator* (const octave_int< T > &x, const double &y)
 
template<typename 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_uint64 operator* (const double &, const octave_uint64 &)
 
template<>
OCTAVE_API octave_int64 operator* (const octave_int64 &, const double &)
 
template<>
OCTAVE_API octave_uint64 operator* (const octave_uint64 &, const double &)
 
template<typename T >
octave_int< T > operator* (const octave_int< T > &x, float y)
 
template<typename T >
octave_int< T > operator* (float x, const octave_int< T > &y)
 
template<>
OCTAVE_API octave_uint64 operator+ (const octave_uint64 &, const double &)
 
template<>
OCTAVE_API octave_int64 operator+ (const octave_int64 &, const double &)
 
template<typename T >
octave_int< T > operator+ (const double &x, const octave_int< T > &y)
 
template<typename T >
octave_int< T > operator+ (const octave_int< T > &x, const double &y)
 
template<>
OCTAVE_API octave_uint64 operator+ (const double &, const octave_uint64 &)
 
template<>
OCTAVE_API octave_int64 operator+ (const double &, const octave_int64 &)
 
template<typename T >
octave_int< T > operator+ (const octave_int< T > &x, float y)
 
template<typename T >
octave_int< T > operator+ (float x, const octave_int< T > &y)
 
template<typename T >
octave_int< T > operator- (const octave_int< T > &x, const double &y)
 
template<typename 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_uint64 operator- (const double &, const octave_uint64 &)
 
template<>
OCTAVE_API octave_int64 operator- (const octave_int64 &, const double &)
 
template<>
OCTAVE_API octave_uint64 operator- (const octave_uint64 &, const double &)
 
template<typename T >
octave_int< T > operator- (const octave_int< T > &x, float y)
 
template<typename T >
octave_int< T > operator- (float x, const octave_int< T > &y)
 
template<typename T >
octave_int< T > operator/ (const octave_int< T > &x, const double &y)
 
template<typename 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_uint64 operator/ (const double &, const octave_uint64 &)
 
template<>
OCTAVE_API octave_int64 operator/ (const octave_int64 &, const double &)
 
template<>
OCTAVE_API 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/ (const octave_int< T > &x, 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 octave_int< T > &x, const double &y)
 
template<typename T >
bool operator< (const double &x, const octave_int< T > &y)
 
template<typename T >
bool operator< (const octave_int< T > &x, const float &y)
 
template<typename T >
bool operator< (const float &x, const octave_int< T > &y)
 
template<typename T >
std::ostream & operator<< (std::ostream &os, const octave_int< T > &ival)
 
template<>
std::ostream & operator<< (std::ostream &os, const octave_int< int8_t > &ival)
 
template<>
std::ostream & operator<< (std::ostream &os, const octave_int< uint8_t > &ival)
 
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 octave_int< T > &x, const double &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 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 octave_int< T > &x, const double &y)
 
template<typename T >
bool operator== (const octave_int< T > &x, const float &y)
 
template<typename T >
bool operator== (const float &x, const octave_int< T > &y)
 
template<typename T1 , typename T2 >
bool operator> (const octave_int< T1 > &x, const octave_int< T2 > &y)
 
template<typename T >
bool operator> (const octave_int< T > &x, const double &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 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 octave_int< T > &x, const double &y)
 
template<typename T >
bool operator>= (const octave_int< T > &x, const float &y)
 
template<typename T >
bool operator>= (const float &x, const octave_int< T > &y)
 
template<typename T >
std::istream & operator>> (std::istream &is, octave_int< T > &ival)
 
template<>
std::istream & operator>> (std::istream &is, octave_int< int8_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_API octave_int< T > pow (const octave_int< T > &, const octave_int< T > &)
 
template<typename T >
OCTAVE_API octave_int< T > pow (const double &a, const octave_int< T > &b)
 
template<typename T >
OCTAVE_API octave_int< T > pow (const octave_int< T > &a, const double &b)
 
template<typename T >
OCTAVE_API octave_int< T > pow (const float &a, const octave_int< T > &b)
 
template<typename T >
OCTAVE_API octave_int< T > pow (const octave_int< T > &a, const float &b)
 
template<typename T >
OCTAVE_API octave_int< T > powf (const float &a, const octave_int< T > &b)
 
template<typename T >
OCTAVE_API 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)
 

Macro Definition Documentation

◆ DEFINE_LONG_DOUBLE_CMP_OP

#define DEFINE_LONG_DOUBLE_CMP_OP (   T)
Value:
template <typename xop> static OCTAVE_API bool \
emulate_mop (double, T); \
template <typename xop> \
static bool \
mop (double x, T y) \
{ \
return emulate_mop<xop> (x, y); \
} \
template <typename xop> static OCTAVE_API bool \
emulate_mop (T, double); \
template <typename xop> \
static bool \
mop (T x, double y) \
{ \
return emulate_mop<xop> (x, y); \
}
the element is set to zero In other the statement xample y
Definition: data.cc:5264
F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T const F77_DBLE * x

Definition at line 264 of file oct-inttypes.h.

◆ OCTAVE_INT_BIN_OP

#define OCTAVE_INT_BIN_OP (   OP,
  NAME,
  ARGT 
)
Value:
inline octave_int<T> \
operator OP (const ARGT& y) const \
{ \
return octave_int_arith<T>::NAME (ival, y); \
} \
inline octave_int<T>& \
operator OP##= (const ARGT& y) \
{ \
ival = octave_int_arith<T>::NAME (ival, y); \
return *this; \
}
the element is set to zero In other the statement xample y
Definition: data.cc:5264

Definition at line 807 of file oct-inttypes.h.

◆ OCTAVE_INT_BITCMP_OP

#define OCTAVE_INT_BITCMP_OP (   OP)
Value:
template <typename T> \
octave_int<T> \
operator OP (const octave_int<T>& x, const octave_int<T>& y) \
{ \
return x.value () OP y.value (); \
}
the element is set to zero In other the statement xample y
Definition: data.cc:5264
F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T const F77_DBLE * x

Definition at line 1006 of file oct-inttypes.h.

◆ OCTAVE_INT_CMP_OP

#define OCTAVE_INT_CMP_OP (   OP,
  NAME 
)
Value:
template <typename T1, typename T2> \
inline bool \
operator OP (const octave_int<T1>& x, const octave_int<T2>& y) \
{ \
return octave_int_cmp_op::op<octave_int_cmp_op::NAME, T1, T2> (x.value (), y.value ()); \
}
the element is set to zero In other the statement xample y
Definition: data.cc:5264
F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T const F77_DBLE * x

Definition at line 927 of file oct-inttypes.h.

◆ OCTAVE_INT_DOUBLE_BIN_OP

#define OCTAVE_INT_DOUBLE_BIN_OP (   OP,
  NAME 
)
Value:
template <> \
OCTAVE_API octave_int64 \
operator OP (const double&, const octave_int64&); \
template <> \
OCTAVE_API octave_uint64 \
operator OP (const double&, const octave_uint64&); \
template <> \
OCTAVE_API octave_int64 \
operator OP (const octave_int64&, const double&); \
template <> \
OCTAVE_API octave_uint64 \
operator OP (const octave_uint64&, const double&);
#define OCTAVE_INT_DOUBLE_BIN_OP0(OP)

Definition at line 1126 of file oct-inttypes.h.

◆ OCTAVE_INT_DOUBLE_BIN_OP0

#define OCTAVE_INT_DOUBLE_BIN_OP0 (   OP)
Value:
template <typename T> \
inline octave_int<T> \
operator OP (const octave_int<T>& x, const double& y) \
{ \
return octave_int<T> (static_cast<double> (x) OP y); \
} \
template <typename T> \
inline octave_int<T> \
operator OP (const double& x, const octave_int<T>& y) \
{ \
return octave_int<T> (x OP static_cast<double> (y)); \
}
the element is set to zero In other the statement xample y
Definition: data.cc:5264
F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T const F77_DBLE * x

Definition at line 1053 of file oct-inttypes.h.

◆ OCTAVE_INT_DOUBLE_CMP_OP

#define OCTAVE_INT_DOUBLE_CMP_OP (   OP,
  NAME 
)
Value:
template <typename T> \
inline bool \
operator OP (const octave_int<T>& x, const double& y) \
{ \
return octave_int_cmp_op::mop<octave_int_cmp_op::NAME> (x.value (), y); \
} \
template <typename T> \
inline bool \
operator OP (const double& x, const octave_int<T>& y) \
{ \
return octave_int_cmp_op::mop<octave_int_cmp_op::NAME> (x, y.value ()); \
}
the element is set to zero In other the statement xample y
Definition: data.cc:5264
F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T const F77_DBLE * x

Definition at line 1153 of file oct-inttypes.h.

◆ OCTAVE_INT_FLOAT_BIN_OP

#define OCTAVE_INT_FLOAT_BIN_OP (   OP)
Value:
template <typename T> \
inline octave_int<T> \
operator OP (const octave_int<T>& x, float y) \
{ \
return x OP static_cast<double> (y); \
} \
template <typename T> \
inline octave_int<T> \
operator OP (float x, const octave_int<T>& y) \
{ \
return static_cast<double> (x) OP y; \
}
the element is set to zero In other the statement xample y
Definition: data.cc:5264
F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T const F77_DBLE * x

Definition at line 1178 of file oct-inttypes.h.

◆ OCTAVE_INT_FLOAT_CMP_OP

#define OCTAVE_INT_FLOAT_CMP_OP (   OP)
Value:
template <typename T> \
inline bool \
operator OP (const octave_int<T>& x, const float& y) \
{ \
return x OP static_cast<double> (y); \
} \
template <typename T> \
bool \
operator OP (const float& x, const octave_int<T>& y) \
{ \
return static_cast<double> (x) OP y; \
}
the element is set to zero In other the statement xample y
Definition: data.cc:5264
F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T const F77_DBLE * x

Definition at line 1199 of file oct-inttypes.h.

◆ OCTAVE_INT_UN_OP

#define OCTAVE_INT_UN_OP (   OPNAME,
  NAME 
)
Value:

Definition at line 793 of file oct-inttypes.h.

◆ REGISTER_INT_TYPE

#define REGISTER_INT_TYPE (   TYPE)
Value:
template <> \
{ \
public: \
static const bool registered = true; \
typedef TYPE type; \
}
idx type
Definition: ov.cc:3114

Definition at line 90 of file oct-inttypes.h.

◆ REGISTER_OCTAVE_CMP_OP

#define REGISTER_OCTAVE_CMP_OP (   NM,
  OP 
)
Value:
class NM \
{ \
public: \
static const bool ltval = (0 OP 1); \
static const bool gtval = (1 OP 0); \
template <typename T> \
static bool op (T x, T y) { return x OP y; } \
}
the element is set to zero In other the statement xample y
Definition: data.cc:5264
F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T const F77_DBLE * x

Definition at line 112 of file oct-inttypes.h.

◆ REGISTER_OCTAVE_CONST_OP

#define REGISTER_OCTAVE_CONST_OP (   NM,
  value 
)
Value:
class NM \
{ \
public: \
static const bool ltval = value; \
static const bool gtval = value; \
template <typename T> \
static bool op (T, T) { return value; } \
}
nd group nd example For each display the value
Definition: sysdep.cc:866

Definition at line 124 of file oct-inttypes.h.

Typedef Documentation

◆ octave_int16

typedef octave_int<int16_t> octave_int16

Definition at line 41 of file oct-inttypes.h.

◆ octave_int32

typedef octave_int<int32_t> octave_int32

Definition at line 42 of file oct-inttypes.h.

◆ octave_int64

typedef octave_int<int64_t> octave_int64

Definition at line 43 of file oct-inttypes.h.

◆ octave_int8

typedef octave_int<int8_t> octave_int8

Definition at line 38 of file oct-inttypes.h.

◆ octave_uint16

typedef octave_int<uint16_t> octave_uint16

Definition at line 46 of file oct-inttypes.h.

◆ octave_uint32

typedef octave_int<uint32_t> octave_uint32

Definition at line 47 of file oct-inttypes.h.

◆ octave_uint64

typedef octave_int<uint64_t> octave_uint64

Definition at line 48 of file oct-inttypes.h.

◆ octave_uint8

typedef octave_int<uint8_t> octave_uint8

Definition at line 45 of file oct-inttypes.h.

Function Documentation

◆ bitshift()

template<typename T >
octave_int<T> bitshift ( const octave_int< T > &  a,
int  n,
const octave_int< T > &  mask = std::numeric_limits<T>::max () 
)

Definition at line 1023 of file oct-inttypes.h.

References a.

◆ mod()

◆ octave_int_abs()

template<typename T >
T octave_int_abs ( x)
inline

◆ operator!=() [1/5]

template<typename T1 , typename T2 >
bool operator!= ( const octave_int< T1 > &  x,
const octave_int< T2 > &  y 
)
inline

Definition at line 940 of file oct-inttypes.h.

◆ operator!=() [2/5]

template<typename T >
bool operator!= ( const octave_int< T > &  x,
const double y 
)
inline

Definition at line 1172 of file oct-inttypes.h.

◆ operator!=() [3/5]

template<typename T >
bool operator!= ( const double x,
const octave_int< T > &  y 
)
inline

Definition at line 1172 of file oct-inttypes.h.

◆ operator!=() [4/5]

template<typename T >
bool operator!= ( const octave_int< T > &  x,
const float y 
)
inline

Definition at line 1218 of file oct-inttypes.h.

◆ operator!=() [5/5]

template<typename T >
bool operator!= ( const float x,
const octave_int< T > &  y 
)

Definition at line 1218 of file oct-inttypes.h.

◆ operator&()

template<typename T >
octave_int<T> operator & ( const octave_int< T > &  x,
const octave_int< T > &  y 
)

Definition at line 1014 of file oct-inttypes.h.

◆ operator*() [1/8]

template<typename T >
octave_int<T> operator* ( const octave_int< T > &  x,
const double y 
)
inline

Definition at line 1145 of file oct-inttypes.h.

◆ operator*() [2/8]

template<typename T >
octave_int<T> operator* ( const double x,
const octave_int< T > &  y 
)
inline

Definition at line 1145 of file oct-inttypes.h.

◆ operator*() [3/8]

template<>
OCTAVE_API octave_int64 operator* ( const double ,
const octave_int64  
)

Definition at line 644 of file oct-inttypes.cc.

References x, and y.

◆ operator*() [4/8]

template<>
OCTAVE_API octave_uint64 operator* ( const double ,
const octave_uint64  
)

Definition at line 608 of file oct-inttypes.cc.

References x, and y.

◆ operator*() [5/8]

◆ operator*() [6/8]

template<>
OCTAVE_API octave_uint64 operator* ( const octave_uint64 ,
const double  
)

◆ operator*() [7/8]

template<typename T >
octave_int<T> operator* ( const octave_int< T > &  x,
float  y 
)
inline

Definition at line 1194 of file oct-inttypes.h.

◆ operator*() [8/8]

template<typename T >
octave_int<T> operator* ( float  x,
const octave_int< T > &  y 
)
inline

Definition at line 1194 of file oct-inttypes.h.

◆ operator+() [1/8]

template<>
OCTAVE_API octave_uint64 operator+ ( const octave_uint64 ,
const double  
)

Definition at line 449 of file oct-inttypes.cc.

References x, and y.

◆ operator+() [2/8]

template<>
OCTAVE_API octave_int64 operator+ ( const octave_int64 ,
const double  
)

Definition at line 457 of file oct-inttypes.cc.

References octave_int< T >::max(), x, and y.

◆ operator+() [3/8]

template<typename T >
octave_int<T> operator+ ( const double x,
const octave_int< T > &  y 
)
inline

Definition at line 1143 of file oct-inttypes.h.

◆ operator+() [4/8]

template<typename T >
octave_int<T> operator+ ( const octave_int< T > &  x,
const double y 
)
inline

Definition at line 1143 of file oct-inttypes.h.

◆ operator+() [5/8]

template<>
OCTAVE_API octave_uint64 operator+ ( const double ,
const octave_uint64  
)

Definition at line 454 of file oct-inttypes.cc.

References x, and y.

◆ operator+() [6/8]

template<>
OCTAVE_API octave_int64 operator+ ( const double ,
const octave_int64  
)

Definition at line 476 of file oct-inttypes.cc.

References x, and y.

◆ operator+() [7/8]

template<typename T >
octave_int<T> operator+ ( const octave_int< T > &  x,
float  y 
)
inline

Definition at line 1192 of file oct-inttypes.h.

◆ operator+() [8/8]

template<typename T >
octave_int<T> operator+ ( float  x,
const octave_int< T > &  y 
)
inline

Definition at line 1192 of file oct-inttypes.h.

◆ operator-() [1/8]

template<typename T >
octave_int<T> operator- ( const octave_int< T > &  x,
const double y 
)
inline

Definition at line 1144 of file oct-inttypes.h.

◆ operator-() [2/8]

template<typename T >
octave_int<T> operator- ( const double x,
const octave_int< T > &  y 
)
inline

Definition at line 1144 of file oct-inttypes.h.

◆ operator-() [3/8]

template<>
OCTAVE_API octave_int64 operator- ( const double ,
const octave_int64  
)

Definition at line 511 of file oct-inttypes.cc.

References max(), min(), pow(), x, and y.

◆ operator-() [4/8]

template<>
OCTAVE_API octave_uint64 operator- ( const double ,
const octave_uint64  
)

Definition at line 486 of file oct-inttypes.cc.

References octave_int< T >::max(), pow(), x, and y.

◆ operator-() [5/8]

template<>
OCTAVE_API octave_int64 operator- ( const octave_int64 ,
const double  
)

Definition at line 506 of file oct-inttypes.cc.

References x, and y.

◆ operator-() [6/8]

template<>
OCTAVE_API octave_uint64 operator- ( const octave_uint64 ,
const double  
)

Definition at line 481 of file oct-inttypes.cc.

References x, and y.

◆ operator-() [7/8]

template<typename T >
octave_int<T> operator- ( const octave_int< T > &  x,
float  y 
)
inline

Definition at line 1193 of file oct-inttypes.h.

◆ operator-() [8/8]

template<typename T >
octave_int<T> operator- ( float  x,
const octave_int< T > &  y 
)
inline

Definition at line 1193 of file oct-inttypes.h.

◆ operator/() [1/8]

template<typename T >
octave_int<T> operator/ ( const octave_int< T > &  x,
const double y 
)
inline

Definition at line 1146 of file oct-inttypes.h.

◆ operator/() [2/8]

template<typename T >
octave_int<T> operator/ ( const double x,
const octave_int< T > &  y 
)
inline

Definition at line 1146 of file oct-inttypes.h.

◆ operator/() [3/8]

template<>
OCTAVE_API octave_int64 operator/ ( const double ,
const octave_int64  
)

Definition at line 652 of file oct-inttypes.cc.

References x, and y.

◆ operator/() [4/8]

template<>
OCTAVE_API octave_uint64 operator/ ( const double ,
const octave_uint64  
)

Definition at line 647 of file oct-inttypes.cc.

References x, and y.

◆ operator/() [5/8]

template<>
OCTAVE_API octave_int64 operator/ ( const octave_int64 ,
const double  
)

Definition at line 667 of file oct-inttypes.cc.

References octave_int< T >::max(), octave::math::round(), x, and y.

◆ operator/() [6/8]

template<>
OCTAVE_API octave_uint64 operator/ ( const octave_uint64 ,
const double  
)

Definition at line 657 of file oct-inttypes.cc.

References octave_int< T >::max(), octave::math::round(), x, and y.

◆ operator/() [7/8]

template<typename T >
octave_int<T> operator/ ( float  x,
const octave_int< T > &  y 
)
inline

Definition at line 1195 of file oct-inttypes.h.

◆ operator/() [8/8]

template<typename T >
octave_int<T> operator/ ( const octave_int< T > &  x,
float  y 
)
inline

Definition at line 1195 of file oct-inttypes.h.

◆ operator<() [1/5]

template<typename T1 , typename T2 >
bool operator< ( const octave_int< T1 > &  x,
const octave_int< T2 > &  y 
)
inline

Definition at line 935 of file oct-inttypes.h.

◆ operator<() [2/5]

template<typename T >
bool operator< ( const octave_int< T > &  x,
const double y 
)
inline

Definition at line 1167 of file oct-inttypes.h.

◆ operator<() [3/5]

template<typename T >
bool operator< ( const double x,
const octave_int< T > &  y 
)
inline

Definition at line 1167 of file oct-inttypes.h.

◆ operator<() [4/5]

template<typename T >
bool operator< ( const octave_int< T > &  x,
const float y 
)
inline

Definition at line 1213 of file oct-inttypes.h.

◆ operator<() [5/5]

template<typename T >
bool operator< ( const float x,
const octave_int< T > &  y 
)

Definition at line 1213 of file oct-inttypes.h.

◆ operator<<() [1/3]

template<typename T >
std::ostream& operator<< ( std::ostream &  os,
const octave_int< T > &  ival 
)
inline

Definition at line 946 of file oct-inttypes.h.

References os.

◆ operator<<() [2/3]

template<>
std::ostream& operator<< ( std::ostream &  os,
const octave_int< int8_t > &  ival 
)
inline

Definition at line 970 of file oct-inttypes.h.

References os.

◆ operator<<() [3/3]

template<>
std::ostream& operator<< ( std::ostream &  os,
const octave_int< uint8_t > &  ival 
)
inline

Definition at line 978 of file oct-inttypes.h.

References os.

◆ operator<=() [1/5]

template<typename T1 , typename T2 >
bool operator<= ( const octave_int< T1 > &  x,
const octave_int< T2 > &  y 
)
inline

Definition at line 936 of file oct-inttypes.h.

◆ operator<=() [2/5]

template<typename T >
bool operator<= ( const double x,
const octave_int< T > &  y 
)
inline

Definition at line 1168 of file oct-inttypes.h.

◆ operator<=() [3/5]

template<typename T >
bool operator<= ( const octave_int< T > &  x,
const double y 
)
inline

Definition at line 1168 of file oct-inttypes.h.

◆ operator<=() [4/5]

template<typename T >
bool operator<= ( const float x,
const octave_int< T > &  y 
)

Definition at line 1214 of file oct-inttypes.h.

◆ operator<=() [5/5]

template<typename T >
bool operator<= ( const octave_int< T > &  x,
const float y 
)
inline

Definition at line 1214 of file oct-inttypes.h.

◆ operator==() [1/5]

template<typename T1 , typename T2 >
bool operator== ( const octave_int< T1 > &  x,
const octave_int< T2 > &  y 
)
inline

Definition at line 939 of file oct-inttypes.h.

◆ operator==() [2/5]

template<typename T >
bool operator== ( const double x,
const octave_int< T > &  y 
)
inline

Definition at line 1171 of file oct-inttypes.h.

◆ operator==() [3/5]

template<typename T >
bool operator== ( const octave_int< T > &  x,
const double y 
)
inline

Definition at line 1171 of file oct-inttypes.h.

◆ operator==() [4/5]

template<typename T >
bool operator== ( const octave_int< T > &  x,
const float y 
)
inline

Definition at line 1217 of file oct-inttypes.h.

◆ operator==() [5/5]

template<typename T >
bool operator== ( const float x,
const octave_int< T > &  y 
)

Definition at line 1217 of file oct-inttypes.h.

◆ operator>() [1/5]

template<typename T1 , typename T2 >
bool operator> ( const octave_int< T1 > &  x,
const octave_int< T2 > &  y 
)
inline

Definition at line 937 of file oct-inttypes.h.

◆ operator>() [2/5]

template<typename T >
bool operator> ( const octave_int< T > &  x,
const double y 
)
inline

Definition at line 1170 of file oct-inttypes.h.

◆ operator>() [3/5]

template<typename T >
bool operator> ( const double x,
const octave_int< T > &  y 
)
inline

Definition at line 1170 of file oct-inttypes.h.

◆ operator>() [4/5]

template<typename T >
bool operator> ( const float x,
const octave_int< T > &  y 
)

Definition at line 1216 of file oct-inttypes.h.

◆ operator>() [5/5]

template<typename T >
bool operator> ( const octave_int< T > &  x,
const float y 
)
inline

Definition at line 1216 of file oct-inttypes.h.

◆ operator>=() [1/5]

template<typename T1 , typename T2 >
bool operator>= ( const octave_int< T1 > &  x,
const octave_int< T2 > &  y 
)
inline

Definition at line 938 of file oct-inttypes.h.

◆ operator>=() [2/5]

template<typename T >
bool operator>= ( const double x,
const octave_int< T > &  y 
)
inline

Definition at line 1169 of file oct-inttypes.h.

◆ operator>=() [3/5]

template<typename T >
bool operator>= ( const octave_int< T > &  x,
const double y 
)
inline

Definition at line 1169 of file oct-inttypes.h.

◆ operator>=() [4/5]

template<typename T >
bool operator>= ( const octave_int< T > &  x,
const float y 
)
inline

Definition at line 1215 of file oct-inttypes.h.

◆ operator>=() [5/5]

template<typename T >
bool operator>= ( const float x,
const octave_int< T > &  y 
)

Definition at line 1215 of file oct-inttypes.h.

◆ operator>>() [1/3]

template<typename T >
std::istream& operator>> ( std::istream &  is,
octave_int< T > &  ival 
)
inline

Definition at line 954 of file oct-inttypes.h.

References is, and tmp.

◆ operator>>() [2/3]

template<>
std::istream& operator>> ( std::istream &  is,
octave_int< int8_t > &  ival 
)
inline

Definition at line 986 of file oct-inttypes.h.

References is, and tmp.

◆ operator>>() [3/3]

template<>
std::istream& operator>> ( std::istream &  is,
octave_int< uint8_t > &  ival 
)
inline

Definition at line 996 of file oct-inttypes.h.

References is, and tmp.

◆ operator^()

template<typename T >
octave_int<T> operator^ ( const octave_int< T > &  x,
const octave_int< T > &  y 
)

Definition at line 1016 of file oct-inttypes.h.

◆ operator|()

template<typename T >
octave_int<T> operator| ( const octave_int< T > &  x,
const octave_int< T > &  y 
)

Definition at line 1015 of file oct-inttypes.h.

◆ pow() [1/5]

template<typename T >
OCTAVE_API octave_int<T> pow ( const octave_int< T > &  ,
const octave_int< T > &   
)

Definition at line 698 of file oct-inttypes.cc.

References a, b, retval, and zero().

Referenced by norm_accumulator_p< R >::accum(), norm_accumulator_mp< R >::accum(), axes::properties::calc_tick_sep(), axes::properties::calc_ticklabels(), axes::properties::calc_ticks_and_lims(), do_translate(), do_zoom(), elem_dual_p(), elem_xpow(), axes::properties::get_axis_limits(), higham_subp(), 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(), make_complex_matrix_format(), make_range_format(), make_real_matrix_format(), pr_engineering_float< T >::mantissa(), mx_inline_pow(), octave::octave_jit_pow_complex_complex(), octave::octave_jit_pow_complex_scalar(), octave::octave_jit_pow_scalar_complex(), octave::octave_jit_pow_scalar_scalar(), norm_accumulator_p< R >::operator R(), norm_accumulator_mp< R >::operator R(), operator-(), pow(), powf(), log_scaler::unscale(), neg_log_scaler::unscale(), xpow(), and octave::math::xpsi().

◆ pow() [2/5]

template<typename T >
OCTAVE_API octave_int<T> pow ( const double a,
const octave_int< T > &  b 
)

Definition at line 740 of file oct-inttypes.cc.

References a, b, and pow().

◆ pow() [3/5]

template<typename T >
OCTAVE_API octave_int<T> pow ( const octave_int< T > &  a,
const double b 
)

Definition at line 745 of file oct-inttypes.cc.

References a, b, pow(), and octave::math::round().

◆ pow() [4/5]

template<typename T >
OCTAVE_API octave_int<T> pow ( const float a,
const octave_int< T > &  b 
)

Definition at line 755 of file oct-inttypes.cc.

References a, b, and pow().

◆ pow() [5/5]

template<typename T >
OCTAVE_API octave_int<T> pow ( const octave_int< T > &  a,
const float b 
)

Definition at line 760 of file oct-inttypes.cc.

References a, b, pow(), and octave::math::round().

◆ powf() [1/2]

template<typename T >
OCTAVE_API octave_int<T> powf ( const float a,
const octave_int< T > &  b 
)

Definition at line 773 of file oct-inttypes.cc.

References a, b, and pow().

◆ powf() [2/2]

template<typename T >
OCTAVE_API octave_int<T> powf ( const octave_int< T > &  a,
const float b 
)

Definition at line 778 of file oct-inttypes.cc.

References a, b, pow(), and octave::math::round().

◆ rem()

template<typename T >
octave_int<T> rem ( const octave_int< T > &  x,
const octave_int< T > &  y 
)
inline

Definition at line 853 of file oct-inttypes.h.

References x, and y.

Referenced by octave::sys::time::time().

◆ xmax()

template<typename T >
octave_int<T> xmax ( const octave_int< T > &  x,
const octave_int< T > &  y 
)

◆ xmin()

template<typename T >
octave_int<T> xmin ( const octave_int< T > &  x,
const octave_int< T > &  y 
)