diff options
Diffstat (limited to 'src/c/auxiliaryFunctions/interfaces/int_rand.h')
-rw-r--r-- | src/c/auxiliaryFunctions/interfaces/int_rand.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/src/c/auxiliaryFunctions/interfaces/int_rand.h b/src/c/auxiliaryFunctions/interfaces/int_rand.h new file mode 100644 index 00000000..597309a4 --- /dev/null +++ b/src/c/auxiliaryFunctions/interfaces/int_rand.h @@ -0,0 +1,53 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2008-2008 - INRIA - Bruno JOFRET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + * + */ + +/* THIS IS AN AUTOMATICALLY GENERATED FILE : DO NOT EDIT BY HAND. */ + +#ifndef __INT_RAND_H__ +#define __INT_RAND_H__ + + +#define rands0() srands() + +#define randd0() drands() + + + +#define s0rands0(in) srands() + +#define d0randd0(in) drands() + +#define c0randc0(in) crands() + +#define z0randz0(in) zrands() + + +#define s0s0rands0(in1,in2) srands() + +#define d0d0randd0(in,in2) drands() + + +#define s0s0rands2(in1,in2,out) sranda(out,(int)in1*(int)in2) + +#define d0d0randd2(in1,in2,out) dranda(out,(int)in1*(int)in2) + + +#define s2rands2(in,size,out) sranda(out, size[0]*size[1]) + +#define d2randd2(in,size,out) dranda(out, size[0]*size[1]) + +#define c2randc2(in,size,out) cranda(out, size[0]*size[1]) + +#define z2randz2(in,size,out) zranda(out, size[0]*size[1]) + + +#endif /* !__INT_RAND_H__ */ |