From: Benjamin Auder Date: Fri, 3 Nov 2017 08:19:52 +0000 (+0100) Subject: fixing attempt: LLF size in src/adapters/EMGLLF seemed wrong X-Git-Url: https://git.auder.net/js/pieces/css/R.css?a=commitdiff_plain;h=5a47894523d56550ce55a27230cf577dbcd1f681;p=valse.git fixing attempt: LLF size in src/adapters/EMGLLF seemed wrong --- diff --git a/TODO b/TODO new file mode 100644 index 0000000..4feab94 --- /dev/null +++ b/TODO @@ -0,0 +1 @@ +Apply git-fat patch diff --git a/pkg/src/adapters/a.EMGLLF.c b/pkg/src/adapters/a.EMGLLF.c index 1503315..e93b7ec 100644 --- a/pkg/src/adapters/a.EMGLLF.c +++ b/pkg/src/adapters/a.EMGLLF.c @@ -56,7 +56,7 @@ SEXP EMGLLF( PROTECT(phi = allocArray(REALSXP, dimPhiS)); PROTECT(rho = allocArray(REALSXP, dimRho)); PROTECT(pi = allocVector(REALSXP, k)); - PROTECT(LLF = allocVector(REALSXP, maxi-mini+1)); + PROTECT(LLF = allocVector(REALSXP, maxi)); PROTECT(S = allocArray(REALSXP, dimPhiS)); PROTECT(affec = allocVector(INTSXP, n)); double *pPhi=REAL(phi), *pRho=REAL(rho), *pPi=REAL(pi), *pLLF=REAL(LLF), *pS=REAL(S);