diff --git a/DESCRIPTION b/DESCRIPTION index 29d65b3..ca0b632 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: cmfrec Type: Package Title: Collective Matrix Factorization for Recommender Systems -Version: 3.5.1 +Version: 3.5.1-1 Authors@R: c( person(given="David", family="Cortes", role=c("aut", "cre", "cph"), email="david.cortes.rivera@gmail.com"), diff --git a/src/offsets.c b/src/offsets.c index c0e6659..4e5dfbe 100644 --- a/src/offsets.c +++ b/src/offsets.c @@ -1965,13 +1965,11 @@ int_t fit_offsets_als #else void *lst_pointers[] = {MatTrans, U_plus_bias, sv, buffer_real_t, buffer_iwork, - (U_plus_bias != U)? U_plus_bias : NULL, - (I_plus_bias != II)? I_plus_bias : NULL, GELSD_free_inputs? A : NULL, GELSD_free_inputs? B : NULL, GELSD_free_inputs? X : NULL, GELSD_free_inputs? Xfull : NULL}; - PointersToFree ptrs_free = {lst_pointers, (size_t)11}; + PointersToFree ptrs_free = {lst_pointers, (size_t)9}; Args_to_GELSD args_GELSD = {&m, &p_plus_bias, &k, U_plus_bias, &m, MatTrans, &ldb, sv, &threshold_svd, &rank, @@ -2066,15 +2064,13 @@ int_t fit_offsets_als sv, &threshold_svd, &rank, &temp, &minus_one, &sz_iwork, &ignore); #else - void *lst_pointers[] = {MatTrans, U_plus_bias, sv, + void *lst_pointers[] = {MatTrans, I_plus_bias, sv, buffer_real_t, buffer_iwork, - (U_plus_bias != U)? U_plus_bias : NULL, - (I_plus_bias != II)? I_plus_bias : NULL, GELSD_free_inputs? A : NULL, GELSD_free_inputs? B : NULL, GELSD_free_inputs? X : NULL, GELSD_free_inputs? Xfull : NULL}; - PointersToFree ptrs_free = {lst_pointers, (size_t)11}; + PointersToFree ptrs_free = {lst_pointers, (size_t)9}; Args_to_GELSD args_GELSD = {&n, &q_plus_bias, &k, I_plus_bias, &n, MatTrans, &ldb, sv, &threshold_svd, &rank,