Diff of /mex/comp_gga.c [dbf0ef] .. [6db11f] Maximize Restore

  Switch to side-by-side view

--- a/mex/comp_gga.c
+++ b/mex/comp_gga.c
@@ -7,6 +7,8 @@
 #define COMPLEXINDEPENDENT
 //#define NOCOMPLEXFMTCHANGE
 
+
+#define GGA_WITH_PLAN
 #endif // _LTFAT_MEX_FILE - INCLUDED ONCE
 
 #define MEX_FILE __BASE_FILE__
@@ -32,7 +34,13 @@
    plhs[0] = ltfatCreateMatrix(M,W,LTFAT_MX_CLASSID,mxCOMPLEX);
    LTFAT_REAL _Complex* cPtr = (LTFAT_REAL _Complex*) mxGetPr(plhs[0]);
 
+   #ifndef GGA_WITH_PLAN
    LTFAT_NAME(gga)(fPtr,indVecPtr,L,W,M,cPtr);
+   #else
+   LTFAT_NAME(gga_plan) p = LTFAT_NAME(create_gga_plan)(indVecPtr,M,L);
+   LTFAT_NAME(gga_with_plan)(p,fPtr,cPtr,W);
+   LTFAT_NAME(destroy_gga_plan)(p);
+   #endif
 
 
    return;