Mercurial > octave
diff liboctave/numeric/randmtzig.h @ 21177:a10f60e13243
style fixes in liboctave/numeric directory
* base-qr.h, randgamma.h, randmtzig.h, randpoisson.h, sparse-chol.cc,
sparse-chol.h, sparse-dmsolve.cc, sparse-lu.cc, sparse-lu.h,
sparse-qr.cc, sparse-qr.h, oct-sparse.h: Style fixes.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 02 Feb 2016 16:53:01 -0500 |
parents | 4197fc428c7d |
children | 88b41a4711e2 |
line wrap: on
line diff
--- a/liboctave/numeric/randmtzig.h Tue Feb 02 12:34:06 2016 -0500 +++ b/liboctave/numeric/randmtzig.h Tue Feb 02 16:53:01 2016 -0500 @@ -61,8 +61,8 @@ */ -#ifndef _RANDMTZIG_H -#define _RANDMTZIG_H +#if !defined (octave_randmtzig_h) +#define octave__randmtzig_h 1 #define MT_N 624 @@ -70,14 +70,14 @@ extern "C" { #endif -/* === Mersenne Twister === */ +/* Mersenne Twister. */ extern OCTAVE_API void oct_init_by_int (uint32_t s); -extern OCTAVE_API void oct_init_by_array (uint32_t init_key[], int key_length); +extern OCTAVE_API void oct_init_by_array (uint32_t *init_key, int key_length); extern OCTAVE_API void oct_init_by_entropy (void); -extern OCTAVE_API void oct_set_state (uint32_t save[]); -extern OCTAVE_API void oct_get_state (uint32_t save[]); +extern OCTAVE_API void oct_set_state (uint32_t *save); +extern OCTAVE_API void oct_get_state (uint32_t *save); -/* === Array generators === */ +/* Array generators. */ extern OCTAVE_API double oct_randu (void); extern OCTAVE_API double oct_randn (void); extern OCTAVE_API double oct_rande (void); @@ -86,7 +86,7 @@ extern OCTAVE_API float oct_float_randn (void); extern OCTAVE_API float oct_float_rande (void); -/* === Array generators === */ +/* Array generators. */ extern OCTAVE_API void oct_fill_randu (octave_idx_type n, double *p); extern OCTAVE_API void oct_fill_randn (octave_idx_type n, double *p); extern OCTAVE_API void oct_fill_rande (octave_idx_type n, double *p); @@ -98,4 +98,5 @@ #ifdef __cplusplus } #endif + #endif