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
ruby-dnn-0.1.7 lib/dnn/ext/dataset_loader/numo/types/int16.h
ruby-dnn-0.1.6 lib/dnn/ext/cifar10/numo/types/int16.h
ruby-dnn-0.1.6 lib/dnn/ext/mnist/numo/types/int16.h
ruby-dnn-0.1.6 lib/dnn/ext/image_io/numo/types/int16.h
ruby-dnn-0.1.5 lib/dnn/ext/cifar10/numo/types/int16.h
ruby-dnn-0.1.5 lib/dnn/ext/image_io/numo/types/int16.h
ruby-dnn-0.1.5 lib/dnn/ext/mnist/numo/types/int16.h
ruby-dnn-0.1.4 lib/dnn/ext/mnist/numo/types/int16.h
ruby-dnn-0.1.4 lib/dnn/ext/image_io/numo/types/int16.h
ruby-dnn-0.1.4 lib/dnn/ext/cifar10/numo/types/int16.h
ruby-dnn-0.1.3 lib/dnn/ext/cifar10/numo/types/int16.h
ruby-dnn-0.1.3 lib/dnn/ext/mnist/numo/types/int16.h
ruby-dnn-0.1.3 lib/dnn/ext/image_io/numo/types/int16.h
ruby-dnn-0.1.2 lib/dnn/ext/image_io/numo/types/int16.h
ruby-dnn-0.1.2 lib/dnn/ext/mnist/numo/types/int16.h
ruby-dnn-0.1.2 lib/dnn/ext/cifar10/numo/types/int16.h
ruby-dnn-0.1.1 lib/dnn/ext/image_io/numo/types/int16.h
ruby-dnn-0.1.1 lib/dnn/ext/mnist/numo/types/int16.h
ruby-dnn-0.1.1 lib/dnn/ext/cifar10/numo/types/int16.h
ruby-dnn-0.1.0 lib/dnn/ext/cifar10/numo/types/int16.h