Sha256: 99ea68372311ceadda2ad73ddccad271ea3ad3074df70d3e4de0172b809902a0

Contents?: true

Size: 542 Bytes

Versions: 47

Compression:

Stored size: 542 Bytes

Contents

typedef int16_t dtype;
typedef int16_t rtype;
#define cT  numo_cInt16
#define cRT cT

#define m_num_to_data(x) ((dtype)NUM2INT(x))
#define m_data_to_num(x) INT2NUM((int)(x))
#define m_extract(x)     INT2NUM((int)*(dtype*)(x))
#define m_sprintf(s,x)   sprintf(s,"%d",(int)(x))

#ifndef INT16_MIN
#define INT16_MIN (-32767-1)
#endif
#ifndef INT16_MAX
#define INT16_MAX (32767)
#endif

#define DATA_MIN INT16_MIN
#define DATA_MAX INT16_MAX

#define M_MIN  m_data_to_num(INT16_MIN)
#define M_MAX  m_data_to_num(INT16_MAX)

#include "int_macro.h"

Version data entries

47 entries across 24 versions & 2 rubygems

Version Path
numo-narray-0.9.1.5 ext/numo/narray/numo/types/int16.h
numo-narray-0.9.1.4 ext/numo/narray/numo/types/int16.h
numo-narray-0.9.1.3 ext/numo/narray/numo/types/int16.h
ruby-dnn-0.4.0 lib/dnn/ext/rb_stb_image/numo/types/int16.h
ruby-dnn-0.4.0 lib/dnn/ext/dataset_loader/numo/types/int16.h
ruby-dnn-0.3.2 lib/dnn/ext/image_io/numo/types/int16.h
ruby-dnn-0.3.2 lib/dnn/ext/dataset_loader/numo/types/int16.h
ruby-dnn-0.3.1 lib/dnn/ext/image_io/numo/types/int16.h
ruby-dnn-0.3.1 lib/dnn/ext/dataset_loader/numo/types/int16.h
ruby-dnn-0.3.0 lib/dnn/ext/dataset_loader/numo/types/int16.h
ruby-dnn-0.3.0 lib/dnn/ext/image_io/numo/types/int16.h
ruby-dnn-0.2.2 lib/dnn/ext/image_io/numo/types/int16.h
ruby-dnn-0.2.2 lib/dnn/ext/dataset_loader/numo/types/int16.h
ruby-dnn-0.2.1 lib/dnn/ext/image_io/numo/types/int16.h
ruby-dnn-0.2.1 lib/dnn/ext/dataset_loader/numo/types/int16.h
ruby-dnn-0.2.0 lib/dnn/ext/image_io/numo/types/int16.h
ruby-dnn-0.2.0 lib/dnn/ext/dataset_loader/numo/types/int16.h
ruby-dnn-0.1.8 lib/dnn/ext/image_io/numo/types/int16.h
ruby-dnn-0.1.8 lib/dnn/ext/dataset_loader/numo/types/int16.h
ruby-dnn-0.1.7 lib/dnn/ext/dataset_loader/numo/types/int16.h