Skip to content

Commit a63dcb7

Browse files
removed unsued variables per compiler warnings
1 parent 8ba957d commit a63dcb7

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

mkl_random/src/mkl_distributions.cpp

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ irk_pareto_vec(irk_state *state, npy_intp len, double *res, const double alp)
433433
void
434434
irk_weibull_vec(irk_state *state, npy_intp len, double *res, const double alp)
435435
{
436-
int i, err;
436+
int err;
437437
const double d_zero = 0.0, d_one = 1.0;
438438
double rec_alp = 1.0/alp;
439439

@@ -458,7 +458,7 @@ irk_weibull_vec(irk_state *state, npy_intp len, double *res, const double alp)
458458
void
459459
irk_power_vec(irk_state *state, npy_intp len, double *res, const double alp)
460460
{
461-
int i, err;
461+
int err;
462462
const double d_zero = 0.0, d_one = 1.0;
463463
double rec_alp = 1.0/alp;
464464

@@ -534,7 +534,7 @@ void
534534
irk_f_vec(irk_state *state, npy_intp len, double *res, const double df_num, const double df_den)
535535
{
536536
int err;
537-
const double d_zero = 0.0, d_one = 1.0;
537+
const double d_zero = 0.0;
538538
double shape = 0.5*df_num, scale = 2.0/df_num;
539539
double *den = NULL;
540540

@@ -642,7 +642,6 @@ irk_noncentral_chisquare_vec(irk_state *state, npy_intp len, double *res, const
642642
for(i = 0; i < len; ) {
643643
int k, j, cv = pvec[idx[i]];
644644

645-
DIST_PRAGMA_VECTOR
646645
for(j=i+1; (j < len) && (pvec[idx[j]] == cv); j++) {}
647646

648647
assert(j > i);
@@ -728,7 +727,7 @@ void
728727
irk_logistic_vec(irk_state *state, npy_intp len, double *res, const double loc, const double scale)
729728
{
730729
int i, err;
731-
const double d_one = 1.0, d_mone = -1.0, d_zero = 0.0;
730+
const double d_one = 1.0, d_zero = 0.0;
732731

733732
if(len < 1)
734733
return;
@@ -862,7 +861,7 @@ irk_wald_vec(irk_state *state, npy_intp len, double *res, const double mean, con
862861
static void
863862
irk_vonmises_vec_small_kappa(irk_state *state, npy_intp len, double *res, const double mu, const double kappa)
864863
{
865-
int i, err, n, size, blen = 1 << 20;
864+
int i, err, n, size;
866865
double rho_over_kappa, rho, r, s_kappa, Z, W, Y, V;
867866
double *Uvec = NULL, *Vvec = NULL;
868867
float *VFvec = NULL;
@@ -923,9 +922,9 @@ irk_vonmises_vec_small_kappa(irk_state *state, npy_intp len, double *res, const
923922
static void
924923
irk_vonmises_vec_large_kappa(irk_state *state, npy_intp len, double *res, const double mu, const double kappa)
925924
{
926-
int i, err, n, size, blen = 1 << 20;
925+
int i, err, n, size;
927926
double r_over_two_kappa, recip_two_kappa;
928-
double s_minus_one, hpt, r_over_two_kappa_minus_one, rho_minus_one, neg_W_minus_one;
927+
double s_minus_one, hpt, r_over_two_kappa_minus_one, rho_minus_one;
929928
double *Uvec = NULL, *Vvec = NULL;
930929
float *VFvec = NULL;
931930
const double d_zero = 0.0, d_one = 1.0;
@@ -1000,8 +999,6 @@ irk_vonmises_vec_large_kappa(irk_state *state, npy_intp len, double *res, const
1000999
void
10011000
irk_vonmises_vec(irk_state *state, npy_intp len, double *res, const double mu, const double kappa)
10021001
{
1003-
int blen = 1 << 20;
1004-
10051002
if(len < 1)
10061003
return;
10071004

@@ -1022,7 +1019,7 @@ irk_vonmises_vec(irk_state *state, npy_intp len, double *res, const double mu, c
10221019
void
10231020
irk_noncentral_f_vec(irk_state *state, npy_intp len, double *res, const double df_num, const double df_den, const double nonc)
10241021
{
1025-
int i, blen = 1 << 20;
1022+
int i;
10261023
double *den = NULL, fctr;
10271024

10281025
if(len < 1)
@@ -1281,7 +1278,7 @@ irk_poisson_vec_POISNORM(irk_state *state, npy_intp len, int *res, const double
12811278
void
12821279
irk_poisson_vec_V(irk_state *state, npy_intp len, int *res, double *lambdas)
12831280
{
1284-
int err, blen;
1281+
int err;
12851282

12861283
if(len < 1)
12871284
return;
@@ -1304,7 +1301,7 @@ irk_poisson_vec_V(irk_state *state, npy_intp len, int *res, double *lambdas)
13041301
void
13051302
irk_zipf_long_vec(irk_state *state, npy_intp len, long *res, const double a)
13061303
{
1307-
int i, err, n_accepted, batch_size, blen = 1 << 20;
1304+
int i, err, n_accepted, batch_size;
13081305
double T, U, V, am1, b;
13091306
double *Uvec = NULL, *Vvec = NULL;
13101307
long X;
@@ -1897,7 +1894,6 @@ void
18971894
irk_rand_int64_vec(irk_state *state, npy_intp len, npy_int64 *res, const npy_int64 lo, const npy_int64 hi)
18981895
{
18991896
npy_uint64 rng;
1900-
int err;
19011897
npy_intp i;
19021898

19031899
if (len < 1)

0 commit comments

Comments
 (0)