GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "oct-inttypes.h"
Public Types | |
typedef T | val_type |
Public Member Functions | |
octave_int (void) | |
octave_int (T i) | |
octave_int (double d) | |
octave_int (float d) | |
octave_int (bool b) | |
template<class U > | |
octave_int (const U &i) | |
template<class U > | |
octave_int (const octave_int< U > &i) | |
octave_int (const octave_int< T > &i) | |
octave_int< T > | abs () const |
bool | bool_value (void) const |
char | char_value (void) const |
double | double_value (void) const |
float | float_value (void) const |
const unsigned char * | iptr (void) const |
void * | mex_get_data (void) const |
operator double (void) const | |
operator float (void) const | |
operator T (void) const | |
bool | operator! (void) const |
octave_int< T > | operator% (const octave_int< T > &y) const |
octave_int< T > & | operator%= (const octave_int< T > &y) |
octave_int< T > | operator* (const octave_int< T > &y) const |
octave_int< T > & | operator*= (const octave_int< T > &y) |
octave_int< T > | operator+ () const |
octave_int< T > | operator+ (const octave_int< T > &y) const |
octave_int< T > & | operator+= (const octave_int< T > &y) |
octave_int< T > | operator- () const |
octave_int< T > | operator- (const octave_int< T > &y) const |
octave_int< T > & | operator-= (const octave_int< T > &y) |
octave_int< T > | operator/ (const octave_int< T > &y) const |
octave_int< T > & | operator/= (const octave_int< T > &y) |
octave_int< T > | operator<< (const int &y) const |
octave_int< T > & | operator<<= (const int &y) |
octave_int & | operator= (const octave_int< T > &i) |
octave_int< T > | operator>> (const int &y) const |
octave_int< T > & | operator>>= (const int &y) |
octave_int< T > | signum () const |
template<> | |
OCTAVE_API const char * | type_name () |
template<> | |
OCTAVE_API const char * | type_name () |
template<> | |
OCTAVE_API const char * | type_name () |
template<> | |
OCTAVE_API const char * | type_name () |
template<> | |
OCTAVE_API const char * | type_name () |
template<> | |
OCTAVE_API const char * | type_name () |
template<> | |
OCTAVE_API const char * | type_name () |
template<> | |
OCTAVE_API const char * | type_name () |
T | value (void) const |
Static Public Member Functions | |
static int | byte_size (void) |
template<class S > | |
static T | convert_real (const S &value) |
static octave_int< T > | max (void) |
static T | max_val () |
static octave_int< T > | min (void) |
static T | min_val () |
static int | nbits (void) |
template<class S > | |
static T | truncate_int (const S &value) |
static const char * | type_name () |
Static Public Attributes | |
static const octave_int | one |
static const octave_int | zero |
Private Attributes | |
T | ival |
Definition at line 823 of file oct-inttypes.h.
typedef T octave_int< T >::val_type |
Definition at line 827 of file oct-inttypes.h.
|
inline |
Definition at line 829 of file oct-inttypes.h.
|
inline |
Definition at line 831 of file oct-inttypes.h.
|
inline |
Definition at line 833 of file oct-inttypes.h.
|
inline |
Definition at line 835 of file oct-inttypes.h.
|
inline |
Definition at line 841 of file oct-inttypes.h.
Definition at line 844 of file oct-inttypes.h.
|
inline |
Definition at line 847 of file oct-inttypes.h.
|
inline |
Definition at line 850 of file oct-inttypes.h.
|
inline |
Definition at line 892 of file oct-inttypes.h.
Referenced by extended_gcd(), and simple_gcd().
|
inline |
Definition at line 865 of file oct-inttypes.h.
|
inlinestatic |
Definition at line 924 of file oct-inttypes.h.
|
inline |
Definition at line 867 of file oct-inttypes.h.
|
inlinestaticinherited |
Definition at line 317 of file oct-inttypes.h.
References octave_int_base< T >::compute_threshold(), octave_int_base< T >::max_val(), octave_int_base< T >::min_val(), xisnan(), and xround().
|
inline |
Definition at line 869 of file oct-inttypes.h.
Referenced by op_dble_sum(), pow(), and powf().
|
inline |
Definition at line 871 of file oct-inttypes.h.
|
inline |
Definition at line 860 of file oct-inttypes.h.
|
inlinestatic |
Definition at line 920 of file oct-inttypes.h.
References max().
Referenced by img_float2uint(), operator*(), operator-(), and operator/().
|
inlinestaticinherited |
Definition at line 261 of file oct-inttypes.h.
References max().
Referenced by octave_int_base< T >::convert_real(), and octave_int_base< T >::truncate_int().
|
inline |
Definition at line 933 of file oct-inttypes.h.
|
inlinestatic |
Definition at line 919 of file oct-inttypes.h.
References min().
|
inlinestaticinherited |
Definition at line 260 of file oct-inttypes.h.
References min().
Referenced by octave_int_base< T >::convert_real(), and octave_int_base< T >::truncate_int().
|
inlinestatic |
Definition at line 922 of file oct-inttypes.h.
|
inline |
Definition at line 877 of file oct-inttypes.h.
|
inline |
Definition at line 879 of file oct-inttypes.h.
|
inline |
Definition at line 873 of file oct-inttypes.h.
|
inline |
Definition at line 863 of file oct-inttypes.h.
|
inline |
Definition at line 913 of file oct-inttypes.h.
|
inline |
Definition at line 913 of file oct-inttypes.h.
|
inline |
Definition at line 911 of file oct-inttypes.h.
|
inline |
Definition at line 911 of file oct-inttypes.h.
|
inline |
Definition at line 882 of file oct-inttypes.h.
|
inline |
Definition at line 909 of file oct-inttypes.h.
|
inline |
Definition at line 909 of file oct-inttypes.h.
|
inline |
Definition at line 891 of file oct-inttypes.h.
|
inline |
Definition at line 910 of file oct-inttypes.h.
|
inline |
Definition at line 910 of file oct-inttypes.h.
|
inline |
Definition at line 912 of file oct-inttypes.h.
|
inline |
Definition at line 912 of file oct-inttypes.h.
|
inline |
Definition at line 914 of file oct-inttypes.h.
|
inline |
Definition at line 914 of file oct-inttypes.h.
|
inline |
Definition at line 852 of file oct-inttypes.h.
References octave_int< T >::ival.
|
inline |
Definition at line 915 of file oct-inttypes.h.
|
inline |
Definition at line 915 of file oct-inttypes.h.
|
inline |
Definition at line 893 of file oct-inttypes.h.
Referenced by extended_gcd().
|
inlinestaticinherited |
Definition at line 266 of file oct-inttypes.h.
References octave_int_base< T >::max_val(), and octave_int_base< T >::min_val().
OCTAVE_API const char * octave_int< int8_t >::type_name | ( | void | ) |
Definition at line 46 of file oct-inttypes.cc.
OCTAVE_API const char * octave_int< int16_t >::type_name | ( | void | ) |
Definition at line 47 of file oct-inttypes.cc.
OCTAVE_API const char * octave_int< int32_t >::type_name | ( | void | ) |
Definition at line 48 of file oct-inttypes.cc.
OCTAVE_API const char * octave_int< int64_t >::type_name | ( | void | ) |
Definition at line 49 of file oct-inttypes.cc.
OCTAVE_API const char * octave_int< uint8_t >::type_name | ( | void | ) |
Definition at line 50 of file oct-inttypes.cc.
OCTAVE_API const char * octave_int< uint16_t >::type_name | ( | void | ) |
Definition at line 51 of file oct-inttypes.cc.
OCTAVE_API const char * octave_int< uint32_t >::type_name | ( | void | ) |
Definition at line 52 of file oct-inttypes.cc.
OCTAVE_API const char * octave_int< uint64_t >::type_name | ( | void | ) |
Definition at line 53 of file oct-inttypes.cc.
|
static |
|
inline |
Definition at line 858 of file oct-inttypes.h.
Referenced by helper_is_zero_mem(), logical_value(), mod(), pow(), rem(), octave_stream::seek(), xis_false(), xis_true(), xmax(), and xmin().
|
private |
Definition at line 937 of file oct-inttypes.h.
Referenced by octave_int< T >::operator=().
|
static |
Definition at line 929 of file oct-inttypes.h.
|
static |
Definition at line 929 of file oct-inttypes.h.
Referenced by operator*().