Coverage Report

Created: 2017-11-12 13:27

/home/liu/buildslave/linux-x64-runtests/build/lib/3rdparty/dsfmt/dSFMT.h
Line
Count
Source (jump to first uncovered line)
1
#pragma once
2
/**
3
 * @file dSFMT.h
4
 *
5
 * @brief double precision SIMD oriented Fast Mersenne Twister(dSFMT)
6
 * pseudorandom number generator based on IEEE 754 format.
7
 *
8
 * @author Mutsuo Saito (Hiroshima University)
9
 * @author Makoto Matsumoto (Hiroshima University)
10
 *
11
 * Copyright (C) 2007, 2008 Mutsuo Saito, Makoto Matsumoto and
12
 * Hiroshima University. All rights reserved.
13
 * Copyright (C) 2012 Mutsuo Saito, Makoto Matsumoto,
14
 * Hiroshima University and The University of Tokyo.
15
 * All rights reserved.
16
 *
17
 * The new BSD License is applied to this software.
18
 * see LICENSE.txt
19
 *
20
 * @note We assume that your system has inttypes.h.  If your system
21
 * doesn't have inttypes.h, you have to typedef uint32_t and uint64_t,
22
 * and you have to define PRIu64 and PRIx64 in this file as follows:
23
 * @verbatim
24
 typedef unsigned int uint32_t
25
 typedef unsigned long long uint64_t
26
 #define PRIu64 "llu"
27
 #define PRIx64 "llx"
28
@endverbatim
29
 * uint32_t must be exactly 32-bit unsigned integer type (no more, no
30
 * less), and uint64_t must be exactly 64-bit unsigned integer type.
31
 * PRIu64 and PRIx64 are used for printf function to print 64-bit
32
 * unsigned int and 64-bit unsigned int in hexadecimal format.
33
 */
34
35
#ifndef DSFMT_H
36
#define DSFMT_H
37
#if defined(__cplusplus)
38
extern "C" {
39
#endif
40
41
#include <stdio.h>
42
#include <assert.h>
43
44
19.7M
#define DSFMT_MEXP 19937
45
46
/*-----------------
47
  BASIC DEFINITIONS
48
  -----------------*/
49
/* Mersenne Exponent. The period of the sequence
50
 *  is a multiple of 2^DSFMT_MEXP-1.
51
 * #define DSFMT_MEXP 19937 */
52
/** DSFMT generator has an internal state array of 128-bit integers,
53
 * and N is its size. */
54
19.7M
#define DSFMT_N 
((19.7M
DSFMT_MEXP19.7M
- 128) / 104 + 1)
55
/** N32 is the size of internal state array when regarded as an array
56
 * of 32-bit integers.*/
57
#define DSFMT_N32 (DSFMT_N * 4)
58
/** N64 is the size of internal state array when regarded as an array
59
 * of 64-bit integers.*/
60
10.8M
#define DSFMT_N64 
(10.8M
DSFMT_N10.8M
* 2)
61
62
#if !defined(DSFMT_BIG_ENDIAN)
63
#  if defined(__BYTE_ORDER) && defined(__BIG_ENDIAN)
64
#    if __BYTE_ORDER == __BIG_ENDIAN
65
#      define DSFMT_BIG_ENDIAN 1
66
#    endif
67
#  elif defined(_BYTE_ORDER) && defined(_BIG_ENDIAN)
68
#    if _BYTE_ORDER == _BIG_ENDIAN
69
#      define DSFMT_BIG_ENDIAN 1
70
#    endif
71
#  elif defined(__BYTE_ORDER__) && defined(__BIG_ENDIAN__)
72
#    if __BYTE_ORDER__ == __BIG_ENDIAN__
73
#      define DSFMT_BIG_ENDIAN 1
74
#    endif
75
#  elif defined(BYTE_ORDER) && defined(BIG_ENDIAN)
76
#    if BYTE_ORDER == BIG_ENDIAN
77
#      define DSFMT_BIG_ENDIAN 1
78
#    endif
79
#  elif defined(__BIG_ENDIAN) || defined(_BIG_ENDIAN) \
80
    || defined(__BIG_ENDIAN__) || defined(BIG_ENDIAN)
81
#      define DSFMT_BIG_ENDIAN 1
82
#  endif
83
#endif
84
85
#if defined(DSFMT_BIG_ENDIAN) && defined(__amd64)
86
#  undef DSFMT_BIG_ENDIAN
87
#endif
88
89
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)
90
#  include <inttypes.h>
91
#elif defined(_MSC_VER) || defined(__BORLANDC__)
92
#  if !defined(DSFMT_UINT32_DEFINED) && !defined(SFMT_UINT32_DEFINED)
93
typedef unsigned int uint32_t;
94
typedef unsigned __int64 uint64_t;
95
#    define UINT64_C(v) (v ## ui64)
96
#    define DSFMT_UINT32_DEFINED
97
#    if !defined(inline)
98
#      define inline __inline
99
#    endif
100
#  endif
101
#else
102
#  include <inttypes.h>
103
#  if !defined(inline)
104
#    if defined(__GNUC__)
105
#      define inline __inline__
106
#    else
107
#      define inline
108
#    endif
109
#  endif
110
#endif
111
112
#ifndef PRIu64
113
#  if defined(_MSC_VER) || defined(__BORLANDC__)
114
#    define PRIu64 "I64u"
115
#    define PRIx64 "I64x"
116
#  else
117
#    define PRIu64 "llu"
118
#    define PRIx64 "llx"
119
#  endif
120
#endif
121
122
#ifndef UINT64_C
123
#  define UINT64_C(v) (v ## ULL)
124
#endif
125
126
/*------------------------------------------
127
  128-bit SIMD like data type for standard C
128
  ------------------------------------------*/
129
#if defined(HAVE_ALTIVEC)
130
#  if !defined(__APPLE__)
131
#    include <altivec.h>
132
#  endif
133
/** 128-bit data structure */
134
union dW128_T {
135
    vector unsigned int s;
136
    uint64_t u[2];
137
    uint32_t u32[4];
138
    double d[2];
139
};
140
141
#elif defined(HAVE_SSE2)
142
#  include <emmintrin.h>
143
144
/** 128-bit data structure */
145
union dW128_T {
146
    __m128i si;
147
    __m128d sd;
148
    uint64_t u[2];
149
    uint32_t u32[4];
150
    double d[2];
151
};
152
#else  /* standard C */
153
/** 128-bit data structure */
154
union dW128_T {
155
    uint64_t u[2];
156
    uint32_t u32[4];
157
    double d[2];
158
};
159
#endif
160
161
/** 128-bit data type */
162
typedef union dW128_T dw128_t;
163
164
/** the 128-bit internal state array */
165
struct DSFMT_T {
166
    dw128_t status[DSFMT_N + 1];
167
    int idx;
168
};
169
typedef struct DSFMT_T dsfmt_t;
170
171
/** dsfmt internal state vector */
172
extern dsfmt_t dsfmt_global_data;
173
/** dsfmt mexp for check */
174
extern const int dsfmt_global_mexp;
175
176
void dsfmt_gen_rand_all(dsfmt_t *dsfmt);
177
void dsfmt_fill_array_open_close(dsfmt_t *dsfmt, double array[], int size);
178
void dsfmt_fill_array_close_open(dsfmt_t *dsfmt, double array[], int size);
179
void dsfmt_fill_array_open_open(dsfmt_t *dsfmt, double array[], int size);
180
void dsfmt_fill_array_close1_open2(dsfmt_t *dsfmt, double array[], int size);
181
void dsfmt_chk_init_gen_rand(dsfmt_t *dsfmt, uint32_t seed, int mexp);
182
void dsfmt_chk_init_by_array(dsfmt_t *dsfmt, uint32_t init_key[],
183
           int key_length, int mexp);
184
const char *dsfmt_get_idstring(void);
185
int dsfmt_get_min_array_size(void);
186
187
#if defined(__GNUC__)
188
#  define DSFMT_PRE_INLINE inline static
189
#  define DSFMT_PST_INLINE __attribute__((always_inline))
190
#elif defined(_MSC_VER) && _MSC_VER >= 1200
191
#  define DSFMT_PRE_INLINE __forceinline static
192
#  define DSFMT_PST_INLINE
193
#else
194
#  define DSFMT_PRE_INLINE inline static
195
#  define DSFMT_PST_INLINE
196
#endif
197
DSFMT_PRE_INLINE uint32_t dsfmt_genrand_uint32(dsfmt_t *dsfmt) DSFMT_PST_INLINE;
198
DSFMT_PRE_INLINE double dsfmt_genrand_close1_open2(dsfmt_t *dsfmt)
199
    DSFMT_PST_INLINE;
200
DSFMT_PRE_INLINE double dsfmt_genrand_close_open(dsfmt_t *dsfmt)
201
    DSFMT_PST_INLINE;
202
DSFMT_PRE_INLINE double dsfmt_genrand_open_close(dsfmt_t *dsfmt)
203
    DSFMT_PST_INLINE;
204
DSFMT_PRE_INLINE double dsfmt_genrand_open_open(dsfmt_t *dsfmt)
205
    DSFMT_PST_INLINE;
206
DSFMT_PRE_INLINE uint32_t dsfmt_gv_genrand_uint32(void) DSFMT_PST_INLINE;
207
DSFMT_PRE_INLINE double dsfmt_gv_genrand_close1_open2(void) DSFMT_PST_INLINE;
208
DSFMT_PRE_INLINE double dsfmt_gv_genrand_close_open(void) DSFMT_PST_INLINE;
209
DSFMT_PRE_INLINE double dsfmt_gv_genrand_open_close(void) DSFMT_PST_INLINE;
210
DSFMT_PRE_INLINE double dsfmt_gv_genrand_open_open(void) DSFMT_PST_INLINE;
211
DSFMT_PRE_INLINE void dsfmt_gv_fill_array_open_close(double array[], int size)
212
    DSFMT_PST_INLINE;
213
DSFMT_PRE_INLINE void dsfmt_gv_fill_array_close_open(double array[], int size)
214
    DSFMT_PST_INLINE;
215
DSFMT_PRE_INLINE void dsfmt_gv_fill_array_open_open(double array[], int size)
216
    DSFMT_PST_INLINE;
217
DSFMT_PRE_INLINE void dsfmt_gv_fill_array_close1_open2(double array[], int size)
218
    DSFMT_PST_INLINE;
219
DSFMT_PRE_INLINE void dsfmt_gv_init_gen_rand(uint32_t seed) DSFMT_PST_INLINE;
220
DSFMT_PRE_INLINE void dsfmt_gv_init_by_array(uint32_t init_key[],
221
               int key_length) DSFMT_PST_INLINE;
222
DSFMT_PRE_INLINE void dsfmt_init_gen_rand(dsfmt_t *dsfmt, uint32_t seed)
223
    DSFMT_PST_INLINE;
224
DSFMT_PRE_INLINE void dsfmt_init_by_array(dsfmt_t *dsfmt, uint32_t init_key[],
225
            int key_length) DSFMT_PST_INLINE;
226
227
/**
228
 * This function generates and returns unsigned 32-bit integer.
229
 * This is slower than SFMT, only for convenience usage.
230
 * dsfmt_init_gen_rand() or dsfmt_init_by_array() must be called
231
 * before this function.
232
 * @param dsfmt dsfmt internal state date
233
 * @return double precision floating point pseudorandom number
234
 */
235
0
inline static uint32_t dsfmt_genrand_uint32(dsfmt_t *dsfmt) {
236
0
    uint32_t r;
237
0
    uint64_t *psfmt64 = &dsfmt->status[0].u[0];
238
0
239
0
    if (dsfmt->idx >= DSFMT_N64) {
240
0
  dsfmt_gen_rand_all(dsfmt);
241
0
  dsfmt->idx = 0;
242
0
    }
243
0
    r = psfmt64[dsfmt->idx++] & 0xffffffffU;
244
0
    return r;
245
0
}
Unexecuted instantiation: convnet.tests.c:dsfmt_genrand_uint32
Unexecuted instantiation: dSFMT.c:dsfmt_genrand_uint32
Unexecuted instantiation: cudnn.tests.c:dsfmt_genrand_uint32
Unexecuted instantiation: numeric.tests.c:dsfmt_genrand_uint32
Unexecuted instantiation: util.tests.c:dsfmt_genrand_uint32
Unexecuted instantiation: symbolic.graph.tests.c:dsfmt_genrand_uint32
Unexecuted instantiation: graph.tests.c:dsfmt_genrand_uint32
Unexecuted instantiation: transform.tests.c:dsfmt_genrand_uint32
Unexecuted instantiation: gradient.tests.c:dsfmt_genrand_uint32
Unexecuted instantiation: tape.tests.c:dsfmt_genrand_uint32
Unexecuted instantiation: winograd.tests.c:dsfmt_genrand_uint32
Unexecuted instantiation: while.tests.c:dsfmt_genrand_uint32
Unexecuted instantiation: while.backward.tests.c:dsfmt_genrand_uint32
246
247
/**
248
 * This function generates and returns double precision pseudorandom
249
 * number which distributes uniformly in the range [1, 2).  This is
250
 * the primitive and faster than generating numbers in other ranges.
251
 * dsfmt_init_gen_rand() or dsfmt_init_by_array() must be called
252
 * before this function.
253
 * @param dsfmt dsfmt internal state date
254
 * @return double precision floating point pseudorandom number
255
 */
256
10.8M
inline static double dsfmt_genrand_close1_open2(dsfmt_t *dsfmt) {
257
10.8M
    double r;
258
10.8M
    double *psfmt64 = &dsfmt->status[0].d[0];
259
10.8M
260
10.8M
    if (
dsfmt->idx >= 10.8M
DSFMT_N6410.8M
)
{28.5k
261
28.5k
  dsfmt_gen_rand_all(dsfmt);
262
28.5k
  dsfmt->idx = 0;
263
28.5k
    }
264
10.8M
    r = psfmt64[dsfmt->idx++];
265
10.8M
    return r;
266
10.8M
}
Unexecuted instantiation: dSFMT.c:dsfmt_genrand_close1_open2
cudnn.tests.c:dsfmt_genrand_close1_open2
Line
Count
Source
256
9.64M
inline static double dsfmt_genrand_close1_open2(dsfmt_t *dsfmt) {
257
9.64M
    double r;
258
9.64M
    double *psfmt64 = &dsfmt->status[0].d[0];
259
9.64M
260
9.64M
    if (
dsfmt->idx >= 9.64M
DSFMT_N649.64M
)
{25.2k
261
25.2k
  dsfmt_gen_rand_all(dsfmt);
262
25.2k
  dsfmt->idx = 0;
263
25.2k
    }
264
9.64M
    r = psfmt64[dsfmt->idx++];
265
9.64M
    return r;
266
9.64M
}
numeric.tests.c:dsfmt_genrand_close1_open2
Line
Count
Source
256
10
inline static double dsfmt_genrand_close1_open2(dsfmt_t *dsfmt) {
257
10
    double r;
258
10
    double *psfmt64 = &dsfmt->status[0].d[0];
259
10
260
10
    if (
dsfmt->idx >= 10
DSFMT_N6410
)
{1
261
1
  dsfmt_gen_rand_all(dsfmt);
262
1
  dsfmt->idx = 0;
263
1
    }
264
10
    r = psfmt64[dsfmt->idx++];
265
10
    return r;
266
10
}
util.tests.c:dsfmt_genrand_close1_open2
Line
Count
Source
256
700
inline static double dsfmt_genrand_close1_open2(dsfmt_t *dsfmt) {
257
700
    double r;
258
700
    double *psfmt64 = &dsfmt->status[0].d[0];
259
700
260
700
    if (
dsfmt->idx >= 700
DSFMT_N64700
)
{5
261
5
  dsfmt_gen_rand_all(dsfmt);
262
5
  dsfmt->idx = 0;
263
5
    }
264
700
    r = psfmt64[dsfmt->idx++];
265
700
    return r;
266
700
}
Unexecuted instantiation: symbolic.graph.tests.c:dsfmt_genrand_close1_open2
graph.tests.c:dsfmt_genrand_close1_open2
Line
Count
Source
256
120
inline static double dsfmt_genrand_close1_open2(dsfmt_t *dsfmt) {
257
120
    double r;
258
120
    double *psfmt64 = &dsfmt->status[0].d[0];
259
120
260
120
    if (
dsfmt->idx >= 120
DSFMT_N64120
)
{1
261
1
  dsfmt_gen_rand_all(dsfmt);
262
1
  dsfmt->idx = 0;
263
1
    }
264
120
    r = psfmt64[dsfmt->idx++];
265
120
    return r;
266
120
}
Unexecuted instantiation: transform.tests.c:dsfmt_genrand_close1_open2
gradient.tests.c:dsfmt_genrand_close1_open2
Line
Count
Source
256
120
inline static double dsfmt_genrand_close1_open2(dsfmt_t *dsfmt) {
257
120
    double r;
258
120
    double *psfmt64 = &dsfmt->status[0].d[0];
259
120
260
120
    if (
dsfmt->idx >= 120
DSFMT_N64120
)
{1
261
1
  dsfmt_gen_rand_all(dsfmt);
262
1
  dsfmt->idx = 0;
263
1
    }
264
120
    r = psfmt64[dsfmt->idx++];
265
120
    return r;
266
120
}
Unexecuted instantiation: tape.tests.c:dsfmt_genrand_close1_open2
winograd.tests.c:dsfmt_genrand_close1_open2
Line
Count
Source
256
1.23M
inline static double dsfmt_genrand_close1_open2(dsfmt_t *dsfmt) {
257
1.23M
    double r;
258
1.23M
    double *psfmt64 = &dsfmt->status[0].d[0];
259
1.23M
260
1.23M
    if (
dsfmt->idx >= 1.23M
DSFMT_N641.23M
)
{3.24k
261
3.24k
  dsfmt_gen_rand_all(dsfmt);
262
3.24k
  dsfmt->idx = 0;
263
3.24k
    }
264
1.23M
    r = psfmt64[dsfmt->idx++];
265
1.23M
    return r;
266
1.23M
}
while.tests.c:dsfmt_genrand_close1_open2
Line
Count
Source
256
1.22k
inline static double dsfmt_genrand_close1_open2(dsfmt_t *dsfmt) {
257
1.22k
    double r;
258
1.22k
    double *psfmt64 = &dsfmt->status[0].d[0];
259
1.22k
260
1.22k
    if (
dsfmt->idx >= 1.22k
DSFMT_N641.22k
)
{5
261
5
  dsfmt_gen_rand_all(dsfmt);
262
5
  dsfmt->idx = 0;
263
5
    }
264
1.22k
    r = psfmt64[dsfmt->idx++];
265
1.22k
    return r;
266
1.22k
}
convnet.tests.c:dsfmt_genrand_close1_open2
Line
Count
Source
256
4.58k
inline static double dsfmt_genrand_close1_open2(dsfmt_t *dsfmt) {
257
4.58k
    double r;
258
4.58k
    double *psfmt64 = &dsfmt->status[0].d[0];
259
4.58k
260
4.58k
    if (
dsfmt->idx >= 4.58k
DSFMT_N644.58k
)
{14
261
14
  dsfmt_gen_rand_all(dsfmt);
262
14
  dsfmt->idx = 0;
263
14
    }
264
4.58k
    r = psfmt64[dsfmt->idx++];
265
4.58k
    return r;
266
4.58k
}
Unexecuted instantiation: while.backward.tests.c:dsfmt_genrand_close1_open2
267
268
/**
269
 * This function generates and returns unsigned 32-bit integer.
270
 * This is slower than SFMT, only for convenience usage.
271
 * dsfmt_gv_init_gen_rand() or dsfmt_gv_init_by_array() must be called
272
 * before this function.  This function uses \b global variables.
273
 * @return double precision floating point pseudorandom number
274
 */
275
0
inline static uint32_t dsfmt_gv_genrand_uint32(void) {
276
0
    return dsfmt_genrand_uint32(&dsfmt_global_data);
277
0
}
Unexecuted instantiation: cudnn.tests.c:dsfmt_gv_genrand_uint32
Unexecuted instantiation: convnet.tests.c:dsfmt_gv_genrand_uint32
Unexecuted instantiation: while.tests.c:dsfmt_gv_genrand_uint32
Unexecuted instantiation: winograd.tests.c:dsfmt_gv_genrand_uint32
Unexecuted instantiation: tape.tests.c:dsfmt_gv_genrand_uint32
Unexecuted instantiation: gradient.tests.c:dsfmt_gv_genrand_uint32
Unexecuted instantiation: transform.tests.c:dsfmt_gv_genrand_uint32
Unexecuted instantiation: while.backward.tests.c:dsfmt_gv_genrand_uint32
Unexecuted instantiation: graph.tests.c:dsfmt_gv_genrand_uint32
Unexecuted instantiation: symbolic.graph.tests.c:dsfmt_gv_genrand_uint32
Unexecuted instantiation: util.tests.c:dsfmt_gv_genrand_uint32
Unexecuted instantiation: numeric.tests.c:dsfmt_gv_genrand_uint32
Unexecuted instantiation: dSFMT.c:dsfmt_gv_genrand_uint32
278
279
/**
280
 * This function generates and returns double precision pseudorandom
281
 * number which distributes uniformly in the range [1, 2).
282
 * dsfmt_gv_init_gen_rand() or dsfmt_gv_init_by_array() must be called
283
 * before this function. This function uses \b global variables.
284
 * @return double precision floating point pseudorandom number
285
 */
286
0
inline static double dsfmt_gv_genrand_close1_open2(void) {
287
0
    return dsfmt_genrand_close1_open2(&dsfmt_global_data);
288
0
}
Unexecuted instantiation: winograd.tests.c:dsfmt_gv_genrand_close1_open2
Unexecuted instantiation: dSFMT.c:dsfmt_gv_genrand_close1_open2
Unexecuted instantiation: cudnn.tests.c:dsfmt_gv_genrand_close1_open2
Unexecuted instantiation: numeric.tests.c:dsfmt_gv_genrand_close1_open2
Unexecuted instantiation: util.tests.c:dsfmt_gv_genrand_close1_open2
Unexecuted instantiation: symbolic.graph.tests.c:dsfmt_gv_genrand_close1_open2
Unexecuted instantiation: graph.tests.c:dsfmt_gv_genrand_close1_open2
Unexecuted instantiation: while.backward.tests.c:dsfmt_gv_genrand_close1_open2
Unexecuted instantiation: transform.tests.c:dsfmt_gv_genrand_close1_open2
Unexecuted instantiation: gradient.tests.c:dsfmt_gv_genrand_close1_open2
Unexecuted instantiation: tape.tests.c:dsfmt_gv_genrand_close1_open2
Unexecuted instantiation: while.tests.c:dsfmt_gv_genrand_close1_open2
Unexecuted instantiation: convnet.tests.c:dsfmt_gv_genrand_close1_open2
289
290
/**
291
 * This function generates and returns double precision pseudorandom
292
 * number which distributes uniformly in the range [0, 1).
293
 * dsfmt_init_gen_rand() or dsfmt_init_by_array() must be called
294
 * before this function.
295
 * @param dsfmt dsfmt internal state date
296
 * @return double precision floating point pseudorandom number
297
 */
298
710
inline static double dsfmt_genrand_close_open(dsfmt_t *dsfmt) {
299
710
    return dsfmt_genrand_close1_open2(dsfmt) - 1.0;
300
710
}
Unexecuted instantiation: convnet.tests.c:dsfmt_genrand_close_open
Unexecuted instantiation: while.tests.c:dsfmt_genrand_close_open
Unexecuted instantiation: winograd.tests.c:dsfmt_genrand_close_open
Unexecuted instantiation: tape.tests.c:dsfmt_genrand_close_open
Unexecuted instantiation: gradient.tests.c:dsfmt_genrand_close_open
Unexecuted instantiation: transform.tests.c:dsfmt_genrand_close_open
Unexecuted instantiation: while.backward.tests.c:dsfmt_genrand_close_open
Unexecuted instantiation: graph.tests.c:dsfmt_genrand_close_open
Unexecuted instantiation: symbolic.graph.tests.c:dsfmt_genrand_close_open
util.tests.c:dsfmt_genrand_close_open
Line
Count
Source
298
700
inline static double dsfmt_genrand_close_open(dsfmt_t *dsfmt) {
299
700
    return dsfmt_genrand_close1_open2(dsfmt) - 1.0;
300
700
}
numeric.tests.c:dsfmt_genrand_close_open
Line
Count
Source
298
10
inline static double dsfmt_genrand_close_open(dsfmt_t *dsfmt) {
299
10
    return dsfmt_genrand_close1_open2(dsfmt) - 1.0;
300
10
}
Unexecuted instantiation: cudnn.tests.c:dsfmt_genrand_close_open
Unexecuted instantiation: dSFMT.c:dsfmt_genrand_close_open
301
302
/**
303
 * This function generates and returns double precision pseudorandom
304
 * number which distributes uniformly in the range [0, 1).
305
 * dsfmt_gv_init_gen_rand() or dsfmt_gv_init_by_array() must be called
306
 * before this function. This function uses \b global variables.
307
 * @return double precision floating point pseudorandom number
308
 */
309
0
inline static double dsfmt_gv_genrand_close_open(void) {
310
0
    return dsfmt_gv_genrand_close1_open2() - 1.0;
311
0
}
Unexecuted instantiation: convnet.tests.c:dsfmt_gv_genrand_close_open
Unexecuted instantiation: while.tests.c:dsfmt_gv_genrand_close_open
Unexecuted instantiation: dSFMT.c:dsfmt_gv_genrand_close_open
Unexecuted instantiation: cudnn.tests.c:dsfmt_gv_genrand_close_open
Unexecuted instantiation: numeric.tests.c:dsfmt_gv_genrand_close_open
Unexecuted instantiation: util.tests.c:dsfmt_gv_genrand_close_open
Unexecuted instantiation: symbolic.graph.tests.c:dsfmt_gv_genrand_close_open
Unexecuted instantiation: graph.tests.c:dsfmt_gv_genrand_close_open
Unexecuted instantiation: while.backward.tests.c:dsfmt_gv_genrand_close_open
Unexecuted instantiation: transform.tests.c:dsfmt_gv_genrand_close_open
Unexecuted instantiation: gradient.tests.c:dsfmt_gv_genrand_close_open
Unexecuted instantiation: tape.tests.c:dsfmt_gv_genrand_close_open
Unexecuted instantiation: winograd.tests.c:dsfmt_gv_genrand_close_open
312
313
/**
314
 * This function generates and returns double precision pseudorandom
315
 * number which distributes uniformly in the range (0, 1].
316
 * dsfmt_init_gen_rand() or dsfmt_init_by_array() must be called
317
 * before this function.
318
 * @param dsfmt dsfmt internal state date
319
 * @return double precision floating point pseudorandom number
320
 */
321
10.8M
inline static double dsfmt_genrand_open_close(dsfmt_t *dsfmt) {
322
10.8M
    return 2.0 - dsfmt_genrand_close1_open2(dsfmt);
323
10.8M
}
while.tests.c:dsfmt_genrand_open_close
Line
Count
Source
321
1.22k
inline static double dsfmt_genrand_open_close(dsfmt_t *dsfmt) {
322
1.22k
    return 2.0 - dsfmt_genrand_close1_open2(dsfmt);
323
1.22k
}
Unexecuted instantiation: dSFMT.c:dsfmt_genrand_open_close
cudnn.tests.c:dsfmt_genrand_open_close
Line
Count
Source
321
9.64M
inline static double dsfmt_genrand_open_close(dsfmt_t *dsfmt) {
322
9.64M
    return 2.0 - dsfmt_genrand_close1_open2(dsfmt);
323
9.64M
}
Unexecuted instantiation: numeric.tests.c:dsfmt_genrand_open_close
Unexecuted instantiation: util.tests.c:dsfmt_genrand_open_close
Unexecuted instantiation: symbolic.graph.tests.c:dsfmt_genrand_open_close
graph.tests.c:dsfmt_genrand_open_close
Line
Count
Source
321
120
inline static double dsfmt_genrand_open_close(dsfmt_t *dsfmt) {
322
120
    return 2.0 - dsfmt_genrand_close1_open2(dsfmt);
323
120
}
Unexecuted instantiation: while.backward.tests.c:dsfmt_genrand_open_close
Unexecuted instantiation: transform.tests.c:dsfmt_genrand_open_close
gradient.tests.c:dsfmt_genrand_open_close
Line
Count
Source
321
120
inline static double dsfmt_genrand_open_close(dsfmt_t *dsfmt) {
322
120
    return 2.0 - dsfmt_genrand_close1_open2(dsfmt);
323
120
}
Unexecuted instantiation: tape.tests.c:dsfmt_genrand_open_close
winograd.tests.c:dsfmt_genrand_open_close
Line
Count
Source
321
1.23M
inline static double dsfmt_genrand_open_close(dsfmt_t *dsfmt) {
322
1.23M
    return 2.0 - dsfmt_genrand_close1_open2(dsfmt);
323
1.23M
}
convnet.tests.c:dsfmt_genrand_open_close
Line
Count
Source
321
4.58k
inline static double dsfmt_genrand_open_close(dsfmt_t *dsfmt) {
322
4.58k
    return 2.0 - dsfmt_genrand_close1_open2(dsfmt);
323
4.58k
}
324
325
/**
326
 * This function generates and returns double precision pseudorandom
327
 * number which distributes uniformly in the range (0, 1].
328
 * dsfmt_gv_init_gen_rand() or dsfmt_gv_init_by_array() must be called
329
 * before this function. This function uses \b global variables.
330
 * @return double precision floating point pseudorandom number
331
 */
332
0
inline static double dsfmt_gv_genrand_open_close(void) {
333
0
    return 2.0 - dsfmt_gv_genrand_close1_open2();
334
0
}
Unexecuted instantiation: while.backward.tests.c:dsfmt_gv_genrand_open_close
Unexecuted instantiation: while.tests.c:dsfmt_gv_genrand_open_close
Unexecuted instantiation: transform.tests.c:dsfmt_gv_genrand_open_close
Unexecuted instantiation: gradient.tests.c:dsfmt_gv_genrand_open_close
Unexecuted instantiation: tape.tests.c:dsfmt_gv_genrand_open_close
Unexecuted instantiation: winograd.tests.c:dsfmt_gv_genrand_open_close
Unexecuted instantiation: convnet.tests.c:dsfmt_gv_genrand_open_close
Unexecuted instantiation: graph.tests.c:dsfmt_gv_genrand_open_close
Unexecuted instantiation: symbolic.graph.tests.c:dsfmt_gv_genrand_open_close
Unexecuted instantiation: util.tests.c:dsfmt_gv_genrand_open_close
Unexecuted instantiation: numeric.tests.c:dsfmt_gv_genrand_open_close
Unexecuted instantiation: cudnn.tests.c:dsfmt_gv_genrand_open_close
Unexecuted instantiation: dSFMT.c:dsfmt_gv_genrand_open_close
335
336
/**
337
 * This function generates and returns double precision pseudorandom
338
 * number which distributes uniformly in the range (0, 1).
339
 * dsfmt_init_gen_rand() or dsfmt_init_by_array() must be called
340
 * before this function.
341
 * @param dsfmt dsfmt internal state date
342
 * @return double precision floating point pseudorandom number
343
 */
344
0
inline static double dsfmt_genrand_open_open(dsfmt_t *dsfmt) {
345
0
    double *dsfmt64 = &dsfmt->status[0].d[0];
346
0
    union {
347
0
  double d;
348
0
  uint64_t u;
349
0
    } r;
350
0
351
0
    if (dsfmt->idx >= DSFMT_N64) {
352
0
  dsfmt_gen_rand_all(dsfmt);
353
0
  dsfmt->idx = 0;
354
0
    }
355
0
    r.d = dsfmt64[dsfmt->idx++];
356
0
    r.u |= 1;
357
0
    return r.d - 1.0;
358
0
}
Unexecuted instantiation: while.tests.c:dsfmt_genrand_open_open
Unexecuted instantiation: while.backward.tests.c:dsfmt_genrand_open_open
Unexecuted instantiation: convnet.tests.c:dsfmt_genrand_open_open
Unexecuted instantiation: winograd.tests.c:dsfmt_genrand_open_open
Unexecuted instantiation: tape.tests.c:dsfmt_genrand_open_open
Unexecuted instantiation: gradient.tests.c:dsfmt_genrand_open_open
Unexecuted instantiation: transform.tests.c:dsfmt_genrand_open_open
Unexecuted instantiation: graph.tests.c:dsfmt_genrand_open_open
Unexecuted instantiation: symbolic.graph.tests.c:dsfmt_genrand_open_open
Unexecuted instantiation: util.tests.c:dsfmt_genrand_open_open
Unexecuted instantiation: numeric.tests.c:dsfmt_genrand_open_open
Unexecuted instantiation: cudnn.tests.c:dsfmt_genrand_open_open
Unexecuted instantiation: dSFMT.c:dsfmt_genrand_open_open
359
360
/**
361
 * This function generates and returns double precision pseudorandom
362
 * number which distributes uniformly in the range (0, 1).
363
 * dsfmt_gv_init_gen_rand() or dsfmt_gv_init_by_array() must be called
364
 * before this function. This function uses \b global variables.
365
 * @return double precision floating point pseudorandom number
366
 */
367
0
inline static double dsfmt_gv_genrand_open_open(void) {
368
0
    return dsfmt_genrand_open_open(&dsfmt_global_data);
369
0
}
Unexecuted instantiation: convnet.tests.c:dsfmt_gv_genrand_open_open
Unexecuted instantiation: while.tests.c:dsfmt_gv_genrand_open_open
Unexecuted instantiation: winograd.tests.c:dsfmt_gv_genrand_open_open
Unexecuted instantiation: tape.tests.c:dsfmt_gv_genrand_open_open
Unexecuted instantiation: gradient.tests.c:dsfmt_gv_genrand_open_open
Unexecuted instantiation: transform.tests.c:dsfmt_gv_genrand_open_open
Unexecuted instantiation: while.backward.tests.c:dsfmt_gv_genrand_open_open
Unexecuted instantiation: graph.tests.c:dsfmt_gv_genrand_open_open
Unexecuted instantiation: symbolic.graph.tests.c:dsfmt_gv_genrand_open_open
Unexecuted instantiation: util.tests.c:dsfmt_gv_genrand_open_open
Unexecuted instantiation: numeric.tests.c:dsfmt_gv_genrand_open_open
Unexecuted instantiation: cudnn.tests.c:dsfmt_gv_genrand_open_open
Unexecuted instantiation: dSFMT.c:dsfmt_gv_genrand_open_open
370
371
/**
372
 * This function generates double precision floating point
373
 * pseudorandom numbers which distribute in the range [1, 2) to the
374
 * specified array[] by one call. This function is the same as
375
 * dsfmt_fill_array_close1_open2() except that this function uses
376
 * \b global variables.
377
 * @param array an array where pseudorandom numbers are filled
378
 * by this function.
379
 * @param size the number of pseudorandom numbers to be generated.
380
 * see also \sa dsfmt_fill_array_close1_open2()
381
 */
382
0
inline static void dsfmt_gv_fill_array_close1_open2(double array[], int size) {
383
0
    dsfmt_fill_array_close1_open2(&dsfmt_global_data, array, size);
384
0
}
Unexecuted instantiation: while.tests.c:dsfmt_gv_fill_array_close1_open2
Unexecuted instantiation: convnet.tests.c:dsfmt_gv_fill_array_close1_open2
Unexecuted instantiation: winograd.tests.c:dsfmt_gv_fill_array_close1_open2
Unexecuted instantiation: tape.tests.c:dsfmt_gv_fill_array_close1_open2
Unexecuted instantiation: gradient.tests.c:dsfmt_gv_fill_array_close1_open2
Unexecuted instantiation: transform.tests.c:dsfmt_gv_fill_array_close1_open2
Unexecuted instantiation: while.backward.tests.c:dsfmt_gv_fill_array_close1_open2
Unexecuted instantiation: graph.tests.c:dsfmt_gv_fill_array_close1_open2
Unexecuted instantiation: symbolic.graph.tests.c:dsfmt_gv_fill_array_close1_open2
Unexecuted instantiation: util.tests.c:dsfmt_gv_fill_array_close1_open2
Unexecuted instantiation: numeric.tests.c:dsfmt_gv_fill_array_close1_open2
Unexecuted instantiation: cudnn.tests.c:dsfmt_gv_fill_array_close1_open2
Unexecuted instantiation: dSFMT.c:dsfmt_gv_fill_array_close1_open2
385
386
/**
387
 * This function generates double precision floating point
388
 * pseudorandom numbers which distribute in the range (0, 1] to the
389
 * specified array[] by one call. This function is the same as
390
 * dsfmt_gv_fill_array_close1_open2() except the distribution range.
391
 * This function uses \b global variables.
392
 * @param array an array where pseudorandom numbers are filled
393
 * by this function.
394
 * @param size the number of pseudorandom numbers to be generated.
395
 * see also \sa dsfmt_fill_array_close1_open2() and \sa
396
 * dsfmt_gv_fill_array_close1_open2()
397
 */
398
0
inline static void dsfmt_gv_fill_array_open_close(double array[], int size) {
399
0
    dsfmt_fill_array_open_close(&dsfmt_global_data, array, size);
400
0
}
Unexecuted instantiation: util.tests.c:dsfmt_gv_fill_array_open_close
Unexecuted instantiation: dSFMT.c:dsfmt_gv_fill_array_open_close
Unexecuted instantiation: numeric.tests.c:dsfmt_gv_fill_array_open_close
Unexecuted instantiation: symbolic.graph.tests.c:dsfmt_gv_fill_array_open_close
Unexecuted instantiation: graph.tests.c:dsfmt_gv_fill_array_open_close
Unexecuted instantiation: while.backward.tests.c:dsfmt_gv_fill_array_open_close
Unexecuted instantiation: transform.tests.c:dsfmt_gv_fill_array_open_close
Unexecuted instantiation: gradient.tests.c:dsfmt_gv_fill_array_open_close
Unexecuted instantiation: tape.tests.c:dsfmt_gv_fill_array_open_close
Unexecuted instantiation: winograd.tests.c:dsfmt_gv_fill_array_open_close
Unexecuted instantiation: while.tests.c:dsfmt_gv_fill_array_open_close
Unexecuted instantiation: convnet.tests.c:dsfmt_gv_fill_array_open_close
Unexecuted instantiation: cudnn.tests.c:dsfmt_gv_fill_array_open_close
401
402
/**
403
 * This function generates double precision floating point
404
 * pseudorandom numbers which distribute in the range [0, 1) to the
405
 * specified array[] by one call. This function is the same as
406
 * dsfmt_gv_fill_array_close1_open2() except the distribution range.
407
 * This function uses \b global variables.
408
 * @param array an array where pseudorandom numbers are filled
409
 * by this function.
410
 * @param size the number of pseudorandom numbers to be generated.
411
 * see also \sa dsfmt_fill_array_close1_open2() \sa
412
 * dsfmt_gv_fill_array_close1_open2()
413
 */
414
0
inline static void dsfmt_gv_fill_array_close_open(double array[], int size) {
415
0
    dsfmt_fill_array_close_open(&dsfmt_global_data, array, size);
416
0
}
Unexecuted instantiation: while.tests.c:dsfmt_gv_fill_array_close_open
Unexecuted instantiation: convnet.tests.c:dsfmt_gv_fill_array_close_open
Unexecuted instantiation: winograd.tests.c:dsfmt_gv_fill_array_close_open
Unexecuted instantiation: tape.tests.c:dsfmt_gv_fill_array_close_open
Unexecuted instantiation: gradient.tests.c:dsfmt_gv_fill_array_close_open
Unexecuted instantiation: transform.tests.c:dsfmt_gv_fill_array_close_open
Unexecuted instantiation: while.backward.tests.c:dsfmt_gv_fill_array_close_open
Unexecuted instantiation: graph.tests.c:dsfmt_gv_fill_array_close_open
Unexecuted instantiation: symbolic.graph.tests.c:dsfmt_gv_fill_array_close_open
Unexecuted instantiation: util.tests.c:dsfmt_gv_fill_array_close_open
Unexecuted instantiation: numeric.tests.c:dsfmt_gv_fill_array_close_open
Unexecuted instantiation: cudnn.tests.c:dsfmt_gv_fill_array_close_open
Unexecuted instantiation: dSFMT.c:dsfmt_gv_fill_array_close_open
417
418
/**
419
 * This function generates double precision floating point
420
 * pseudorandom numbers which distribute in the range (0, 1) to the
421
 * specified array[] by one call. This function is the same as
422
 * dsfmt_gv_fill_array_close1_open2() except the distribution range.
423
 * This function uses \b global variables.
424
 * @param array an array where pseudorandom numbers are filled
425
 * by this function.
426
 * @param size the number of pseudorandom numbers to be generated.
427
 * see also \sa dsfmt_fill_array_close1_open2() \sa
428
 * dsfmt_gv_fill_array_close1_open2()
429
 */
430
0
inline static void dsfmt_gv_fill_array_open_open(double array[], int size) {
431
0
    dsfmt_fill_array_open_open(&dsfmt_global_data, array, size);
432
0
}
Unexecuted instantiation: while.tests.c:dsfmt_gv_fill_array_open_open
Unexecuted instantiation: convnet.tests.c:dsfmt_gv_fill_array_open_open
Unexecuted instantiation: dSFMT.c:dsfmt_gv_fill_array_open_open
Unexecuted instantiation: winograd.tests.c:dsfmt_gv_fill_array_open_open
Unexecuted instantiation: tape.tests.c:dsfmt_gv_fill_array_open_open
Unexecuted instantiation: gradient.tests.c:dsfmt_gv_fill_array_open_open
Unexecuted instantiation: transform.tests.c:dsfmt_gv_fill_array_open_open
Unexecuted instantiation: while.backward.tests.c:dsfmt_gv_fill_array_open_open
Unexecuted instantiation: graph.tests.c:dsfmt_gv_fill_array_open_open
Unexecuted instantiation: symbolic.graph.tests.c:dsfmt_gv_fill_array_open_open
Unexecuted instantiation: util.tests.c:dsfmt_gv_fill_array_open_open
Unexecuted instantiation: numeric.tests.c:dsfmt_gv_fill_array_open_open
Unexecuted instantiation: cudnn.tests.c:dsfmt_gv_fill_array_open_open
433
434
/**
435
 * This function initializes the internal state array with a 32-bit
436
 * integer seed.
437
 * @param dsfmt dsfmt state vector.
438
 * @param seed a 32-bit integer used as the seed.
439
 */
440
21
inline static void dsfmt_init_gen_rand(dsfmt_t *dsfmt, uint32_t seed) {
441
21
    dsfmt_chk_init_gen_rand(dsfmt, seed, DSFMT_MEXP);
442
21
}
while.tests.c:dsfmt_init_gen_rand
Line
Count
Source
440
5
inline static void dsfmt_init_gen_rand(dsfmt_t *dsfmt, uint32_t seed) {
441
5
    dsfmt_chk_init_gen_rand(dsfmt, seed, DSFMT_MEXP);
442
5
}
convnet.tests.c:dsfmt_init_gen_rand
Line
Count
Source
440
4
inline static void dsfmt_init_gen_rand(dsfmt_t *dsfmt, uint32_t seed) {
441
4
    dsfmt_chk_init_gen_rand(dsfmt, seed, DSFMT_MEXP);
442
4
}
winograd.tests.c:dsfmt_init_gen_rand
Line
Count
Source
440
3
inline static void dsfmt_init_gen_rand(dsfmt_t *dsfmt, uint32_t seed) {
441
3
    dsfmt_chk_init_gen_rand(dsfmt, seed, DSFMT_MEXP);
442
3
}
Unexecuted instantiation: tape.tests.c:dsfmt_init_gen_rand
gradient.tests.c:dsfmt_init_gen_rand
Line
Count
Source
440
1
inline static void dsfmt_init_gen_rand(dsfmt_t *dsfmt, uint32_t seed) {
441
1
    dsfmt_chk_init_gen_rand(dsfmt, seed, DSFMT_MEXP);
442
1
}
Unexecuted instantiation: transform.tests.c:dsfmt_init_gen_rand
Unexecuted instantiation: while.backward.tests.c:dsfmt_init_gen_rand
graph.tests.c:dsfmt_init_gen_rand
Line
Count
Source
440
1
inline static void dsfmt_init_gen_rand(dsfmt_t *dsfmt, uint32_t seed) {
441
1
    dsfmt_chk_init_gen_rand(dsfmt, seed, DSFMT_MEXP);
442
1
}
Unexecuted instantiation: symbolic.graph.tests.c:dsfmt_init_gen_rand
util.tests.c:dsfmt_init_gen_rand
Line
Count
Source
440
5
inline static void dsfmt_init_gen_rand(dsfmt_t *dsfmt, uint32_t seed) {
441
5
    dsfmt_chk_init_gen_rand(dsfmt, seed, DSFMT_MEXP);
442
5
}
numeric.tests.c:dsfmt_init_gen_rand
Line
Count
Source
440
1
inline static void dsfmt_init_gen_rand(dsfmt_t *dsfmt, uint32_t seed) {
441
1
    dsfmt_chk_init_gen_rand(dsfmt, seed, DSFMT_MEXP);
442
1
}
cudnn.tests.c:dsfmt_init_gen_rand
Line
Count
Source
440
1
inline static void dsfmt_init_gen_rand(dsfmt_t *dsfmt, uint32_t seed) {
441
1
    dsfmt_chk_init_gen_rand(dsfmt, seed, DSFMT_MEXP);
442
1
}
Unexecuted instantiation: dSFMT.c:dsfmt_init_gen_rand
443
444
/**
445
 * This function initializes the internal state array with a 32-bit
446
 * integer seed. This function uses \b global variables.
447
 * @param seed a 32-bit integer used as the seed.
448
 * see also \sa dsfmt_init_gen_rand()
449
 */
450
0
inline static void dsfmt_gv_init_gen_rand(uint32_t seed) {
451
0
    dsfmt_init_gen_rand(&dsfmt_global_data, seed);
452
0
}
Unexecuted instantiation: dSFMT.c:dsfmt_gv_init_gen_rand
Unexecuted instantiation: cudnn.tests.c:dsfmt_gv_init_gen_rand
Unexecuted instantiation: convnet.tests.c:dsfmt_gv_init_gen_rand
Unexecuted instantiation: while.tests.c:dsfmt_gv_init_gen_rand
Unexecuted instantiation: winograd.tests.c:dsfmt_gv_init_gen_rand
Unexecuted instantiation: tape.tests.c:dsfmt_gv_init_gen_rand
Unexecuted instantiation: gradient.tests.c:dsfmt_gv_init_gen_rand
Unexecuted instantiation: transform.tests.c:dsfmt_gv_init_gen_rand
Unexecuted instantiation: while.backward.tests.c:dsfmt_gv_init_gen_rand
Unexecuted instantiation: graph.tests.c:dsfmt_gv_init_gen_rand
Unexecuted instantiation: symbolic.graph.tests.c:dsfmt_gv_init_gen_rand
Unexecuted instantiation: util.tests.c:dsfmt_gv_init_gen_rand
Unexecuted instantiation: numeric.tests.c:dsfmt_gv_init_gen_rand
453
454
/**
455
 * This function initializes the internal state array,
456
 * with an array of 32-bit integers used as the seeds.
457
 * @param dsfmt dsfmt state vector
458
 * @param init_key the array of 32-bit integers, used as a seed.
459
 * @param key_length the length of init_key.
460
 */
461
inline static void dsfmt_init_by_array(dsfmt_t *dsfmt, uint32_t init_key[],
462
0
               int key_length) {
463
0
    dsfmt_chk_init_by_array(dsfmt, init_key, key_length, DSFMT_MEXP);
464
0
}
Unexecuted instantiation: winograd.tests.c:dsfmt_init_by_array
Unexecuted instantiation: convnet.tests.c:dsfmt_init_by_array
Unexecuted instantiation: dSFMT.c:dsfmt_init_by_array
Unexecuted instantiation: cudnn.tests.c:dsfmt_init_by_array
Unexecuted instantiation: numeric.tests.c:dsfmt_init_by_array
Unexecuted instantiation: util.tests.c:dsfmt_init_by_array
Unexecuted instantiation: symbolic.graph.tests.c:dsfmt_init_by_array
Unexecuted instantiation: graph.tests.c:dsfmt_init_by_array
Unexecuted instantiation: while.backward.tests.c:dsfmt_init_by_array
Unexecuted instantiation: transform.tests.c:dsfmt_init_by_array
Unexecuted instantiation: gradient.tests.c:dsfmt_init_by_array
Unexecuted instantiation: tape.tests.c:dsfmt_init_by_array
Unexecuted instantiation: while.tests.c:dsfmt_init_by_array
465
466
/**
467
 * This function initializes the internal state array,
468
 * with an array of 32-bit integers used as the seeds.
469
 * This function uses \b global variables.
470
 * @param init_key the array of 32-bit integers, used as a seed.
471
 * @param key_length the length of init_key.
472
 * see also \sa dsfmt_init_by_array()
473
 */
474
0
inline static void dsfmt_gv_init_by_array(uint32_t init_key[], int key_length) {
475
0
    dsfmt_init_by_array(&dsfmt_global_data, init_key, key_length);
476
0
}
Unexecuted instantiation: dSFMT.c:dsfmt_gv_init_by_array
Unexecuted instantiation: convnet.tests.c:dsfmt_gv_init_by_array
Unexecuted instantiation: cudnn.tests.c:dsfmt_gv_init_by_array
Unexecuted instantiation: numeric.tests.c:dsfmt_gv_init_by_array
Unexecuted instantiation: util.tests.c:dsfmt_gv_init_by_array
Unexecuted instantiation: symbolic.graph.tests.c:dsfmt_gv_init_by_array
Unexecuted instantiation: graph.tests.c:dsfmt_gv_init_by_array
Unexecuted instantiation: while.backward.tests.c:dsfmt_gv_init_by_array
Unexecuted instantiation: transform.tests.c:dsfmt_gv_init_by_array
Unexecuted instantiation: gradient.tests.c:dsfmt_gv_init_by_array
Unexecuted instantiation: tape.tests.c:dsfmt_gv_init_by_array
Unexecuted instantiation: winograd.tests.c:dsfmt_gv_init_by_array
Unexecuted instantiation: while.tests.c:dsfmt_gv_init_by_array
477
478
#if !defined(DSFMT_DO_NOT_USE_OLD_NAMES)
479
DSFMT_PRE_INLINE const char *get_idstring(void) DSFMT_PST_INLINE;
480
DSFMT_PRE_INLINE int get_min_array_size(void) DSFMT_PST_INLINE;
481
DSFMT_PRE_INLINE void init_gen_rand(uint32_t seed) DSFMT_PST_INLINE;
482
DSFMT_PRE_INLINE void init_by_array(uint32_t init_key[], int key_length)
483
    DSFMT_PST_INLINE;
484
DSFMT_PRE_INLINE double genrand_close1_open2(void) DSFMT_PST_INLINE;
485
DSFMT_PRE_INLINE double genrand_close_open(void) DSFMT_PST_INLINE;
486
DSFMT_PRE_INLINE double genrand_open_close(void) DSFMT_PST_INLINE;
487
DSFMT_PRE_INLINE double genrand_open_open(void) DSFMT_PST_INLINE;
488
DSFMT_PRE_INLINE void fill_array_open_close(double array[], int size)
489
    DSFMT_PST_INLINE;
490
DSFMT_PRE_INLINE void fill_array_close_open(double array[], int size)
491
    DSFMT_PST_INLINE;
492
DSFMT_PRE_INLINE void fill_array_open_open(double array[], int size)
493
    DSFMT_PST_INLINE;
494
DSFMT_PRE_INLINE void fill_array_close1_open2(double array[], int size)
495
    DSFMT_PST_INLINE;
496
497
/**
498
 * This function is just the same as dsfmt_get_idstring().
499
 * @return id string.
500
 * see also \sa dsfmt_get_idstring()
501
 */
502
0
inline static const char *get_idstring(void) {
503
0
    return dsfmt_get_idstring();
504
0
}
Unexecuted instantiation: convnet.tests.c:get_idstring
Unexecuted instantiation: dSFMT.c:get_idstring
Unexecuted instantiation: cudnn.tests.c:get_idstring
Unexecuted instantiation: numeric.tests.c:get_idstring
Unexecuted instantiation: util.tests.c:get_idstring
Unexecuted instantiation: symbolic.graph.tests.c:get_idstring
Unexecuted instantiation: graph.tests.c:get_idstring
Unexecuted instantiation: while.backward.tests.c:get_idstring
Unexecuted instantiation: transform.tests.c:get_idstring
Unexecuted instantiation: gradient.tests.c:get_idstring
Unexecuted instantiation: tape.tests.c:get_idstring
Unexecuted instantiation: winograd.tests.c:get_idstring
Unexecuted instantiation: while.tests.c:get_idstring
505
506
/**
507
 * This function is just the same as dsfmt_get_min_array_size().
508
 * @return minimum size of array used for fill_array functions.
509
 * see also \sa dsfmt_get_min_array_size()
510
 */
511
0
inline static int get_min_array_size(void) {
512
0
    return dsfmt_get_min_array_size();
513
0
}
Unexecuted instantiation: cudnn.tests.c:get_min_array_size
Unexecuted instantiation: convnet.tests.c:get_min_array_size
Unexecuted instantiation: numeric.tests.c:get_min_array_size
Unexecuted instantiation: util.tests.c:get_min_array_size
Unexecuted instantiation: symbolic.graph.tests.c:get_min_array_size
Unexecuted instantiation: graph.tests.c:get_min_array_size
Unexecuted instantiation: while.backward.tests.c:get_min_array_size
Unexecuted instantiation: transform.tests.c:get_min_array_size
Unexecuted instantiation: gradient.tests.c:get_min_array_size
Unexecuted instantiation: tape.tests.c:get_min_array_size
Unexecuted instantiation: winograd.tests.c:get_min_array_size
Unexecuted instantiation: while.tests.c:get_min_array_size
Unexecuted instantiation: dSFMT.c:get_min_array_size
514
515
/**
516
 * This function is just the same as dsfmt_gv_init_gen_rand().
517
 * @param seed a 32-bit integer used as the seed.
518
 * see also \sa dsfmt_gv_init_gen_rand(), \sa dsfmt_init_gen_rand().
519
 */
520
0
inline static void init_gen_rand(uint32_t seed) {
521
0
    dsfmt_gv_init_gen_rand(seed);
522
0
}
Unexecuted instantiation: transform.tests.c:init_gen_rand
Unexecuted instantiation: dSFMT.c:init_gen_rand
Unexecuted instantiation: cudnn.tests.c:init_gen_rand
Unexecuted instantiation: numeric.tests.c:init_gen_rand
Unexecuted instantiation: util.tests.c:init_gen_rand
Unexecuted instantiation: symbolic.graph.tests.c:init_gen_rand
Unexecuted instantiation: graph.tests.c:init_gen_rand
Unexecuted instantiation: while.backward.tests.c:init_gen_rand
Unexecuted instantiation: gradient.tests.c:init_gen_rand
Unexecuted instantiation: tape.tests.c:init_gen_rand
Unexecuted instantiation: winograd.tests.c:init_gen_rand
Unexecuted instantiation: while.tests.c:init_gen_rand
Unexecuted instantiation: convnet.tests.c:init_gen_rand
523
524
/**
525
 * This function is just the same as dsfmt_gv_init_by_array().
526
 * @param init_key the array of 32-bit integers, used as a seed.
527
 * @param key_length the length of init_key.
528
 * see also \sa dsfmt_gv_init_by_array(), \sa dsfmt_init_by_array().
529
 */
530
0
inline static void init_by_array(uint32_t init_key[], int key_length) {
531
0
    dsfmt_gv_init_by_array(init_key, key_length);
532
0
}
Unexecuted instantiation: winograd.tests.c:init_by_array
Unexecuted instantiation: convnet.tests.c:init_by_array
Unexecuted instantiation: dSFMT.c:init_by_array
Unexecuted instantiation: cudnn.tests.c:init_by_array
Unexecuted instantiation: numeric.tests.c:init_by_array
Unexecuted instantiation: util.tests.c:init_by_array
Unexecuted instantiation: symbolic.graph.tests.c:init_by_array
Unexecuted instantiation: graph.tests.c:init_by_array
Unexecuted instantiation: while.backward.tests.c:init_by_array
Unexecuted instantiation: transform.tests.c:init_by_array
Unexecuted instantiation: gradient.tests.c:init_by_array
Unexecuted instantiation: tape.tests.c:init_by_array
Unexecuted instantiation: while.tests.c:init_by_array
533
534
/**
535
 * This function is just the same as dsfmt_gv_genrand_close1_open2().
536
 * @return double precision floating point number.
537
 * see also \sa dsfmt_genrand_close1_open2() \sa
538
 * dsfmt_gv_genrand_close1_open2()
539
 */
540
0
inline static double genrand_close1_open2(void) {
541
0
    return dsfmt_gv_genrand_close1_open2();
542
0
}
Unexecuted instantiation: convnet.tests.c:genrand_close1_open2
Unexecuted instantiation: dSFMT.c:genrand_close1_open2
Unexecuted instantiation: cudnn.tests.c:genrand_close1_open2
Unexecuted instantiation: numeric.tests.c:genrand_close1_open2
Unexecuted instantiation: util.tests.c:genrand_close1_open2
Unexecuted instantiation: symbolic.graph.tests.c:genrand_close1_open2
Unexecuted instantiation: graph.tests.c:genrand_close1_open2
Unexecuted instantiation: while.backward.tests.c:genrand_close1_open2
Unexecuted instantiation: transform.tests.c:genrand_close1_open2
Unexecuted instantiation: gradient.tests.c:genrand_close1_open2
Unexecuted instantiation: tape.tests.c:genrand_close1_open2
Unexecuted instantiation: winograd.tests.c:genrand_close1_open2
Unexecuted instantiation: while.tests.c:genrand_close1_open2
543
544
/**
545
 * This function is just the same as dsfmt_gv_genrand_close_open().
546
 * @return double precision floating point number.
547
 * see also \sa dsfmt_genrand_close_open() \sa
548
 * dsfmt_gv_genrand_close_open()
549
 */
550
0
inline static double genrand_close_open(void) {
551
0
    return dsfmt_gv_genrand_close_open();
552
0
}
Unexecuted instantiation: winograd.tests.c:genrand_close_open
Unexecuted instantiation: while.tests.c:genrand_close_open
Unexecuted instantiation: convnet.tests.c:genrand_close_open
Unexecuted instantiation: dSFMT.c:genrand_close_open
Unexecuted instantiation: cudnn.tests.c:genrand_close_open
Unexecuted instantiation: numeric.tests.c:genrand_close_open
Unexecuted instantiation: util.tests.c:genrand_close_open
Unexecuted instantiation: symbolic.graph.tests.c:genrand_close_open
Unexecuted instantiation: graph.tests.c:genrand_close_open
Unexecuted instantiation: while.backward.tests.c:genrand_close_open
Unexecuted instantiation: transform.tests.c:genrand_close_open
Unexecuted instantiation: gradient.tests.c:genrand_close_open
Unexecuted instantiation: tape.tests.c:genrand_close_open
553
554
/**
555
 * This function is just the same as dsfmt_gv_genrand_open_close().
556
 * @return double precision floating point number.
557
 * see also \sa dsfmt_genrand_open_close() \sa
558
 * dsfmt_gv_genrand_open_close()
559
 */
560
0
inline static double genrand_open_close(void) {
561
0
    return dsfmt_gv_genrand_open_close();
562
0
}
Unexecuted instantiation: dSFMT.c:genrand_open_close
Unexecuted instantiation: cudnn.tests.c:genrand_open_close
Unexecuted instantiation: numeric.tests.c:genrand_open_close
Unexecuted instantiation: util.tests.c:genrand_open_close
Unexecuted instantiation: symbolic.graph.tests.c:genrand_open_close
Unexecuted instantiation: graph.tests.c:genrand_open_close
Unexecuted instantiation: while.backward.tests.c:genrand_open_close
Unexecuted instantiation: gradient.tests.c:genrand_open_close
Unexecuted instantiation: tape.tests.c:genrand_open_close
Unexecuted instantiation: winograd.tests.c:genrand_open_close
Unexecuted instantiation: while.tests.c:genrand_open_close
Unexecuted instantiation: convnet.tests.c:genrand_open_close
Unexecuted instantiation: transform.tests.c:genrand_open_close
563
564
/**
565
 * This function is just the same as dsfmt_gv_genrand_open_open().
566
 * @return double precision floating point number.
567
 * see also \sa dsfmt_genrand_open_open() \sa
568
 * dsfmt_gv_genrand_open_open()
569
 */
570
0
inline static double genrand_open_open(void) {
571
0
    return dsfmt_gv_genrand_open_open();
572
0
}
Unexecuted instantiation: gradient.tests.c:genrand_open_open
Unexecuted instantiation: dSFMT.c:genrand_open_open
Unexecuted instantiation: cudnn.tests.c:genrand_open_open
Unexecuted instantiation: numeric.tests.c:genrand_open_open
Unexecuted instantiation: util.tests.c:genrand_open_open
Unexecuted instantiation: symbolic.graph.tests.c:genrand_open_open
Unexecuted instantiation: graph.tests.c:genrand_open_open
Unexecuted instantiation: while.backward.tests.c:genrand_open_open
Unexecuted instantiation: transform.tests.c:genrand_open_open
Unexecuted instantiation: tape.tests.c:genrand_open_open
Unexecuted instantiation: winograd.tests.c:genrand_open_open
Unexecuted instantiation: while.tests.c:genrand_open_open
Unexecuted instantiation: convnet.tests.c:genrand_open_open
573
574
/**
575
 * This function is juset the same as dsfmt_gv_fill_array_open_close().
576
 * @param array an array where pseudorandom numbers are filled
577
 * by this function.
578
 * @param size the number of pseudorandom numbers to be generated.
579
 * see also \sa dsfmt_gv_fill_array_open_close(), \sa
580
 * dsfmt_fill_array_close1_open2(), \sa
581
 * dsfmt_gv_fill_array_close1_open2()
582
 */
583
0
inline static void fill_array_open_close(double array[], int size) {
584
0
    dsfmt_gv_fill_array_open_close(array, size);
585
0
}
Unexecuted instantiation: dSFMT.c:fill_array_open_close
Unexecuted instantiation: convnet.tests.c:fill_array_open_close
Unexecuted instantiation: while.tests.c:fill_array_open_close
Unexecuted instantiation: winograd.tests.c:fill_array_open_close
Unexecuted instantiation: tape.tests.c:fill_array_open_close
Unexecuted instantiation: gradient.tests.c:fill_array_open_close
Unexecuted instantiation: transform.tests.c:fill_array_open_close
Unexecuted instantiation: while.backward.tests.c:fill_array_open_close
Unexecuted instantiation: graph.tests.c:fill_array_open_close
Unexecuted instantiation: symbolic.graph.tests.c:fill_array_open_close
Unexecuted instantiation: util.tests.c:fill_array_open_close
Unexecuted instantiation: numeric.tests.c:fill_array_open_close
Unexecuted instantiation: cudnn.tests.c:fill_array_open_close
586
587
/**
588
 * This function is juset the same as dsfmt_gv_fill_array_close_open().
589
 * @param array an array where pseudorandom numbers are filled
590
 * by this function.
591
 * @param size the number of pseudorandom numbers to be generated.
592
 * see also \sa dsfmt_gv_fill_array_close_open(), \sa
593
 * dsfmt_fill_array_close1_open2(), \sa
594
 * dsfmt_gv_fill_array_close1_open2()
595
 */
596
0
inline static void fill_array_close_open(double array[], int size) {
597
0
    dsfmt_gv_fill_array_close_open(array, size);
598
0
}
Unexecuted instantiation: dSFMT.c:fill_array_close_open
Unexecuted instantiation: cudnn.tests.c:fill_array_close_open
Unexecuted instantiation: numeric.tests.c:fill_array_close_open
Unexecuted instantiation: util.tests.c:fill_array_close_open
Unexecuted instantiation: symbolic.graph.tests.c:fill_array_close_open
Unexecuted instantiation: graph.tests.c:fill_array_close_open
Unexecuted instantiation: while.backward.tests.c:fill_array_close_open
Unexecuted instantiation: transform.tests.c:fill_array_close_open
Unexecuted instantiation: gradient.tests.c:fill_array_close_open
Unexecuted instantiation: tape.tests.c:fill_array_close_open
Unexecuted instantiation: winograd.tests.c:fill_array_close_open
Unexecuted instantiation: while.tests.c:fill_array_close_open
Unexecuted instantiation: convnet.tests.c:fill_array_close_open
599
600
/**
601
 * This function is juset the same as dsfmt_gv_fill_array_open_open().
602
 * @param array an array where pseudorandom numbers are filled
603
 * by this function.
604
 * @param size the number of pseudorandom numbers to be generated.
605
 * see also \sa dsfmt_gv_fill_array_open_open(), \sa
606
 * dsfmt_fill_array_close1_open2(), \sa
607
 * dsfmt_gv_fill_array_close1_open2()
608
 */
609
0
inline static void fill_array_open_open(double array[], int size) {
610
0
    dsfmt_gv_fill_array_open_open(array, size);
611
0
}
Unexecuted instantiation: while.tests.c:fill_array_open_open
Unexecuted instantiation: cudnn.tests.c:fill_array_open_open
Unexecuted instantiation: dSFMT.c:fill_array_open_open
Unexecuted instantiation: convnet.tests.c:fill_array_open_open
Unexecuted instantiation: winograd.tests.c:fill_array_open_open
Unexecuted instantiation: tape.tests.c:fill_array_open_open
Unexecuted instantiation: gradient.tests.c:fill_array_open_open
Unexecuted instantiation: transform.tests.c:fill_array_open_open
Unexecuted instantiation: while.backward.tests.c:fill_array_open_open
Unexecuted instantiation: graph.tests.c:fill_array_open_open
Unexecuted instantiation: symbolic.graph.tests.c:fill_array_open_open
Unexecuted instantiation: util.tests.c:fill_array_open_open
Unexecuted instantiation: numeric.tests.c:fill_array_open_open
612
613
/**
614
 * This function is juset the same as dsfmt_gv_fill_array_close1_open2().
615
 * @param array an array where pseudorandom numbers are filled
616
 * by this function.
617
 * @param size the number of pseudorandom numbers to be generated.
618
 * see also \sa dsfmt_fill_array_close1_open2(), \sa
619
 * dsfmt_gv_fill_array_close1_open2()
620
 */
621
0
inline static void fill_array_close1_open2(double array[], int size) {
622
0
    dsfmt_gv_fill_array_close1_open2(array, size);
623
0
}
Unexecuted instantiation: dSFMT.c:fill_array_close1_open2
Unexecuted instantiation: cudnn.tests.c:fill_array_close1_open2
Unexecuted instantiation: numeric.tests.c:fill_array_close1_open2
Unexecuted instantiation: util.tests.c:fill_array_close1_open2
Unexecuted instantiation: symbolic.graph.tests.c:fill_array_close1_open2
Unexecuted instantiation: graph.tests.c:fill_array_close1_open2
Unexecuted instantiation: while.backward.tests.c:fill_array_close1_open2
Unexecuted instantiation: transform.tests.c:fill_array_close1_open2
Unexecuted instantiation: gradient.tests.c:fill_array_close1_open2
Unexecuted instantiation: tape.tests.c:fill_array_close1_open2
Unexecuted instantiation: winograd.tests.c:fill_array_close1_open2
Unexecuted instantiation: while.tests.c:fill_array_close1_open2
Unexecuted instantiation: convnet.tests.c:fill_array_close1_open2
624
#endif /* DSFMT_DO_NOT_USE_OLD_NAMES */
625
626
#if defined(__cplusplus)
627
}
628
#endif
629
630
#endif /* DSFMT_H */