1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
# Check functions for other miscellaneous functions
# Test suite for the IGraph library.
# Copyright (C) 2011-2012 Gabor Csardi <csardi.gabor@gmail.com>
# 334 Harvard st, Cambridge MA, 02139, USA
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301 USA
AT_BANNER([Random number generators])
AT_SETUP([Random seed:])
AT_KEYWORDS([RNG seed random])
AT_COMPILE_CHECK([simple/random_seed.c])
AT_CLEANUP
AT_SETUP([RNG reproducibility:])
AT_KEYWORDS([RNG seed random])
AT_COMPILE_CHECK([tests/rng_reproducibility.c],
[tests/rng_reproducibility.out])
AT_CLEANUP
AT_SETUP([MT19937 RNG on 64 bit machines:])
AT_KEYWORDS([RNG MT19937])
AT_COMPILE_CHECK([simple/mt.c])
AT_CLEANUP
AT_SETUP([Exponentially distributed random numbers:])
AT_KEYWORDS([exponential random numbers])
AT_COMPILE_CHECK([simple/igraph_rng_get_exp.c],
[simple/igraph_rng_get_exp.out])
AT_CLEANUP
AT_SETUP([Random sampling from consecutive sequence:])
AT_KEYWORDS([random sampling])
AT_COMPILE_CHECK([simple/igraph_random_sample.c])
AT_CLEANUP
AT_SETUP([Fisher-Yates shuffle:])
AT_KEYWORDS([Fisher-Yates shuffle random permutation])
AT_COMPILE_CHECK([simple/igraph_fisher_yates_shuffle.c])
AT_CLEANUP
|